Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luagd.c:2171:33: error: ‘LgdImageCreateFromPng’ undeclared here (not in a function) #35

Open
viper7882 opened this issue Jul 6, 2017 · 5 comments

Comments

@viper7882
Copy link

Hi @kuz ,

I'm using UBuntu 17.04 and while installing the dependencies, the following error message is observed:
`/bin/sh: 1: gdlib-config: not found
/bin/sh: 1: gdlib-config: not found
luagd.c:2171:33: error: ‘LgdImageCreateFromPng’ undeclared here (not in a function)
{ "createFromPng", LgdImageCreateFromPng },
^~~~~~~~~~~~~~~~~~~~~
luagd.c:2172:33: error: ‘LgdImageCreateFromPngPtr’ undeclared here (not in a function)
{ "createFromPngStr", LgdImageCreateFromPngPtr },
^~~~~~~~~~~~~~~~~~~~~~~~
Makefile:104: recipe for target 'gd.lo' failed
make: *** [gd.lo] Error 1

Error: Build error: Failed building.
Error. Exiting.`

I could get rid of the missing gdlib-config using pkg-config, however the 'LgdImageCreateFromPng' and 'LgdImageCreateFromPngPtr' errors remain. Do you have any idea what have I missed out?

@cantamiodiva
Copy link

Having same issue

@alexram1
Copy link

Me too, has anyone found a fix?

@spacewander
Copy link

Maybe the problem is related to ittner/lua-gd#8?

@m0ai
Copy link

m0ai commented Feb 22, 2018

I have the same issue, ittner/lua-gd#8 halped to solve the probelm.
Thank you. @spacewander

@talregev
Copy link

talregev commented Feb 4, 2019

I solve this issue.
need change the install_dependencies.sh.
at line 127 you should change the make command to:
make GDFEATURES="-DGD_PNG -DGD_GIF -DGD_JPEG -DGD_XPM -DGD_FREETYPE -DGD_FONTCONFIG"

then add:
cp gd.so $PREFIX/lib/lua/5.1/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants