Версия для печати темы

Нажмите сюда для просмотра этой темы в обычном формате

MyDC.ru _ Дополнительные библиотеки для PtokaX _ Lua-GD

Автор: alex82 20.8.2009, 23:20

Lua-GD

Описание: Библиотека Lua-GD представляет собой Lua-порт хорошо известной в определенных кругах библиотеки GD, и предназначена для проведения различных манипуляций над изображениями - рисования, наложения текста, ресайза, и.т.д.
Windows
x86
PtokaX: http://mydc.ru/r/?http://www.ptokax.org/files/Libs-482/Lua-GD-2.0.33r3-rev311.7z
PtokaX Mod:  gd.rar ( 392.39 килобайт ) : 18
x64
PtokaX 0.5.0.3 и новее: http://mydc.ru/r/?http://www.ptokax.org/files/Libs-482/Lua-GD-2.0.33r3-rev311-x64.7z
PtokaX до 0.5.0.3, а также PtokaX Mod: http://mydc.ru/r/?http://www.ptokax.org/files/Libs-445/Lua-GD-2.0.33r2-x64.7z

PtokaX 0.4.0.x и 0.4.1.x
PNG support - да
GIF support - да
JPEG support - да
XPM/XBM support - да
FreeType support - да
Fontconfig support - нет

Скачать:
 gd.7z ( 363.73 килобайт ) : 841


Тестовый скрипт 1:  gd_info.rar ( 319 байт ) : 213

Тестовый скрипт 2:  gd_test.rar ( 203.18 килобайт ) : 190
(ввиду того, что в данной сборке отсутствуют библиотеки Freetype и Fontconfig, некоторые тесты отключены)[/indent]
Linux
Исходный код:  lua_gd.zip ( 440.54 килобайт ) : 46

Собирается примерно так:
Код
cd <directory>/lua-gd && make all install clean

Перед сборкой необходимо установить зависимости:
Код
apt-get install liblua5.1-dev libgd2-xpm-dev


Мануал:  gd_manual.rar ( 309.1 килобайт ) : 412

Автор: whuru 21.8.2009, 15:33

Вопрос: а куда его технически можно применить? Для чего?

Автор: alex82 21.8.2009, 15:59

whuru
http://mydc.ru/topic2113.html

Автор: Nickolya 2.5.2010, 16:35

Цитата
FreeTpe support - нет
Fontconfig support - нет

А релиза либсы со всеми возможностями не предвидется?

Автор: alex82 3.5.2010, 21:16

Цитата(Nickolya @ 2.5.2010, 16:35) *
А релиза либсы со всеми возможностями не предвидется?
Либу с freetype давно собрал, просто забыл выложить. А fontconfig подключить так и не получилось. unhappy.gif

Выложил новую сборку в первом посте

Автор: Parad0x 31.7.2011, 11:23

Приветствую, подскажите по поводу сборки lua-gd под CentOS

Лог консоли
Код
# make
gcc -o gd.so `gdlib-config --features |sed -e "s/GD_/-DGD_/g"` -Wall `gdlib-config --cflags` -I/usr/include/lua5.1 -O3 -shared `gdlib-config --ldflags` `gdlib-config --libs` -llua51 -lgd luagd.c
/bin/sh: gdlib-config: command not found
/bin/sh: gdlib-config: command not found
/bin/sh: gdlib-config: command not found
/bin/sh: gdlib-config: command not found
luagd.c:35:16: error: gd.h: No such file or directory
luagd.c:38:21: error: gdfonts.h: No such file or directory
luagd.c:39:21: error: gdfontl.h: No such file or directory
luagd.c:40:22: error: gdfontmb.h: No such file or directory
luagd.c:41:21: error: gdfontg.h: No such file or directory
luagd.c:42:21: error: gdfontt.h: No such file or directory
luagd.c:78: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'getImagePtr'
luagd.c:90: error: expected declaration specifiers or '...' before 'gdImagePtr'
luagd.c: In function 'pushImagePtr':
luagd.c:91: error: 'im' undeclared (first use in this function)
luagd.c:91: error: (Each undeclared identifier is reported only once
luagd.c:91: error: for each function it appears in.)
luagd.c: At top level:
luagd.c:97: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'getStdFont'
luagd.c: In function 'LgdImageCreate':
luagd.c:238: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:238: error: expected ';' before 'im'
luagd.c:242: error: 'im' undeclared (first use in this function)
luagd.c:242: warning: implicit declaration of function 'gdImageCreate'
luagd.c:244: error: too many arguments to function 'pushImagePtr'
luagd.c: In function 'LgdImageCreatePalette':
luagd.c:254: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:254: error: expected ';' before 'im'
luagd.c:258: error: 'im' undeclared (first use in this function)
luagd.c:258: warning: implicit declaration of function 'gdImageCreatePalette'
luagd.c:260: error: too many arguments to function 'pushImagePtr'
luagd.c: In function 'LgdImageCreateTrueColor':
luagd.c:271: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:271: error: expected ';' before 'im'
luagd.c:275: error: 'im' undeclared (first use in this function)
luagd.c:275: warning: implicit declaration of function 'gdImageCreateTrueColor'
luagd.c:277: error: too many arguments to function 'pushImagePtr'
luagd.c: In function 'LgdImageCreatePaletteFromTrueColor':
luagd.c:286: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:286: error: expected ';' before 'im'
luagd.c:289: error: expected ';' before 'nim'
luagd.c:291: error: 'nim' undeclared (first use in this function)
luagd.c:292: error: too many arguments to function 'pushImagePtr'
luagd.c:288: warning: unused variable 'colors'
luagd.c:287: warning: unused variable 'dither'
luagd.c: In function 'LgdImageTrueColorToPalette':
luagd.c:302: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:302: error: expected ';' before 'im'
luagd.c:306: warning: implicit declaration of function 'gdImageTrueColorToPalette'
luagd.c:306: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageDestroy':
luagd.c:314: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:314: error: expected ';' before 'im'
luagd.c:315: error: 'im' undeclared (first use in this function)
luagd.c:316: warning: implicit declaration of function 'gdImageDestroy'
luagd.c: In function 'LgdImageCreateFromGd':
luagd.c:460: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:460: error: expected ';' before 'im'
luagd.c:472: error: 'im' undeclared (first use in this function)
luagd.c:472: warning: implicit declaration of function 'gdImageCreateFromGd'
luagd.c:475: error: too many arguments to function 'pushImagePtr'
luagd.c: In function 'LgdImageCreateFromGdPtr':
luagd.c:484: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:484: error: expected ';' before 'im'
luagd.c:492: error: 'im' undeclared (first use in this function)
luagd.c:492: warning: implicit declaration of function 'gdImageCreateFromGdPtr'
luagd.c:494: error: too many arguments to function 'pushImagePtr'
luagd.c: In function 'LgdImageCreateFromGd2':
luagd.c:504: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:504: error: expected ';' before 'im'
luagd.c:516: error: 'im' undeclared (first use in this function)
luagd.c:516: warning: implicit declaration of function 'gdImageCreateFromGd2'
luagd.c:519: error: too many arguments to function 'pushImagePtr'
luagd.c: In function 'LgdImageCreateFromGd2Ptr':
luagd.c:528: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:528: error: expected ';' before 'im'
luagd.c:536: error: 'im' undeclared (first use in this function)
luagd.c:536: warning: implicit declaration of function 'gdImageCreateFromGd2Ptr'
luagd.c:538: error: too many arguments to function 'pushImagePtr'
luagd.c: In function 'LgdImageCreateFromGd2Part':
luagd.c:548: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:548: error: expected ';' before 'im'
luagd.c:564: error: 'im' undeclared (first use in this function)
luagd.c:564: warning: implicit declaration of function 'gdImageCreateFromGd2Part'
luagd.c:567: error: too many arguments to function 'pushImagePtr'
luagd.c: In function 'LgdImageCreateFromGd2PartPtr':
luagd.c:577: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:577: error: expected ';' before 'im'
luagd.c:589: error: 'im' undeclared (first use in this function)
luagd.c:589: warning: implicit declaration of function 'gdImageCreateFromGd2PartPtr'
luagd.c:591: error: too many arguments to function 'pushImagePtr'
luagd.c: In function 'LgdImageGd':
luagd.c:813: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:813: error: expected ';' before 'im'
luagd.c:825: warning: implicit declaration of function 'gdImageGd'
luagd.c:825: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageGdPtr':
luagd.c:834: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:834: error: expected ';' before 'im'
luagd.c:838: warning: implicit declaration of function 'gdImageGdPtr'
luagd.c:838: error: 'im' undeclared (first use in this function)
luagd.c:838: warning: assignment makes pointer from integer without a cast
luagd.c:841: warning: implicit declaration of function 'gdFree'
luagd.c: In function 'LgdImageGd2':
luagd.c:853: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:853: error: expected ';' before 'im'
luagd.c:867: warning: implicit declaration of function 'gdImageGd2'
luagd.c:867: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageGd2Ptr':
luagd.c:876: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:876: error: expected ';' before 'im'
luagd.c:882: warning: implicit declaration of function 'gdImageGd2Ptr'
luagd.c:882: error: 'im' undeclared (first use in this function)
luagd.c:882: warning: assignment makes pointer from integer without a cast
luagd.c: In function 'LgdImageWBMP':
luagd.c:895: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:895: error: expected ';' before 'im'
luagd.c:908: warning: implicit declaration of function 'gdImageWBMP'
luagd.c:908: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageWBMPPtr':
luagd.c:917: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:917: error: expected ';' before 'im'
luagd.c:922: warning: implicit declaration of function 'gdImageWBMPPtr'
luagd.c:922: error: 'im' undeclared (first use in this function)
luagd.c:922: warning: assignment makes pointer from integer without a cast
luagd.c: In function 'LgdImageColorAllocate':
luagd.c:935: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:935: error: expected ';' before 'im'
luagd.c:941: warning: implicit declaration of function 'gdImageColorAllocate'
luagd.c:941: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageColorAllocateAlpha':
luagd.c:952: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:952: error: expected ';' before 'im'
luagd.c:959: warning: implicit declaration of function 'gdImageColorAllocateAlpha'
luagd.c:959: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageColorClosest':
luagd.c:970: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:970: error: expected ';' before 'im'
luagd.c:976: warning: implicit declaration of function 'gdImageColorClosest'
luagd.c:976: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageColorClosestAlpha':
luagd.c:987: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:987: error: expected ';' before 'im'
luagd.c:994: warning: implicit declaration of function 'gdImageColorClosestAlpha'
luagd.c:994: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageColorClosestHWB':
luagd.c:1005: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1005: error: expected ';' before 'im'
luagd.c:1011: warning: implicit declaration of function 'gdImageColorClosestHWB'
luagd.c:1011: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageColorExact':
luagd.c:1022: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1022: error: expected ';' before 'im'
luagd.c:1028: warning: implicit declaration of function 'gdImageColorExact'
luagd.c:1028: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageColorExactAlpha':
luagd.c:1039: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1039: error: expected ';' before 'im'
luagd.c:1046: warning: implicit declaration of function 'gdImageColorExactAlpha'
luagd.c:1046: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageColorResolve':
luagd.c:1057: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1057: error: expected ';' before 'im'
luagd.c:1063: warning: implicit declaration of function 'gdImageColorResolve'
luagd.c:1063: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageColorResolveAlpha':
luagd.c:1074: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1074: error: expected ';' before 'im'
luagd.c:1081: warning: implicit declaration of function 'gdImageColorResolveAlpha'
luagd.c:1081: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageColorsTotal':
luagd.c:1092: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1092: error: expected ';' before 'im'
luagd.c:1094: warning: implicit declaration of function 'gdImageColorsTotal'
luagd.c:1094: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageRed':
luagd.c:1101: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1101: error: expected ';' before 'im'
luagd.c:1104: warning: implicit declaration of function 'gdImageRed'
luagd.c:1104: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageBlue':
luagd.c:1110: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1110: error: expected ';' before 'im'
luagd.c:1113: warning: implicit declaration of function 'gdImageBlue'
luagd.c:1113: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageGreen':
luagd.c:1119: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1119: error: expected ';' before 'im'
luagd.c:1122: warning: implicit declaration of function 'gdImageGreen'
luagd.c:1122: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageAlpha':
luagd.c:1128: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1128: error: expected ';' before 'im'
luagd.c:1130: warning: implicit declaration of function 'gdImageAlpha'
luagd.c:1130: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageGetInterlaced':
luagd.c:1136: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1136: error: expected ';' before 'im'
luagd.c:1137: warning: implicit declaration of function 'gdImageGetInterlaced'
luagd.c:1137: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageGetTransparent':
luagd.c:1148: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1148: error: expected ';' before 'im'
luagd.c:1149: warning: implicit declaration of function 'gdImageGetTransparent'
luagd.c:1149: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageColorTransparent':
luagd.c:1161: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1161: error: expected ';' before 'im'
luagd.c:1165: warning: implicit declaration of function 'gdImageColorTransparent'
luagd.c:1165: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageColorDeallocate':
luagd.c:1172: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1172: error: expected ';' before 'im'
luagd.c:1174: warning: implicit declaration of function 'gdImageColorDeallocate'
luagd.c:1174: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageSX':
luagd.c:1181: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1181: error: expected ';' before 'im'
luagd.c:1182: warning: implicit declaration of function 'gdImageSX'
luagd.c:1182: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageSY':
luagd.c:1189: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1189: error: expected ';' before 'im'
luagd.c:1190: warning: implicit declaration of function 'gdImageSY'
luagd.c:1190: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageSXY':
luagd.c:1197: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1197: error: expected ';' before 'im'
luagd.c:1198: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageBoundsSafe':
luagd.c:1206: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1206: error: expected ';' before 'im'
luagd.c:1210: warning: implicit declaration of function 'gdImageBoundsSafe'
luagd.c:1210: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageGetPixel':
luagd.c:1220: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1220: error: expected ';' before 'im'
luagd.c:1224: warning: implicit declaration of function 'gdImageGetPixel'
luagd.c:1224: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageSetPixel':
luagd.c:1231: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1231: error: expected ';' before 'im'
luagd.c:1236: warning: implicit declaration of function 'gdImageSetPixel'
luagd.c:1236: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageLine':
luagd.c:1243: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1243: error: expected ';' before 'im'
luagd.c:1250: warning: implicit declaration of function 'gdImageLine'
luagd.c:1250: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageRectangle':
luagd.c:1257: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1257: error: expected ';' before 'im'
luagd.c:1264: warning: implicit declaration of function 'gdImageRectangle'
luagd.c:1264: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageFilledRectangle':
luagd.c:1272: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1272: error: expected ';' before 'im'
luagd.c:1279: warning: implicit declaration of function 'gdImageFilledRectangle'
luagd.c:1279: error: 'im' undeclared (first use in this function)
luagd.c: At top level:
luagd.c:1285: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
luagd.c: In function 'LgdImagePolygon':
luagd.c:1329: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1329: error: expected ';' before 'im'
luagd.c:1330: error: 'gdPoint' undeclared (first use in this function)
luagd.c:1330: error: 'plist' undeclared (first use in this function)
luagd.c:1337: warning: implicit declaration of function 'getPointList'
luagd.c:1338: warning: implicit declaration of function 'gdImagePolygon'
luagd.c:1338: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageFilledPolygon':
luagd.c:1349: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1349: error: expected ';' before 'im'
luagd.c:1350: error: 'gdPoint' undeclared (first use in this function)
luagd.c:1350: error: 'plist' undeclared (first use in this function)
luagd.c:1359: warning: implicit declaration of function 'gdImageFilledPolygon'
luagd.c:1359: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageOpenPolygon':
luagd.c:1369: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1369: error: expected ';' before 'im'
luagd.c:1370: error: 'gdPoint' undeclared (first use in this function)
luagd.c:1370: error: 'plist' undeclared (first use in this function)
luagd.c:1379: warning: implicit declaration of function 'gdImageOpenPolygon'
luagd.c:1379: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageArc':
luagd.c:1389: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1389: error: expected ';' before 'im'
luagd.c:1398: warning: implicit declaration of function 'gdImageArc'
luagd.c:1398: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageFilledArc':
luagd.c:1406: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1406: error: expected ';' before 'im'
luagd.c:1416: warning: implicit declaration of function 'gdImageFilledArc'
luagd.c:1416: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageFilledEllipse':
luagd.c:1424: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1424: error: expected ';' before 'im'
luagd.c:1431: warning: implicit declaration of function 'gdImageFilledEllipse'
luagd.c:1431: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageFill':
luagd.c:1438: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1438: error: expected ';' before 'im'
luagd.c:1443: warning: implicit declaration of function 'gdImageFill'
luagd.c:1443: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageFillToBorder':
luagd.c:1451: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1451: error: expected ';' before 'im'
luagd.c:1457: warning: implicit declaration of function 'gdImageFillToBorder'
luagd.c:1457: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageSetAntiAliased':
luagd.c:1464: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1464: error: expected ';' before 'im'
luagd.c:1467: warning: implicit declaration of function 'gdImageSetAntiAliased'
luagd.c:1467: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageSetAntiAliasedDontBlend':
luagd.c:1474: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1474: error: expected ';' before 'im'
luagd.c:1477: warning: implicit declaration of function 'gdImageSetAntiAliasedDontBlend'
luagd.c:1477: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageSetBrush':
luagd.c:1484: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1484: error: expected ';' before 'im'
luagd.c:1485: error: expected ';' before 'b'
luagd.c:1487: warning: implicit declaration of function 'gdImageSetBrush'
luagd.c:1487: error: 'im' undeclared (first use in this function)
luagd.c:1487: error: 'b' undeclared (first use in this function)
luagd.c: In function 'LgdImageSetTile':
luagd.c:1494: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1494: error: expected ';' before 'im'
luagd.c:1495: error: expected ';' before 't'
luagd.c:1497: warning: implicit declaration of function 'gdImageSetTile'
luagd.c:1497: error: 'im' undeclared (first use in this function)
luagd.c:1497: error: 't' undeclared (first use in this function)
luagd.c: In function 'LgdImageSetStyle':
luagd.c:1505: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1505: error: expected ';' before 'im'
luagd.c:1531: warning: implicit declaration of function 'gdImageSetStyle'
luagd.c:1531: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageSetThickness':
luagd.c:1539: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1539: error: expected ';' before 'im'
luagd.c:1542: warning: implicit declaration of function 'gdImageSetThickness'
luagd.c:1542: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageAlphaBlending':
luagd.c:1550: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1550: error: expected ';' before 'im'
luagd.c:1553: warning: implicit declaration of function 'gdImageAlphaBlending'
luagd.c:1553: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageSaveAlpha':
luagd.c:1561: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1561: error: expected ';' before 'im'
luagd.c:1564: warning: implicit declaration of function 'gdImageSaveAlpha'
luagd.c:1564: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageInterlace':
luagd.c:1572: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1572: error: expected ';' before 'im'
luagd.c:1575: warning: implicit declaration of function 'gdImageInterlace'
luagd.c:1575: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageString':
luagd.c:1583: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1583: error: expected ';' before 'im'
luagd.c:1584: error: 'gdFontPtr' undeclared (first use in this function)
luagd.c:1584: error: expected ';' before 'fnt'
luagd.c:1590: warning: implicit declaration of function 'gdImageString'
luagd.c:1590: error: 'im' undeclared (first use in this function)
luagd.c:1590: error: 'fnt' undeclared (first use in this function)
luagd.c: In function 'LgdImageStringUp':
luagd.c:1598: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1598: error: expected ';' before 'im'
luagd.c:1599: error: 'gdFontPtr' undeclared (first use in this function)
luagd.c:1599: error: expected ';' before 'fnt'
luagd.c:1605: warning: implicit declaration of function 'gdImageStringUp'
luagd.c:1605: error: 'im' undeclared (first use in this function)
luagd.c:1605: error: 'fnt' undeclared (first use in this function)
luagd.c: In function 'LgdImageChar':
luagd.c:1614: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1614: error: expected ';' before 'im'
luagd.c:1615: error: 'gdFontPtr' undeclared (first use in this function)
luagd.c:1615: error: expected ';' before 'fnt'
luagd.c:1629: warning: implicit declaration of function 'gdImageChar'
luagd.c:1629: error: 'im' undeclared (first use in this function)
luagd.c:1629: error: 'fnt' undeclared (first use in this function)
luagd.c: In function 'LgdImageCharUp':
luagd.c:1637: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1637: error: expected ';' before 'im'
luagd.c:1638: error: 'gdFontPtr' undeclared (first use in this function)
luagd.c:1638: error: expected ';' before 'fnt'
luagd.c:1652: warning: implicit declaration of function 'gdImageCharUp'
luagd.c:1652: error: 'im' undeclared (first use in this function)
luagd.c:1652: error: 'fnt' undeclared (first use in this function)
luagd.c: In function 'LgdImageCopy':
luagd.c:1660: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1660: error: expected ';' before 'dst'
luagd.c:1661: error: expected ';' before 'src'
luagd.c:1669: warning: implicit declaration of function 'gdImageCopy'
luagd.c:1669: error: 'dst' undeclared (first use in this function)
luagd.c:1669: error: 'src' undeclared (first use in this function)
luagd.c: In function 'LgdImageCopyResized':
luagd.c:1679: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1679: error: expected ';' before 'dst'
luagd.c:1680: error: expected ';' before 'src'
luagd.c:1690: warning: implicit declaration of function 'gdImageCopyResized'
luagd.c:1690: error: 'dst' undeclared (first use in this function)
luagd.c:1690: error: 'src' undeclared (first use in this function)
luagd.c: In function 'LgdImageCopyResampled':
luagd.c:1700: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1700: error: expected ';' before 'dst'
luagd.c:1701: error: expected ';' before 'src'
luagd.c:1711: warning: implicit declaration of function 'gdImageCopyResampled'
luagd.c:1711: error: 'dst' undeclared (first use in this function)
luagd.c:1711: error: 'src' undeclared (first use in this function)
luagd.c: In function 'LgdImageCopyRotated':
luagd.c:1720: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1720: error: expected ';' before 'dst'
luagd.c:1721: error: expected ';' before 'src'
luagd.c:1730: warning: implicit declaration of function 'gdImageCopyRotated'
luagd.c:1730: error: 'dst' undeclared (first use in this function)
luagd.c:1730: error: 'src' undeclared (first use in this function)
luagd.c: In function 'LgdImageCopyMerge':
luagd.c:1738: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1738: error: expected ';' before 'dst'
luagd.c:1739: error: expected ';' before 'src'
luagd.c:1748: warning: implicit declaration of function 'gdImageCopyMerge'
luagd.c:1748: error: 'dst' undeclared (first use in this function)
luagd.c:1748: error: 'src' undeclared (first use in this function)
luagd.c: In function 'LgdImageCopyMergeGray':
luagd.c:1756: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1756: error: expected ';' before 'dst'
luagd.c:1757: error: expected ';' before 'src'
luagd.c:1766: warning: implicit declaration of function 'gdImageCopyMergeGray'
luagd.c:1766: error: 'dst' undeclared (first use in this function)
luagd.c:1766: error: 'src' undeclared (first use in this function)
luagd.c: In function 'LgdImagePaletteCopy':
luagd.c:1773: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1773: error: expected ';' before 'dst'
luagd.c:1774: error: expected ';' before 'src'
luagd.c:1776: warning: implicit declaration of function 'gdImagePaletteCopy'
luagd.c:1776: error: 'dst' undeclared (first use in this function)
luagd.c:1776: error: 'src' undeclared (first use in this function)
luagd.c: In function 'LgdImageSquareToCircle':
luagd.c:1783: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1783: error: expected ';' before 'im'
luagd.c:1786: warning: implicit declaration of function 'gdImageSquareToCircle'
luagd.c:1786: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageSharpen':
luagd.c:1793: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1793: error: expected ';' before 'im'
luagd.c:1796: warning: implicit declaration of function 'gdImageSharpen'
luagd.c:1796: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageSetClip':
luagd.c:1803: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1803: error: expected ';' before 'im'
luagd.c:1809: warning: implicit declaration of function 'gdImageSetClip'
luagd.c:1809: error: 'im' undeclared (first use in this function)
luagd.c: In function 'LgdImageGetClip':
luagd.c:1817: error: 'gdImagePtr' undeclared (first use in this function)
luagd.c:1817: error: expected ';' before 'im'
luagd.c:1820: warning: implicit declaration of function 'gdImageGetClip'
luagd.c:1820: error: 'im' undeclared (first use in this function)
luagd.c: At top level:
luagd.c:2165: error: 'LgdImageCreateFromPng' undeclared here (not in a function)
luagd.c:2166: error: 'LgdImageCreateFromPngPtr' undeclared here (not in a function)
luagd.c: In function 'luaopen_gd':
luagd.c:2312: error: 'gdMaxColors' undeclared (first use in this function)
luagd.c:2312: error: incompatible type for argument 2 of 'lua_pushnumber'
luagd.c:2313: error: 'GD2_FMT_RAW' undeclared (first use in this function)
luagd.c:2313: error: incompatible type for argument 2 of 'lua_pushnumber'
luagd.c:2314: error: 'GD2_FMT_COMPRESSED' undeclared (first use in this function)
luagd.c:2314: error: incompatible type for argument 2 of 'lua_pushnumber'
luagd.c:2315: error: 'gdArc' undeclared (first use in this function)
luagd.c:2315: error: incompatible type for argument 2 of 'lua_pushnumber'
luagd.c:2316: error: 'gdChord' undeclared (first use in this function)
luagd.c:2316: error: incompatible type for argument 2 of 'lua_pushnumber'
luagd.c:2317: error: 'gdPie' undeclared (first use in this function)
luagd.c:2317: error: incompatible type for argument 2 of 'lua_pushnumber'
luagd.c:2318: error: 'gdNoFill' undeclared (first use in this function)
luagd.c:2318: error: incompatible type for argument 2 of 'lua_pushnumber'
luagd.c:2319: error: 'gdEdged' undeclared (first use in this function)
luagd.c:2319: error: incompatible type for argument 2 of 'lua_pushnumber'
luagd.c:2320: error: 'gdAntiAliased' undeclared (first use in this function)
luagd.c:2320: error: incompatible type for argument 2 of 'lua_pushnumber'
luagd.c:2321: error: 'gdBrushed' undeclared (first use in this function)
luagd.c:2321: error: incompatible type for argument 2 of 'lua_pushnumber'
luagd.c:2322: error: 'gdStyled' undeclared (first use in this function)
luagd.c:2322: error: incompatible type for argument 2 of 'lua_pushnumber'
luagd.c:2323: error: 'gdStyledBrushed' undeclared (first use in this function)
luagd.c:2323: error: incompatible type for argument 2 of 'lua_pushnumber'
luagd.c:2324: error: 'gdTiled' undeclared (first use in this function)
luagd.c:2324: error: incompatible type for argument 2 of 'lua_pushnumber'
luagd.c:2325: error: 'gdTransparent' undeclared (first use in this function)
luagd.c:2325: error: incompatible type for argument 2 of 'lua_pushnumber'
make: *** [gd.so] Error 1

Автор: Osimus 5.8.2011, 20:35

ребят естьу кого Lua-GD под убунту amd64 ?
если можно собрать как то самому, то подскажите как именно.

Автор: mariner 6.8.2011, 9:25

А слабо юзануть поиск?
http://mydc.ru/topic4189.html

Автор: Alexey 8.10.2012, 23:48

Версия Lua: 5.1/5.2
Версия API: 2
Разрядность Windows: 32/64
Совместимость: PtokaX 0.4.2.0 build 376 и новее

Выложенные ранее в этой теме библиотеки не будут работать на PtokaX 0.4.2.0 и новее. Для работы с GD на PtokaX 0.5.0.0 нужны вот эти:
 Lua_GD_2.0.33r2.7z ( 1.38 мегабайт ) : 33
 Lua_GD_2.0.33r2_x64.7z ( 1.39 мегабайт ) : 28

Цитата
[15:31:12] Lua-GD version: lua-gd 2.0.33r2
[15:31:12] Lua-GD features:
[15:31:12] PNG support ..................... Enabled
[15:31:12] GIF support ..................... Enabled
[15:31:12] JPEG support .................... Enabled
[15:31:12] XPM/XBM support ................. Enabled
[15:31:12] FreeType support ................ Enabled
[15:31:12] Fontconfig support .............. Disabled

Автор: MIKHAIL 7.6.2014, 20:49

В шрифте "Vera" из архива есть графические символы (Symbol). Каким образом их можно вызвать/отобразить?

Автор: Alexey 7.6.2014, 23:43

Если я правильно тебя понял, то аналогично тому, как это сделано в файле примера utf-8.lua.

Автор: MIKHAIL 8.6.2014, 13:41

Вот только беда "attempt to call field 'useFontConfig' (a nil value)" в 22-ой строке при попытке "gd.useFontConfig(true)".
Я расстроен отсутствием поддержки FontConfig.

Автор: Alexey 8.6.2014, 14:54

Я и забыл, что в сборках под Windows FontConfig отключён... В линуксе то доступны все возможности библиотеки.

Пример

Автор: Alexey 20.2.2015, 22:32

Библиотека Lua-GD для PtokaX 0.5.0.3:
 Lua_GD_2.0.33r3_rev311.7z ( 1.53 мегабайт ) : 8
 Lua_GD_2.0.33r3_rev311_x64.7z ( 1.57 мегабайт ) : 14

Автор: alex82 9.4.2016, 11:44

Обновил первый пост темы: Собрал в кучу библиотеки для разных версий PtokaX, добавил исходники, совместимые с новыми версиями gcc.