Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Building PLplot on Windows

1,508 views
Skip to first unread message

Syntax error

unread,
Apr 6, 2016, 2:23:06 PM4/6/16
to
Hello,
Here a simple explanation on how to build and to use PLplot on windows

https://docs.google.com/presentation/d/1rR5C2t7_Yma543dzVFAkMjr_Kcn6izOv7aCQbmuIT-0/pub?start=true&loop=true&delayms=5000

I hope it helps anyone who had problems to install PLplot in windows (like me)

Regards
Samir OUCHENE

Clive Page

unread,
Apr 6, 2016, 5:53:15 PM4/6/16
to
Thanks that's very useful. I hope to try that out shortly.
--
Clive Page

Syntax error

unread,
Apr 7, 2016, 12:04:33 PM4/7/16
to
Just because I was curious, I compiled many examples and updated the document above.

miguel...@gmail.com

unread,
Apr 19, 2016, 10:29:12 AM4/19/16
to
Hi, thanks for the tutorial. I am doing everything like you but when I try to build the code it says "C:/tempdir/build" does not appear to contain CMakeLists.txt"
It's true because it's a new folder. I tried to copy the CMakelists.txt inside the folder plplot-5.11.1 to the build folder and it doesnt compile correctly. What am I missing?


Thanks,
Miguel

Syntax error

unread,
Apr 19, 2016, 11:03:07 AM4/19/16
to
Hello
Make sure that you navigate to build subfolder with the command

cd build
if the error persist, feel free to contact me in my email

Arjen Markus

unread,
Apr 20, 2016, 2:53:35 AM4/20/16
to
Op dinsdag 19 april 2016 16:29:12 UTC+2 schreef miguel...@gmail.com:
The typical CMake invocation is:
- go to the directory where you want things to be built:
cd /d c:\tempdir\build

- invoke CMake like:
cmake <directory containing the sources, including the CMakeLists.txt file> -G <generator of choice> <all the options you may want>

Say c:\tempdir\src contains the sources, then the command might look like:

cmake ..\src -G "NMake Makefiles"

(assuming no options are needed)

In short: Do not copy the CMakeLists.txt file - instead point to the directory containing the sources.

Regards,

Arjen

Dingjun Chen

unread,
Aug 28, 2023, 12:48:47 PM8/28/23
to
Hi, Arjen,

Could you help me with PLplot library installation on Windows via CMake + MinGW64 compilers + VS2022? I tried many times but failed to install it.
Could you tell me how to fix these errors?
I look forward to your help and your response would be highly appreciated. C

Please see the following error occurred on my computer:

PS C:\Users\Dingjun.Chen\plplot-5.15.0\build> cmake -G "MinGW Makefiles" -DDEFAULT_NO_BINDINGS=ON -DENABLE_C++=ON -DCMAKE_INSTALL_PREFIX=C:\plplot -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_Fortran_COMPILER=gfortran ..

-- The C compiler identification is GNU 13.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe
-- Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.27/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler

"C:/msys64/mingw64/bin/gcc.exe"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: 'C:/Users/Dingjun.Chen/plplot-5.15.0/build/CMakeFiles/CMakeScratch/TryCompile-3f05qd'

Run Build Command(s): "C:/Program Files/CMake/bin/cmake.exe" -E env VERBOSE=1 C:/msys64/mingw64/bin/mingw32-make.exe -f Makefile cmTC_bbc00/fast
C:/msys64/mingw64/bin/mingw32-make.exe -f CMakeFiles\cmTC_bbc00.dir\build.make CMakeFiles/cmTC_bbc00.dir/build
mingw32-make[1]: Entering directory 'C:/Users/Dingjun.Chen/plplot-5.15.0/build/CMakeFiles/CMakeScratch/TryCompile-3f05qd'
Building C object CMakeFiles/cmTC_bbc00.dir/testCCompiler.c.obj
C:\msys64\mingw64\bin\gcc.exe /DWIN32 /D_WINDOWS /W3 -o CMakeFiles\cmTC_bbc00.dir\testCCompiler.c.obj -c C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeScratch\TryCompile-3f05qd\testCCompiler.c
gcc.exe: warning: /DWIN32: linker input file unused because linking not done
gcc.exe: error: /DWIN32: linker input file not found: No such file or directory
gcc.exe: warning: /D_WINDOWS: linker input file unused because linking not done
gcc.exe: error: /D_WINDOWS: linker input file not found: No such file or directory
gcc.exe: warning: /W3: linker input file unused because linking not done
gcc.exe: error: /W3: linker input file not found: No such file or directory
mingw32-make[1]: *** [CMakeFiles\cmTC_bbc00.dir\build.make:77: CMakeFiles/cmTC_bbc00.dir/testCCompiler.c.obj] Error 1
mingw32-make[1]: *** Deleting file 'CMakeFiles/cmTC_bbc00.dir/testCCompiler.c.obj'
mingw32-make[1]: Leaving directory 'C:/Users/Dingjun.Chen/plplot-5.15.0/build/CMakeFiles/CMakeScratch/TryCompile-3f05qd'
mingw32-make: *** [Makefile:126: cmTC_bbc00/fast] Error 2

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:110 (enable_language)



****************************************************************************

I also tried to install it via CMake GUI to install it and there are many errors occurred. Please see the details from the CMake build log error file:

*****************************************************************************

Determining if the DIR symbol is defined as in AC_HEADER_DIRENT failed with the following output:
Change Dir: 'C:/Users/Dingjun.Chen/plplot-5.15.0/build/CMakeFiles/CMakeFiles/CMakeTmp'
Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe" cmTC_81fb8.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:n
MSBuild version 17.7.2+d6990bcfa for .NET Framework
Build started 2023-08-28 12:21:27 PM.

Project "C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_81fb8.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "cmTC_81fb8.dir\Debug\".
Creating directory "C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\Debug\".
Creating directory "cmTC_81fb8.dir\Debug\cmTC_81fb8.tlog\".
InitializeBuildStatus:
Creating "cmTC_81fb8.dir\Debug\cmTC_81fb8.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
Touching "cmTC_81fb8.dir\Debug\cmTC_81fb8.tlog\unsuccessfulbuild".
ClCompile:
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX64\x64\CL.exe /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_81fb8.dir\Debug\\" /Fd"cmTC_81fb8.dir\Debug\vc143.pdb" /external:W3 /Gd /TC /errorReport:queue "C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\CheckDIRSymbolExists.c"
Microsoft (R) C/C++ Optimizing Compiler Version 19.37.32822 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_81fb8.dir\Debug\\" /Fd"cmTC_81fb8.dir\Debug\vc143.pdb" /external:W3 /Gd /TC /errorReport:queue "C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\CheckDIRSymbolExists.c"
CheckDIRSymbolExists.c
C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\CheckDIRSymbolExists.c(3,10): fatal error C1083: Cannot open include file: 'dirent.h': No such file or directory [C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_81fb8.vcxproj]
Done Building Project "C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_81fb8.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_81fb8.vcxproj" (default target) (1) ->
(ClCompile target) ->
C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\CheckDIRSymbolExists.c(3,10): fatal error C1083: Cannot open include file: 'dirent.h': No such file or directory [C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_81fb8.vcxproj]

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.69


File C:/Users/Dingjun.Chen/plplot-5.15.0/build/CMakeFiles/CMakeFiles/CMakeTmp/CheckDIRSymbolExists.c:
/* */
#include <sys/types.h>
#include <dirent.h>

int main()
{if ((DIR *) 0) return 0;}

Determining if the DIR symbol is defined as in AC_HEADER_DIRENT failed with the following output:
Change Dir: 'C:/Users/Dingjun.Chen/plplot-5.15.0/build/CMakeFiles/CMakeFiles/CMakeTmp'

Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe" cmTC_c88a6.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:n
MSBuild version 17.7.2+d6990bcfa for .NET Framework
Build started 2023-08-28 12:21:28 PM.

Project "C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_c88a6.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "cmTC_c88a6.dir\Debug\".
Creating directory "C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\Debug\".
Creating directory "cmTC_c88a6.dir\Debug\cmTC_c88a6.tlog\".
InitializeBuildStatus:
Creating "cmTC_c88a6.dir\Debug\cmTC_c88a6.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
Touching "cmTC_c88a6.dir\Debug\cmTC_c88a6.tlog\unsuccessfulbuild".
ClCompile:
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX64\x64\CL.exe /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_c88a6.dir\Debug\\" /Fd"cmTC_c88a6.dir\Debug\vc143.pdb" /external:W3 /Gd /TC /errorReport:queue "C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\CheckDIRSymbolExists.c"
Microsoft (R) C/C++ Optimizing Compiler Version 19.37.32822 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_c88a6.dir\Debug\\" /Fd"cmTC_c88a6.dir\Debug\vc143.pdb" /external:W3 /Gd /TC /errorReport:queue "C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\CheckDIRSymbolExists.c"
CheckDIRSymbolExists.c
C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\CheckDIRSymbolExists.c(3,10): fatal error C1083: Cannot open include file: 'sys/ndir.h': No such file or directory [C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_c88a6.vcxproj]
Done Building Project "C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_c88a6.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_c88a6.vcxproj" (default target) (1) ->
(ClCompile target) ->
C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\CheckDIRSymbolExists.c(3,10): fatal error C1083: Cannot open include file: 'sys/ndir.h': No such file or directory [C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_c88a6.vcxproj]

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.92


File C:/Users/Dingjun.Chen/plplot-5.15.0/build/CMakeFiles/CMakeFiles/CMakeTmp/CheckDIRSymbolExists.c:
/* */
#include <sys/types.h>
#include <sys/ndir.h>

int main()
{if ((DIR *) 0) return 0;}

Determining if the DIR symbol is defined as in AC_HEADER_DIRENT failed with the following output:
Change Dir: 'C:/Users/Dingjun.Chen/plplot-5.15.0/build/CMakeFiles/CMakeFiles/CMakeTmp'

Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe" cmTC_70ec4.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:n
MSBuild version 17.7.2+d6990bcfa for .NET Framework
Build started 2023-08-28 12:21:30 PM.

Project "C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_70ec4.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "cmTC_70ec4.dir\Debug\".
Creating directory "C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\Debug\".
Creating directory "cmTC_70ec4.dir\Debug\cmTC_70ec4.tlog\".
InitializeBuildStatus:
Creating "cmTC_70ec4.dir\Debug\cmTC_70ec4.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
Touching "cmTC_70ec4.dir\Debug\cmTC_70ec4.tlog\unsuccessfulbuild".
ClCompile:
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX64\x64\CL.exe /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_70ec4.dir\Debug\\" /Fd"cmTC_70ec4.dir\Debug\vc143.pdb" /external:W3 /Gd /TC /errorReport:queue "C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\CheckDIRSymbolExists.c"
Microsoft (R) C/C++ Optimizing Compiler Version 19.37.32822 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_70ec4.dir\Debug\\" /Fd"cmTC_70ec4.dir\Debug\vc143.pdb" /external:W3 /Gd /TC /errorReport:queue "C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\CheckDIRSymbolExists.c"
CheckDIRSymbolExists.c
C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\CheckDIRSymbolExists.c(3,10): fatal error C1083: Cannot open include file: 'sys/dir.h': No such file or directory [C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_70ec4.vcxproj]
Done Building Project "C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_70ec4.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_70ec4.vcxproj" (default target) (1) ->
(ClCompile target) ->
C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\CheckDIRSymbolExists.c(3,10): fatal error C1083: Cannot open include file: 'sys/dir.h': No such file or directory [C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_70ec4.vcxproj]

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.71


File C:/Users/Dingjun.Chen/plplot-5.15.0/build/CMakeFiles/CMakeFiles/CMakeTmp/CheckDIRSymbolExists.c:
/* */
#include <sys/types.h>
#include <sys/dir.h>

int main()
{if ((DIR *) 0) return 0;}

Determining if the DIR symbol is defined as in AC_HEADER_DIRENT failed with the following output:
Change Dir: 'C:/Users/Dingjun.Chen/plplot-5.15.0/build/CMakeFiles/CMakeFiles/CMakeTmp'

Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe" cmTC_41509.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:n
MSBuild version 17.7.2+d6990bcfa for .NET Framework
Build started 2023-08-28 12:21:31 PM.

Project "C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_41509.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "cmTC_41509.dir\Debug\".
Creating directory "C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\Debug\".
Creating directory "cmTC_41509.dir\Debug\cmTC_41509.tlog\".
InitializeBuildStatus:
Creating "cmTC_41509.dir\Debug\cmTC_41509.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
Touching "cmTC_41509.dir\Debug\cmTC_41509.tlog\unsuccessfulbuild".
ClCompile:
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX64\x64\CL.exe /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_41509.dir\Debug\\" /Fd"cmTC_41509.dir\Debug\vc143.pdb" /external:W3 /Gd /TC /errorReport:queue "C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\CheckDIRSymbolExists.c"
Microsoft (R) C/C++ Optimizing Compiler Version 19.37.32822 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_41509.dir\Debug\\" /Fd"cmTC_41509.dir\Debug\vc143.pdb" /external:W3 /Gd /TC /errorReport:queue "C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\CheckDIRSymbolExists.c"
CheckDIRSymbolExists.c
C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\CheckDIRSymbolExists.c(3,10): fatal error C1083: Cannot open include file: 'ndir.h': No such file or directory [C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_41509.vcxproj]
Done Building Project "C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_41509.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_41509.vcxproj" (default target) (1) ->
(ClCompile target) ->
C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\CheckDIRSymbolExists.c(3,10): fatal error C1083: Cannot open include file: 'ndir.h': No such file or directory [C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_41509.vcxproj]

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.81


File C:/Users/Dingjun.Chen/plplot-5.15.0/build/CMakeFiles/CMakeFiles/CMakeTmp/CheckDIRSymbolExists.c:
/* */
#include <sys/types.h>
#include <ndir.h>

int main()
{if ((DIR *) 0) return 0;}

Determining whether C compiler is NaN aware failed with the following output:
Change Dir: 'C:/Users/Dingjun.Chen/plplot-5.15.0/build/CMakeFiles/CMakeFiles/CMakeTmp'

Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe" cmTC_2c5a5.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:n
MSBuild version 17.7.2+d6990bcfa for .NET Framework
Build started 2023-08-28 12:22:39 PM.

Project "C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_2c5a5.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "cmTC_2c5a5.dir\Debug\".
Creating directory "C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\Debug\".
Creating directory "cmTC_2c5a5.dir\Debug\cmTC_2c5a5.tlog\".
InitializeBuildStatus:
Creating "cmTC_2c5a5.dir\Debug\cmTC_2c5a5.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
Touching "cmTC_2c5a5.dir\Debug\cmTC_2c5a5.tlog\unsuccessfulbuild".
ClCompile:
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX64\x64\CL.exe /c /I"C:\Users\Dingjun.Chen\plplot-5.15.0\lib\csa" /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_2c5a5.dir\Debug\\" /Fd"cmTC_2c5a5.dir\Debug\vc143.pdb" /external:W3 /Gd /TC /errorReport:queue "C:\Users\Dingjun.Chen\plplot-5.15.0\cmake\modules\TestNaNAware.c"
Microsoft (R) C/C++ Optimizing Compiler Version 19.37.32822 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /I"C:\Users\Dingjun.Chen\plplot-5.15.0\lib\csa" /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_2c5a5.dir\Debug\\" /Fd"cmTC_2c5a5.dir\Debug\vc143.pdb" /external:W3 /Gd /TC /errorReport:queue "C:\Users\Dingjun.Chen\plplot-5.15.0\cmake\modules\TestNaNAware.c"
TestNaNAware.c
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include\yvals_core.h(28): STL1003: Unexpected compiler, expected C++ compiler.
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include\yvals_core.h(29,1): fatal error C1189: #error: Error in C++ Standard Library usage [C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_2c5a5.vcxproj]
Done Building Project "C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_2c5a5.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_2c5a5.vcxproj" (default target) (1) ->
(ClCompile target) ->
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include\yvals_core.h(29,1): fatal error C1189: #error: Error in C++ Standard Library usage [C:\Users\Dingjun.Chen\plplot-5.15.0\build\CMakeFiles\CMakeFiles\CMakeTmp\cmTC_2c5a5.vcxproj]

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:01.07





Arjen Markus

unread,
Aug 29, 2023, 4:15:10 AM8/29/23
to
On Monday, August 28, 2023 at 6:48:47 PM UTC+2, Dingjun Chen wrote:
> On Wednesday, April 20, 2016 at 2:53:35 AM UTC-4, Arjen Markus wrote:
> > Op dinsdag 19 april 2016 16:29:12 UTC+2 schreef miguel:
> Time Elapsed 00:00:01.07\
I will look into this, but I am not sure the combination MinGW+VS 2022 is a viable one. Normally you would either build within the MinGW environment or within the Visual Studio environment. The combination that you want is awkward. But let me look at your description in more detail first. By the way, it may be better to use the PLplot mailing list, as then others who are invovled with PLplot are more likely to see it as well.

Regards,

Arjen
0 new messages