[CMake] building plplot for compaq visual fortran
Vincenzo Urso Miano
ursomiano at googlemail.com
Tue Mar 9 02:30:13 EST 2010
Hello,
I have been told that cmake compiles plplot with gcc.
Here's whta 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)
It still does not compile the test and I get 'No such file or
directory' for the options passed to gcc like /DWIN32 etc...
Am I doing something wrong?
Thanks,
Vince
-- Configuring incomplete, errors occurred!
2010/3/7 Vincenzo Urso Miano <ursomiano at googlemail.com>:
> Hello,
> as per object I am trying to do this build. It's the fist time I am
> compiling some libraries.
> Details:
>
> -Windows XP
> -compaq visual fortran 6.6c
> -to build plplot I am using Bcc, the c++ compiler from borland (I am
> not sure I should use this).
> -cmake 2.8
>
> The problem:
> -the first time i click on 'configure' cmake looks for a c compiler.
> Does not find it.
> -I change the value of CMAKE_C_COMPILER to the path of bcc32.exe and
> reclick on 'configure'
>
> Here is the error message i get:
> ---------------------------------------------------------
> CMake Error: Generator: execution of make failed. Make command was:
> make "cmTryCompileExec\fast"
> Check for working C compiler: C:/Borland/BCC55/Bin/bcc32.exe -- broken
> CMake Error at C:/Program Files/CMake
> 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:50 (MESSAGE):
> The C compiler "C:/Borland/BCC55/Bin/bcc32.exe" is not able to compile a
> simple test program.
>
> It fails with the following output:
>
> Change Dir: E:/Workspace/plplot_build/CMakeFiles/CMakeTmp
>
> Run Build Command:make "cmTryCompileExec\fast"
>
> The system cannot find the file specified
>
> Generator: execution of make failed. Make command was: make
> "cmTryCompileExec\fast"
>
> CMake will not be able to correctly generate this project.
> Call Stack (most recent call first):
> CMakeLists.txt:38 (project)
>
> Configuring incomplete, errors occurred!
> ----------------------------------------------------------------------------
>
> Can you please help me? I don't know how to progress from here.
>
> Thanks
>
> Vince
>
More information about the CMake
mailing list