Hello All,
Thank you for your replies. The cmake command fails when trying to compile the test file. It says it cannot find kernel32.lib. I can compile and link without cmake just fine. Any ideas? Thanks, -G _____ From: Bill Hoffman [mailto:bill.hoff...@kitware.com] To: cmake@cmake.org Sent: Mon, 21 Jun 2010 08:12:49 -0500 Subject: Re: [CMake] One last try On 6/21/2010 3:02 AM, Gerry Weaver wrote: > Hello All, > ... > 1. Is cmake supposed to support Visual Studio 2008 out of the box? > 2. If not, is there support for Visual Studio 2010? > 3. If not, is there a patch or fix for either of the above? > > cmake 2.8.1 > msvc 2008 > winxp sp4 > Nmake Makefiles > > 1. Yes, if VS 2008 is installed correctly. First thing you should try is to build a file WITHOUT CMake: -----foo.cxx-------- #include <iostream> int main() { std::cout << "hello\n"; return 0; } ------------------ Use this command line: cl foo.cxx kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib If that works, then CMake should work when run FROM THAT SAME SHELL. If that does not work, then you have not correctly installed the SDK and compiler. Are you using the Express or professional version of VS 2008? If Express, you need to follow these instructions: http://blogs.msdn.com/b/windowssdk/archive/2008/02/22/using-visual-c-2008-express-with-the-windows-sdk-detailed-version.aspx Make sure you run CMake and your compiler from a shell that has all the environment that cl needs to run. Please post any errors exactly as you see them and include how you setup the environment for the compiler. -Bill _______________________________________________ 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