winson wrote:
I am using VC++ 2005 Express. I have installed PSDK
for Windows Server 2003 R2 and wxWidget 2.8.2. I
downloaded cmake 2.4.6, and I was trying to compile
the source code of a package named PLplot5.7.2. At the
command window, I used the command:

cmake -G "NMake Makefiles"
-DCMAKE_INSTALL_PREFIX=install ..

I got the following error message.

------------------------------------------
Determining if this is a free VC compiler failed with
the following output:
CMakeTestForFreeVC.cxx
D:\Program Files\CMake
2.4\share\cmake-2.4\Modules\CMakeTestForFreeVC.cxx(1)
: fatal error C1034: iostream: no include path set

Determining if the C compiler works failed with the
following output:
        "D:\Program Files\Microsoft Visual Studio
8\VC\bin\nmake.exe" -f
CMakeFiles\cmTryCompileExec.dir/build.make /nologo -L CMakeFiles\cmTryCompileExec.dir\build

        "D:\Program Files\CMake 2.4\bin\cmake.exe" -E
cmake_progress_report
D:\plplot-5.7.2\buildnmake\CMakeFiles\CMakeTmp\CMakeFiles
1

Building C object
CMakeFiles/cmTryCompileExec.dir/testCCompiler.obj

D:\PROGRA~1\MICROS~2\VC\bin\cl.exe @E:\APPLIC~1\Temp\nm2CF.tmp

testCCompiler.c

D:\plplot-5.7.2\buildnmake\CMakeFiles\CMakeTmp\testCCompiler.c(4)
: fatal error C1034: stdio.h: no include path set

NMAKE : fatal error U1077:
'D:\PROGRA~1\MICROS~2\VC\bin\cl.exe' : return code
'0x2'

Stop.

NMAKE : fatal error U1077: '"D:\Program
Files\Microsoft Visual Studio 8\VC\bin\nmake.exe"' :
return code '0x2'

Stop.
----------------------------------------

It seems that the include path of stdio.h is missing.
However, I also tested putting the 'include' and 'lib'
path in system environment, that does not help
either. Any idea on what could be the cause of the
problem? Thanks for your help.

It is simple, your environment is not set up correctly to run the compiler from the command line. Try it yourself, create a small c++/c program and try to compile it. If that works and CMake does not then repost to the list. INCLUDE and LIB need to be set up correctly.

-Bill

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to