[CMake] cmake errror

2011-03-30 Thread Enrique Izaguirre
Hello friends, When running cmake command with a toolchain file I got this error: -- Detecting CXX compiler ABI info - done CMake Error at C:/cygwin/CMake/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:48 (FILE): file STRINGS file

[CMake] Compiling multiple files, only takes the first one

2011-03-14 Thread Enrique Izaguirre
Hello friends, I have a problem when I try to compile several files, for some reason it takes only the first of the list to build it. It displays a few warnings and at the end the following error: make[2]: *** [CMakeFiles/omap.dir/host/fastboot.c.o] Error 1 make[2]: Leaving directory

Re: [CMake] Compiling multiple files, only takes the first one

2011-03-14 Thread Enrique Izaguirre
is 2.8.3 Thanks a lot Enrique On Mon, Mar 14, 2011 at 2:20 PM, Eric Noulard eric.noul...@gmail.comwrote: 2011/3/14 Enrique Izaguirre enrique.izagui...@gmail.com: Hello friends, I have a problem when I try to compile several files, for some reason it takes only the first of the list

Re: [CMake] Compiling multiple files, only takes the first one

2011-03-14 Thread Enrique Izaguirre
...@gmx.net On Monday 14 March 2011, Enrique Izaguirre wrote: Hello friends, I have a problem when I try to compile several files, for some reason it takes only the first of the list to build it. It displays a few warnings and at the end the following error: make[2]: *** [CMakeFiles/omap.dir

Re: [CMake] Compiling multiple files, only takes the first one

2011-03-14 Thread Enrique Izaguirre
Thanks guys. It is doing it right. Best Regards Enrique On Mon, Mar 14, 2011 at 3:22 PM, Enrique Izaguirre enrique.izagui...@gmail.com wrote: OK, I couldn't even imagine that. Really appreciate, I'll make another try. Best Regards Enrique On Mon, Mar 14, 2011 at 3:09 PM, Tyler ty

Re: [CMake] make didn't compile

2011-03-03 Thread Enrique Izaguirre
way to overcome this issue? Thanks Best Regards Enrique On Wed, Mar 2, 2011 at 10:51 AM, Enrique Izaguirre enrique.izagui...@gmail.com wrote: Thank you Michael, This is the output: /usr/bin/cmake.exe -H/home/x0148488/myprjflash -B/home/x0148488/myprjflash/cmake_build --check-build

Re: [CMake] Function and list

2011-03-02 Thread Enrique Izaguirre
As far as I know, you have to use foreach( ) to print element by element in the list. BR Enrique On Wed, Mar 2, 2011 at 8:52 AM, Anton Sibilev anton.sibi...@gmail.comwrote: Hello! I have a function like FUNCTION (MY_FUNC list) MESSAGE (..${list}) ENDFUNCTION () And I call it like:

[CMake] make didn't compile

2011-03-02 Thread Enrique Izaguirre
Hello friends, I have another problem with my build. I run Cmake and complete the building and production of a Makefile. But when I run make I get the following result: i686-unknown-linux-gnu-g++: cannot specify -o with -c or -S and multiple compilations make[2]: ***

Re: [CMake] Including a header file fails

2011-03-01 Thread Enrique Izaguirre
:55:12, Enrique Izaguirre wrote: Hello, I am trying to include a windows header file in my build. The simplest way I found is to add the following in the main CMakeLists.txt file: include_directories (${MYPRJ_SOURCE_DIR}/../../../usr/include/w32api) add_library (w32api w32api

Re: [CMake] Including a header file fails

2011-03-01 Thread Enrique Izaguirre
. Thanks Enrique On Tue, Mar 1, 2011 at 1:20 PM, Enrique Izaguirre enrique.izagui...@gmail.com wrote: Thank you very much. I'll try that. Best Regards Enrique On Tue, Mar 1, 2011 at 1:18 PM, John Drescher dresche...@gmail.comwrote: On Tue, Mar 1, 2011 at 2:15 PM, Enrique Izaguirre

Re: [CMake] Including a header file fails

2011-03-01 Thread Enrique Izaguirre
14:58:15, Enrique Izaguirre wrote: I tried several ways but I cannot make it work. The only thing I need to do is to add a folder which contains a windows header file, in order that it be included in the build. There must be a simple way to do it. Could you help? Header files

[CMake] Including a header file fails

2011-02-28 Thread Enrique Izaguirre
Hello, I am trying to include a windows header file in my build. The simplest way I found is to add the following in the main CMakeLists.txt file: include_directories (${MYPRJ_SOURCE_DIR}/../../../usr/include/w32api) add_library (w32api w32api/winbase.h) add_executable (myprj ${hostFiles})

[CMake] Problem with add_executable ( )

2011-02-17 Thread Enrique Izaguirre
Hello friends, I have a problem when running cmake command, the add_executable ( ) is giving me an error which I cannot see what is the problem. I have in my main CMakeLists.txt files the following section: == include (host/CMakeLists.txt) foreach (FILE

Re: [CMake] Problem with add_executable ( )

2011-02-17 Thread Enrique Izaguirre
, Enrique Izaguirre wrote: Hello friends, I have a problem when running cmake command, the add_executable ( ) is giving me an error which I cannot see what is the problem. I have in my main CMakeLists.txt files the following section: == include

Re: [CMake] Problem with add_executable ( )

2011-02-17 Thread Enrique Izaguirre
14:28:21, Enrique Izaguirre wrote: Thank you Andreas, Yes, it is empty, but I tried now creating FILES this way before the foreach: set (FILES ) and still got the same result. Is this way OK to create an empty variable? You don't understand the problem, as long as FILES

Re: [CMake] Problem with add_executable ( )

2011-02-17 Thread Enrique Izaguirre
Thank you very much Andreas, I did it and it worked. Really appreciated your help. Best Regards Enrique On Thu, Feb 17, 2011 at 4:54 PM, Andreas Pakulat ap...@gmx.de wrote: On 17.02.11 15:12:28, Enrique Izaguirre wrote: OK, I got it. The example I saw in the book is also without

[CMake] CMake Error: Error required internal CMake variable not set

2011-02-04 Thread Enrique Izaguirre
Hello again, I am trying to cross-compile from Windows (actually Cygwin) to Linux. My Toolchain file (Toolchain-linuxcpp.cmake) is as follows: SET(CMAKE_SYSTEM_NAME Linux) #specify the cross-compiler set (CMAKE_C_COMPILER /bin/gcc-linux) set (CMAKE_CXX_COMPILER /bin/g++-linux) After doing the

Re: [CMake] CMake Error: Error required internal CMake variable not set

2011-02-04 Thread Enrique Izaguirre
/x0148488/omapflash/cmake_build Thanks Enrique 2011/2/4 Alexander Neundorf a.neundorf-w...@gmx.net On Friday 04 February 2011, Enrique Izaguirre wrote: Hello again, I am trying to cross-compile from Windows (actually Cygwin) to Linux. My Toolchain file (Toolchain-linuxcpp.cmake

[CMake] Executable in the main directory

2011-02-02 Thread Enrique Izaguirre
Hello, Is it possible to create an executable in your top directory if you don't have there any program? I mean, if all your programs .c and .cpp are in subdirectories contained in your top directory, each one with its own CMakeLists.txt. I have three subdirectories, and all my programs are in

Re: [CMake] Executable in the main directory

2011-02-02 Thread Enrique Izaguirre
...@gmail.com wrote: 2011/2/2 Enrique Izaguirre enrique.izagui...@gmail.com: Hello, Is it possible to create an executable in your top directory if you don't have there any program? I mean, if all your programs .c and .cpp are in subdirectories contained in your top directory, each one with its

[CMake] CMake Error: Error required internal CMake variable not set, ...

2011-01-12 Thread Enrique Izaguirre
Hello, I am new to CMake and following a few examples, I am now trying to cross-compile a C++ program from Cygwin to Linux, and I got the following errors: CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is:

[CMake] Still have a problem to cross-compile a simple C++ program

2011-01-12 Thread Enrique Izaguirre
Hello again: For some reason when I try to compile a simple C++ program, it takes the wrong compiler, even though I am setting the appropriate one in the Toolchain file; I am working on Cygwin, and I am trying to compile for a LInux environment using g++-linux compiler, which I tested it and works