Re: [CMake] Using gcc as an alternative compiler on windows
You need to have a valid/correct installation of MinGW or MSYS+MinGW or Cygwin. After you get one of those installed and working correctly then it is a matter of telling CMake you want to generate makefiles for one of those systems. So, if you want to use MinGW with the new GCC 4.4 compiler, then get that installed. Open up a MinGW command prompt Navigate to a CLEAN build directory and invoke either cmake or cmake-gui You will want to use the MinGW Makefiles generator. CMake will create the necessary MinGW makefiles for you. Then use MinGW-Make32.exe to build your code. That is a pretty short How to but there are more examples floating around the internet. _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer Dayton, Ohio On Wed, Jan 20, 2010 at 12:35 PM, Chauhan, Vikas vikas.chau...@anritsu.com wrote: Hi, At present I have written my source code for VS2008. I use cmake to generate VS2008 project files. If I wanted to switch the compiler to gcc then is it possible to use the same cmakelists.txt that I have in my source tree generate the nmake files or makefiles or vcproj files to use gcc compiler on windows? Thanks, Vikas ___ 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 ___ 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
Re: [CMake] Using gcc as an alternative compiler on windows
Navigate to a CLEAN build directory and invoke either cmake or cmake-gui Out of source builds work great here. You keep your source in one tree and your builds in other trees. For me its a choice between 32 and 64 bit builds for different microsoft compilers. I have my source trees inside of x:\CMakeBased\some path\ProjectName Then my binary builds are in: x:\32bit\vc.71\some path\ProjectName x:\32bit\vc.80\some path\ProjectName x:\32bit\vc.90\some path\ProjectName x:\64bit\vc.80\some path\ProjectName x:\64bit\vc.90\some path\ProjectName John ___ 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
Re: [CMake] Using gcc as an alternative compiler on windows
2010/1/20 John Drescher dresche...@gmail.com: Navigate to a CLEAN build directory and invoke either cmake or cmake-gui Out of source builds work great here. You keep your source in one tree and your builds in other trees. Hi Vikas, May be you could read the FAQ for knowing more about out-of-source: http://www.itk.org/Wiki/CMake_FAQ#What_is_an_.22out-of-source.22_build.3F -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org ___ 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
Re: [CMake] Using gcc as an alternative compiler on windows
2010/1/20 Mike Jackson mike.jack...@bluequartz.net: You need to have a valid/correct installation of MinGW or MSYS+MinGW or Cygwin. As a complement to Mike advice you may have a look at Code::Blocks (aka C::B) too, it's a cross-platform IDE working on Windows and there is downloadable installer which comes bundled with MinGW http://www.codeblocks.org/downloads/5 and off course there is a Code::Blocks+MInGW generator supported by CMake. -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org ___ 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
Re: [CMake] Using gcc as an alternative compiler on windows
2010/1/20 Mike Jackson mike.jack...@bluequartz.net: You need to have a valid/correct installation of MinGW or MSYS+MinGW or Cygwin. As a complement to Mike advice you may have a look at Code::Blocks (aka C::B) too, it's a cross-platform IDE working on Windows and there is downloadable installer which comes bundled with MinGW http://www.codeblocks.org/downloads/5 and off course there is a Code::Blocks+MInGW generator supported by CMake. To add an additional option I have successfully used QtCreator (which builds using MinGW) on windows with cmake. It supports CMakeLists.txt files directly. I would call it work in progress as far as the CMake support. John ___ 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
Re: [CMake] Using gcc as an alternative compiler on windows
Mike, Eric John - thanks very much for the help. I will work on these ideas. Regards, Vikas -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of John Drescher Sent: 20 January 2010 18:53 To: Eric Noulard Cc: cmake@cmake.org Subject: Re: [CMake] Using gcc as an alternative compiler on windows 2010/1/20 Mike Jackson mike.jack...@bluequartz.net: You need to have a valid/correct installation of MinGW or MSYS+MinGW or Cygwin. As a complement to Mike advice you may have a look at Code::Blocks (aka C::B) too, it's a cross-platform IDE working on Windows and there is downloadable installer which comes bundled with MinGW http://www.codeblocks.org/downloads/5 and off course there is a Code::Blocks+MInGW generator supported by CMake. To add an additional option I have successfully used QtCreator (which builds using MinGW) on windows with cmake. It supports CMakeLists.txt files directly. I would call it work in progress as far as the CMake support. John ___ 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 ___ 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
Re: [CMake] Using gcc as an alternative compiler on windows
On Wednesday 20 January 2010, John Drescher wrote: 2010/1/20 Mike Jackson mike.jack...@bluequartz.net: You need to have a valid/correct installation of MinGW or MSYS+MinGW or Cygwin. As a complement to Mike advice you may have a look at Code::Blocks (aka C::B) too, it's a cross-platform IDE working on Windows and there is downloadable installer which comes bundled with MinGW http://www.codeblocks.org/downloads/5 and off course there is a Code::Blocks+MInGW generator supported by CMake. To add an additional option I have successfully used QtCreator (which builds using MinGW) on windows with cmake. It supports CMakeLists.txt files directly. I would call it work in progress as far as the CMake support. What's not working ? (it works off the same CodeBlocks files) Alex ___ 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
Re: [CMake] Using gcc as an alternative compiler on windows
To add an additional option I have successfully used QtCreator (which builds using MinGW) on windows with cmake. It supports CMakeLists.txt files directly. I would call it work in progress as far as the CMake support. What's not working ? (it works off the same CodeBlocks files) The building works fine. qtcreator does not seem to handle debug, and release in an easy way and also by default it does an in source build. I know I had other issues but I have not played with this in a few weeks so I do not remember. John ___ 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