[CMake] building plplot

Vincenzo Urso Miano ursomiano at googlemail.com
Wed Mar 17 15:56:50 EDT 2010


Hi everyone,
I am trying to build plplot with CMake.

My details
-Windows XP
-to build plplot I installed the MinGW suite
-cmake 2.8

Here's what i get:

C:\plplot-5.9.5>cmake -DCMAKE_INSTALL_PREFIX=C:\plplotBUILD
-- The C compiler identification is unknown
-- Check for working C compiler: C:/MinGW/bin/gcc.exe
-- Check for working C compiler: C:/MinGW/bin/gcc.exe -- broken
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCComp
iler.cmake:50 (MESSAGE):
  The C compiler "C:/MinGW/bin/gcc.exe" is not able to compile a simple test
  program.

  It fails with the following output:
   Change Dir: C:/plplot-5.9.5/CMakeFiles/CMakeTmp

  Run Build Command:nmake /NOLOGO "cmTryCompileExec\fast"
        nmake -f CMakeFiles\cmTryCompileExec.dir\build.make /nologo -L
  CMakeFiles\cmTryCompileExec.dir\build

        "C:\Program Files\CMake 2.8\bin\cmake.exe" -E cmake_progress_report
  C:\plplot-5.9.5\CMakeFiles\CMakeTmp\CMakeFiles 1

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

        C:\MinGW\bin\gcc.exe /DWIN32 /D_WINDOWS /W3 /Zm1000 -o
  CMakeFiles\cmTryCompileExec.dir\testCCompiler.c.obj -c
  C:\plplot-5.9.5\CMakeFiles\CMakeTmp\testCCompiler.c

  gcc.exe: /DWIN32: No such file or directory
  gcc.exe: /D_WINDOWS: No such file or directory
  gcc.exe: /W3: No such file or directory
  gcc.exe: /Zm1000: No such file or directory
  NMAKE : fatal error U1077: 'C:\MinGW\bin\gcc.exe' : return code '0x1'
  Stop.

  NMAKE : fatal error U1077: '"c:\program files\microsoft visual
  studio\vc98\bin\nmake.exe"' : return code '0x2'
  Stop.

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:38 (project)
-- Configuring incomplete, errors occurred!

I don't know why gcc is not compiling. could you help me with this?
It's the first time I use CMake

Thanks
Vince


More information about the CMake mailing list