kuz/DeepMind-Atari-Deep-Q-Learner

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

Opened this issue · 5 comments

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?

Having same issue

Me too, has anyone found a fix?

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

m0ai commented

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

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/