Personal tools

Author Topic: Gentoo build 2.4 from GIT sources  (Read 1865 times)

Offline yanex

  • Cannon Fodder
  • **
  • Posts: 1
    • View Profile
Gentoo build 2.4 from GIT sources
« on: April 30, 2012, 07:54:01 pm »
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!

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
    • View Profile
    • Vengi Voxel Tools
Re: Gentoo build 2.4 from GIT sources
« Reply #1 on: May 01, 2012, 05:05:59 pm »
it would be cool if you could upload a patch somewhere