osx snow leopard build error

Bug #424531 reported by DasBaum
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Return To The Roots
Won't Fix
Medium
FloSoft
S25client
Won't Fix
Medium
FloSoft

Bug Description

moin, hab jetz snow leopard installiert - (immernoch i386) wollte das game für den neuen 10er kernel neukompiliern und das is passiert:

./cmake.sh --prefix=.
Activating release build
Running "cmake -DPREFIX=. -DCMAKE_INSTALL_PREFIX=. -DCOMPILEFOR_PLATFORM=macos.local -DBINDIR=./bin -DDATADIR=./share/s25rttr"
-- Compiling for macos.local
-- The C compiler identification is unknown <<<<<<< müsste da nich die distri mit architektur stehn???
-- The CXX compiler identification is unknown<<<<<< "
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
--
(...) soweit ok...

make
Scanning dependencies of target version
[ 0%] Building CXX object version/src/CMakeFiles/version.dir/main.o
Linking CXX executable version
[ 0%] Built target version
Scanning dependencies of target updateversion
renewing version to day "20090904"
renewing version to revision "5478"
[ 0%] Built target updateversion
Scanning dependencies of target audiodrv
[ 0%] Building CXX object driver/src/CMakeFiles/audiodrv.dir/AudioDriver.o
/Users/.../s25rttr/driver/src/AudioDriver.cpp:1: error: CPU you selected does not support x86-64 instruction set
/Users/.../s25rttr/driver/src/AudioDriver.cpp:1: error: -malign-double makes no sense in the 64bit mode
make[2]: *** [driver/src/CMakeFiles/audiodrv.dir/AudioDriver.o] Error 1
make[1]: *** [driver/src/CMakeFiles/audiodrv.dir/all] Error 2
make: *** [all] Error 2

mein mac hat folgendes:
Darwin MacBook.local 10.0.0 Darwin Kernel Version 10.0.0: Fri Jul 31 22:47:34 PDT 2009; root:xnu-1456.1.25~1/RELEASE_I386 i386

die rev steht oben im debug

mfg ich hoffe ihr könnt mir helfen ;)

Tags: all-rev
Revision history for this message
FloSoft (flosoft) wrote :

hmm okay das untere hab ich nicht gelsen gehabt.

Jedenfalls kopiere mal

cmake/macos.local.cmake

nach

cmake/macos.snow.cmake

und ändere folgendes:

---
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mtune=prescott -malign-double -ffast-math -mmmx -msse -mfpmath=sse -fomit-frame-pointer ")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mtune=prescott -malign-double -ffast-math -mmmx -msse -mfpmath=sse -fomit-frame-pointer ")
---

zu

---
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffast-math -mmmx -msse -mfpmath=sse -fomit-frame-pointer ")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffast-math -mmmx -msse -mfpmath=sse -fomit-frame-pointer ")
---

und bau dann mal mit

---
cd build
cmake -DPREFIX=. -DCMAKE_INSTALL_PREFIX=. -DCOMPILEFOR_PLATFORM=macos.snow ..
make
---

tags: added: all-rev
Revision history for this message
DasBaum (oneill) wrote :

victory!!
der compiler wird jetz als GNU erkannt
und zu bauen scheint der jetz auch - bricht zwar ab, weil ich noch nich alle benötigten pakete neukompiliert hab - muss für snowy macports komplett neu aufsetzen...

danke erstmal, ich meld mich wenns was neues gibt

FloSoft (flosoft)
Changed in s25rttr:
milestone: none → nightly
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.