Re: [CMake] cross-compiling for arm

2016-09-16 Thread Rolf Eike Beer
Gunter, Walter E wrote: > I setup the Main CMakeLists.txt to cross_compile using an arm toolchain: > > cmake_minimum_required(VERSION 3.2) > > project(enterprise CXX) > > set(CMAKE_SYSTEM_NAME Linux) > set(CMAKE_CXX_COMPILER > /opt/toolchains/arm-2008q3/bin/arm-none-linux-gnueabi-g++) > set(CMAK

Re: [CMake] cross-compiling for arm

2016-09-16 Thread Gunter, Walter E
clude < -Original Message- From: Rolf Eike Beer [mailto:e...@sf-mail.de] Sent: Thursday, September 15, 2016 12:06 PM To: cmake@cmake.org Cc: Gunter, Walter E Subject: Re: [CMake] cross-compiling for arm Am Donnerstag, 15. September 2016, 15:48:02 schrieb Gunter, Walter E: > I am us

Re: [CMake] cross-compiling for arm

2016-09-15 Thread Rolf Eike Beer
Am Donnerstag, 15. September 2016, 15:48:02 schrieb Gunter, Walter E: > I am using the arm-2008q3 toolchain and having some issues with compiling. > Doing a c++ compile for RT Linux, > I have setup the following in my main CMakeLists.txt Use a toolchain file. project() will scan for the compiler a

[CMake] cross-compiling for arm

2016-09-15 Thread Gunter, Walter E
I am using the arm-2008q3 toolchain and having some issues with compiling. Doing a c++ compile for RT Linux, I have setup the following in my main CMakeLists.txt arm-none-linux-gnueabi-g++ cmake_minimum_required(VERSION 3.2) project(enterprise CXX) set(CMAKE_SYSTEM_NAME Linux) set(CMAKE_CXX_COM

Re: [CMake] CMake Cross Compiling for arm-linux

2008-03-13 Thread Alexander Neundorf
On Friday 14 March 2008, John Xu wrote: > Of course. Here is the toolchain file content: > > # This one is important > SET(CMAKE_SYSTEM_NAME Linux) > > # This one not so much > SET(CMAKE_SYSTEM_VERSION 2.5) > > # Specify the cross compiler > SET(CMAKE_FORCE_C_COMPILER /cross/arm-linux/bin/arm-linux

Re: [CMake] CMake Cross Compiling for arm-linux

2008-03-13 Thread John Xu
Of course. Here is the toolchain file content: # This one is important SET(CMAKE_SYSTEM_NAME Linux) # This one not so much SET(CMAKE_SYSTEM_VERSION 2.5) # Specify the cross compiler SET(CMAKE_FORCE_C_COMPILER /cross/arm-linux/bin/arm-linux-gcc GNU) SET(CMAKE_FORCE_CXX_COMPILER /cross/arm-lin

Re: [CMake] CMake Cross Compiling for arm-linux

2008-03-13 Thread Alexander Neundorf
On Thursday 13 March 2008, John Xu wrote: > Alex, > > Just ran the cvs version of CMake and got the following output: > > sh: error while loading shared libraries: /usr/lib/libncurses.so.5: ELF > file OS ABI invalid You have to post the cmake command line, and the toolchain file (you should have

Re: [CMake] CMake Cross Compiling for arm-linux

2008-03-13 Thread John Xu
Alex, Just ran the cvs version of CMake and got the following output: sh: error while loading shared libraries: /usr/lib/libncurses.so.5: ELF file OS ABI invalid sh: error while loading shared libraries: /usr/lib/libncurses.so.5: ELF file OS ABI invalid sh: error while loading shared libraries:

Re: [CMake] CMake Cross Compiling for arm-linux

2008-03-13 Thread Alexander Neundorf
On Thursday 13 March 2008, John Xu wrote: > Alex, > > I have a more basic question since I have not used cvs before. Is the > information included in the following link still valid? > > http://www.cmake.org/pipermail/cmake/2001-June/002318.html > > Do I need to register for a username and password

Re: [CMake] CMake Cross Compiling for arm-linux

2008-03-13 Thread John Xu
Alex, I have a more basic question since I have not used cvs before. Is the information included in the following link still valid? http://www.cmake.org/pipermail/cmake/2001-June/002318.html Do I need to register for a username and password to access the repository? John On 3/13/08, Alexander

Re: [CMake] CMake Cross Compiling for arm-linux

2008-03-13 Thread Alexander Neundorf
On Thursday 13 March 2008, John Xu wrote: ... > > /build/cmake_tool/share/cmake-2.4/Modules/Platform/UnknownOS.cmake to use > > this system, please send your config file to [EMAIL PROTECTED] so it > > can be added to cmake > > > > -- Check for working C compiler: /cross/arm-linux/bin/arm-linux-gcc

Re: [CMake] CMake Cross Compiling for arm-linux

2008-03-13 Thread John Xu
I sent out this email before signing up to the cmake email list. Resend again just to be sure. Thanks. John On 3/12/08, John Xu <[EMAIL PROTECTED]> wrote: > > Hi, > > I was trying to cross compile something for arm-linux by running a script > on i386. Here is the output: > > > sh: error while loa