1
Linux / Gentoo build 2.4 from GIT sources
« on: April 30, 2012, 07:54:01 pm »
Hi,
Sorry if this is somewhat duplicate of other topics, just wanted to drop tips for others who might come across problems compiling UFOAI on their systems.
problem: UFOAI zlib headers are outdated and use macros OF() which are no longer present in zlib >1.2.5?
to solve: add "#define OF(x) x" somewhere at top of src/common/ioapi.h
problem: zlib constant used assuming png will include it (Z_DEFAULT_COMPRESSION)
to solve: add "#include <zlib.h> somewhere at top of src/shared/images.h
After that it compiles perfectly fine with newer libs.
Best regards to UFOAI team for great work.
I actually tried to code doors and lifts couple years ago with somebody of you, I don't remember anymore. In any case it is fantastic that this project is still alive. Keep up the good work guys!
Sorry if this is somewhat duplicate of other topics, just wanted to drop tips for others who might come across problems compiling UFOAI on their systems.
problem: UFOAI zlib headers are outdated and use macros OF() which are no longer present in zlib >1.2.5?
to solve: add "#define OF(x) x" somewhere at top of src/common/ioapi.h
problem: zlib constant used assuming png will include it (Z_DEFAULT_COMPRESSION)
to solve: add "#include <zlib.h> somewhere at top of src/shared/images.h
After that it compiles perfectly fine with newer libs.
Best regards to UFOAI team for great work.
I actually tried to code doors and lifts couple years ago with somebody of you, I don't remember anymore. In any case it is fantastic that this project is still alive. Keep up the good work guys!