Personal tools

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - zatomic

Pages: [1]
Mac / Re: UFOAI 2.5 dosn't build on OSX 10.9
« on: September 01, 2014, 03:48:47 pm »
I've been running the 2.6 dev version on OSX 10.9 for a while with no issues. (the occasional bug you would expect from a dev version but nothing game breaking or any problems loading maps). I just check today and was able to start a campaign and complete a ground battle.

After running make, did you run: make lang models maps-sync

That's all I can think of. What does it do when you try to enter a ground battle?

Newbie Coding / Mac OS X Compile error with possible fix
« on: June 20, 2014, 08:03:56 pm »

I played this 6 months or so ago. I just checked out the git repository to check out the latest version and maybe find something I can contribute code to. Anyway, I'm running on OS X and have a compile error in the master branch:

===> CXX [game] src/game/g_ai.cpp
src/game/g_ai.cpp:469:9: error: call to 'abs' is ambiguous
        team = std::abs(team);
/Applications/ note:
      candidate function
abs(float __x) _NOEXCEPT {return fabsf(__x);}
/Applications/ note:
      candidate function
abs(double __x) _NOEXCEPT {return fabs(__x);}
/Applications/ note:
      candidate function
abs(long double __x) _NOEXCEPT {return fabsl(__x);}

I believe the problem is that cstdlib needs to be included in g_ai.cpp as that's where the int version of abs lives. I verified by inserting #include <cstdlib> directly in g_ai.cpp and that fixed it (well, the compile got way past that point before having another issue). I'm not sure where the actual correct place for that include is (somewhere in a header file probably).

Anyway, hopefully I can help out (keeping things compiling on OS X if nothing else).

Pages: [1]