Von: Yann Renard <[EMAIL PROTECTED]> > Arjen Markus wrote: > > Yann Renard wrote: > > > >> Cheers guys, > >> > >> I'm trying to use cmake under windows in order to generate VC8 > >> makefiles. I have read > >> http://cmake.org/Wiki/CMake_Generator_Specific_Information chapter > >> about windows and written down a sript that looks like this : > >> > >> set path=d:\yrenard\platform-sdk\bin;%path% > >> set include=d:\yrenard\platform-sdk\include;%include% > >> set lib=d:yrenard\platform-sdk\lib;%lib% > >> call "d:\visual studio 8\vc\vcvarsall.bat" > >> > >> however, when calling 'cmake .' in my directory (even in the sample > >> directory provided by cmake documentation), the linker complains not > >> finding 'user32.lib'. This library is present in the > >> 'd:yrenard\platform-sdk\lib' directory. The error happens before cmake > >> does anything on the project, it happens on the testing phase while > >> cmake checks the compilator (cmTryCompileExec)... > >> > >> I'm getting mad with this error. > >> The samples of the platform SDK compile correctly. > > > > Have you checked that these environment variables are set correctly? > > PATH and so on usually have embedded spaces and the DOS SET command > > does not really like that. > > > > Regards, > > > > Arjen > > Arjen, > > typing 'set' at the windows prompt reports the variables to be set > correctly. > You did not run cmake / cmakesetup from the correct command prompt. Therefore your env vars 'LIB' and 'INCLUDE' are not set correct. Take a look into your start menu (PlatformSDK -> OpenBuildEnv Window -> ...) and don't open your command prompt by executing cmd.exe.
HTH Christian -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
