Hi Vincenzo,

it looks like CMake regards your gcc compiler as being similar
to the MS Visual C/C++ compiler, as the options it gets are
typical for that compiler.

Could you check that gcc is the first compiler in the path?
...

Oh! Can you try running CMake with the option -G "MinGW Makefiles",
as CMake is now trying to run the compiler via nmake - I have
a hunch that that makes it think it needs to use MSVC options.

Regards,

Arjen

On 2010-03-17 20:56, Vincenzo Urso Miano wrote:
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
_______________________________________________
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

Reply via email to