Can't compile in Mac

Bug #816573 reported by ASDF on 2011-07-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Stratagus
Fix Released
Undecided
Pali

Bug Description

A -D define for Mac in CPPFLAGS is added correctly, but if I don't add -D__unix too, the compilation fails.

Related branches

Pali (pali) wrote :

Please test CMake version from bzr. And if needed attach cmake patch which add missing flags

Changed in stratagus:
status: New → Incomplete
ASDF (asdf22) wrote :

After add_definitions(-DUSE_MAC) in CMakeLists.txt, add: add_definitions(-D__unix)
FindOpenGLES.cmake uses some unknown CMake commands.
Had to remove Units.for_each(InternalRemoveUnit); from ai_local.h

ASDF (asdf22) wrote :
ASDF (asdf22) wrote :
Pali (pali) on 2011-07-27
Changed in stratagus:
status: Incomplete → In Progress
assignee: nobody → Pali (pali)
Pali (pali) wrote :

This bug was fixed in this commit: http://bazaar.launchpad.net/~stratagus/stratagus/trunk/revision/7984

But I do not have Mac to test Stratagus. Please confirm if all is OK.

Changed in stratagus:
status: In Progress → Fix Committed
milestone: none → 2.2.6
ASDF (asdf22) wrote :

Great, but I still can't compile because of libpng 1.5.

ASDF (asdf22) wrote :

(And the compilation still fails with the line: Units.for_each(InternalRemoveUnit) in ai_local.h - but I guess that happens everywhere and that you know that already)

Pali (pali) on 2011-12-26
Changed in stratagus:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers