Re: [CMake] Cross-compiling on OS X/x86 for Linux/ARM, linking a library

2009-10-20 Thread Hendrik Sattler
Zitat von Vladimir Lebedev-Schmidthof : I tried having toochain.cmake file in the same dir as CMakeLists.txt using cmake -DCMAKE_TOOLCHAIN_FILE=./toolchain.cmake . does not seem to even read that file. I tried to state full path, move the file away, no luck. Since you are doing an in-source b

Re: [CMake] Cross-compiling on OS X/x86 for Linux/ARM, linking a library

2009-10-20 Thread Vladimir Lebedev-Schmidthof
Hello Hendrik, On Oct 20, 2009, at 15:56 PM, Hendrik Sattler wrote: > I tried. Setting CMAKE_SYSTEM_NAME to "Linux" does not seem to affect > CMAKE_SYSTEM WHERE are you try to set this? Setting this in a CMakeLists.txt file will not work. Did you read the wiki page[1] about cross-compiling? C

Re: [CMake] Cross-compiling on OS X/x86 for Linux/ARM, linking a library

2009-10-20 Thread Hendrik Sattler
Zitat von Vladimir Lebedev-Schmidthof : On Oct 19, 2009, at 23:18 PM, Alexander Neundorf wrote: I set CMAKE_SYSTEM to Linux, even added "SET(APPLE 0)" but install_name option is still generating. You should set "CMAKE_SYSTEM_NAME", not "CMAKE_SYSTEM" to "Linux". If you really set CMAKE_SYSTEM

Re: [CMake] Cross-compiling on OS X/x86 for Linux/ARM, linking a library

2009-10-20 Thread Vladimir Lebedev-Schmidthof
Hello Alexander, On Oct 19, 2009, at 23:18 PM, Alexander Neundorf wrote: > I set CMAKE_SYSTEM to Linux, even added "SET(APPLE 0)" but > install_name option is still generating. You should set "CMAKE_SYSTEM_NAME", not "CMAKE_SYSTEM" to "Linux". If you really set CMAKE_SYSTEM instead of CMAKE_S

Re: [CMake] Cross-compiling on OS X/x86 for Linux/ARM, linking a library

2009-10-19 Thread Alexander Neundorf
On Monday 19 October 2009, Vladimir Lebedev-Schmidthof wrote: > Hello everyone, > > Two compiling platforms - Linux and OS X. > Same project, same cmake (2.6.4), same target (Linux/ARM). > > Sources compiles well (GNU C/C++) but linking is different. > > Everything is fine on Linux. > > comparing m

[CMake] Cross-compiling on OS X/x86 for Linux/ARM, linking a library

2009-10-19 Thread Vladimir Lebedev-Schmidthof
Hello everyone, Two compiling platforms - Linux and OS X. Same project, same cmake (2.6.4), same target (Linux/ARM). Sources compiles well (GNU C/C++) but linking is different. Everything is fine on Linux. comparing make VERBOSE=1 outputs: OS X: [path-to]/gcc -march=armv5te -mtune=xscale -mso