DeepMind-Atari-Deep-Q-Learner icon indicating copy to clipboard operation
DeepMind-Atari-Deep-Q-Learner copied to clipboard

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

Open viper7882 opened this issue 7 years ago • 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?

viper7882 avatar Jul 06 '17 11:07 viper7882

Having same issue

cantamiodiva avatar Aug 19 '17 09:08 cantamiodiva

Me too, has anyone found a fix?

alexram1 avatar Oct 12 '17 22:10 alexram1

Maybe the problem is related to https://github.com/ittner/lua-gd/pull/8?

spacewander avatar Oct 31 '17 08:10 spacewander

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

m0ai avatar Feb 22 '18 05:02 m0ai

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/

talregev avatar Feb 04 '19 20:02 talregev