On Tue, Feb 1, 2011 at 20:04, David Cole <david.c...@kitware.com> wrote: > On Tue, Feb 1, 2011 at 1:30 AM, Dongsheng Song <dongsheng.s...@gmail.com> > wrote: >> On 2011-2-1 5:45, David Cole wrote: >>> The CMake 2.8.4 release candidate stream continues! You can find the >>> source and binaries here: http://www.cmake.org/files/v2.8/?C=M;O=D >>> >>> Since we switched to git, and a new workflow, we're expecting to do >>> more frequent releases. Because of that, our release candidate phases >>> will be shorter than they have been historically. So, if you want to >>> test this out and ask for a fix, do it soon, or hold your peace till >>> the next release! >>> >>> Following is the list of changes in this release. Since we switched to >>> git, this list is now the 'git log' one line summary written by the >>> named CMake developers. >>> >>> Please try this version of CMake on your projects and report any >>> issues to the list or the bug tracker. >>> >>> Happy building! >>> -Dave >> >> When I use cmake 2.8.2 with Debian 6.0: >> >> $ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release >> -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_C_COMPILER=i686-w64-mingw32-gcc >> -DCMAKE_RC_COMPILER=i686-w64-mingw32-windres >> -- The C compiler identification is GNU >> -- The CXX compiler identification is GNU >> -- Check for working C compiler: >> /home/oracle/gcc-4.6-windows_i686-linux/bin/i686-w64-mingw32-gcc >> -- Check for working C compiler: >> /home/oracle/gcc-4.6-windows_i686-linux/bin/i686-w64-mingw32-gcc -- works >> -- Detecting C compiler ABI info >> -- Detecting C compiler ABI info - done >> -- Check for working CXX compiler: >> /home/oracle/gcc-4.6-windows_i686-linux/bin/i686-w64-mingw32-c++ >> -- Check for working CXX compiler: >> /home/oracle/gcc-4.6-windows_i686-linux/bin/i686-w64-mingw32-c++ -- works >> -- Detecting CXX compiler ABI info >> -- Detecting CXX compiler ABI info - done >> -- Configuring done >> -- Generating done >> -- Build files have been written to: /home/oracle/vcs/git/freetds >> >> But cmake 2.8.4rc2 failed: >> >> $ export PATH=~/tmp/cmake-2.8.4-rc2-Linux-i686/bin:$PATH >> $ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release >> -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_C_COMPILER=i686-w64-mingw32-gcc >> -DCMAKE_RC_COMPILER=i686-w64-mingw32-windres >> -- Configuring done >> You have changed variables that require your cache to be deleted. >> Configure will be re-run and you may have to reset some variables. >> The following variables have changed: >> CMAKE_RC_COMPILER= i686-w64-mingw32-windres >> CMAKE_C_COMPILER= i686-w64-mingw32-gcc >> >> -- The C compiler identification is GNU >> -- The CXX compiler identification is GNU >> -- Check for working C compiler: >> /home/oracle/gcc-4.6-windows_i686-linux/bin/i686-w64-mingw32-gcc >> -- Check for working C compiler: >> /home/oracle/gcc-4.6-windows_i686-linux/bin/i686-w64-mingw32-gcc -- broken >> CMake Error at >> /home/oracle/tmp/cmake-2.8.4-rc2-Linux-i686/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 >> (MESSAGE): >> The C compiler >> "/home/oracle/gcc-4.6-windows_i686-linux/bin/i686-w64-mingw32-gcc" is not >> able to compile a simple test program. >> >> It fails with the following output: >> >> Change Dir: /home/oracle/vcs/git/freetds/CMakeFiles/CMakeTmp >> >> >> >> Run Build Command:/usr/bin/make "cmTryCompileExec/fast" >> >> /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make >> CMakeFiles/cmTryCompileExec.dir/build >> >> make[1]: Entering directory >> `/home/oracle/vcs/git/freetds/CMakeFiles/CMakeTmp' >> >> /home/oracle/tmp/cmake-2.8.4-rc2-Linux-i686/bin/cmake -E >> cmake_progress_report >> /home/oracle/vcs/git/freetds/CMakeFiles/CMakeTmp/CMakeFiles 1 >> >> Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj >> >> /home/oracle/gcc-4.6-windows_i686-linux/bin/i686-w64-mingw32-gcc -o >> CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj -c >> /home/oracle/vcs/git/freetds/CMakeFiles/CMakeTmp/testCCompiler.c >> >> Linking C executable cmTryCompileExec >> >> /home/oracle/tmp/cmake-2.8.4-rc2-Linux-i686/bin/cmake -E cmake_link_script >> CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1 >> >> /home/oracle/gcc-4.6-windows_i686-linux/bin/i686-w64-mingw32-gcc >> CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj -o cmTryCompileExec >> -rdynamic >> >> i686-w64-mingw32-gcc: error: unrecognized option '-rdynamic' >> >> make[1]: *** [cmTryCompileExec] Error 1 >> >> make[1]: Leaving directory >> `/home/oracle/vcs/git/freetds/CMakeFiles/CMakeTmp' >> >> make: *** [cmTryCompileExec/fast] Error 2 >> >> >> >> >> >> CMake will not be able to correctly generate this project. >> Call Stack (most recent call first): >> CMakeLists.txt:37 (PROJECT) >> >> >> -- Configuring incomplete, errors occurred! >> >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the CMake FAQ at: >> http://www.cmake.org/Wiki/CMake_FAQ >> >> Follow this link to subscribe/unsubscribe: >> http://www.cmake.org/mailman/listinfo/cmake >> > > Did you have this cross-compiling scenario working with a previous > version of CMake before trying CMake 2.8.4-rc2? > > Please let us know if this is a change in behavior in CMake or if this > is the first time you've tried this... > > Thanks, > David >
As I have described, I can use cmake 2.8.2 do cross compiling successfully. _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake