Hi Walt,

Are you using the Cygwin version of CMake? I am not sure what the differences 
are, but I know there are some (possibly just the makefile generator …). I see 
you are using the Visual Studio generator – I am not sure that is a good idea 
in combination with Cygwin. The reason for that is that for some platforms 
(Cygwin and MinGW-w64/MSYS2) on Windows a bash shell is used and for “bare” 
Windows it is not. CMake tries to hide these platform issues as much as 
possible, but that does not mean (unfortunately) that you can use any 
combination 😉.

With a fairly recent version of gfortran you should be able to build PLplot. 
Some further comments below.

Regards,

Arjen

From: Walt Brainerd <walt.brain...@gmail.com>
Sent: 02 January 2020 23:09
To: plplot_general <plplot-general@lists.sourceforge.net>
Subject: [Plplot-general] Help building plplot

Thanks Arjen for the suggestions. I always learn something from you.
However, I still can't get where I want.

>>AM: you make me blush 😊.

With the plplot that comes with Msys2, execution hangs awaiting input.
If I type "1", it produces output on the screen. Also -dev works (Arjen).

Trying to build plplot with msys produces similar (or worse) results.

>>AM: nastiness with buffering of output to the screen, sigh.

Trying build with cygwin, cmake produces the following lines multiple times.

$ "/cygdrive/c/Program Files/Cmake/bin/cmake.exe" 
-DCMAKE_INSTALL_PREFIX=install -DENABLE_cxx=OFF -DENABLE_cxx=OFF 
-DENABLE_qt=OFF ../plplot.git >& cmake.out

-- Configuring done
CMake Error in bindings/fortran/CMakeLists.txt:
  Evaluation file to be written multiple times with different content.  This
  is generally caused by the content evaluating the configuration type,
  language, or location of object files:

   
C:/walt/Software/Plplot/BUILD/bindings/fortran/plplotfortran_ifort.def.sh<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fplplotfortran_ifort.def.sh&data=02%7C01%7C%7C15270ecebb7e4a6cba7908d78fd07610%7C15f3fe0ed7124981bc7cfe949af215bb%7C0%7C0%7C637135997820643311&sdata=fI0JAP1SzRf2stUr6gfPjsjGGo2gnwbXcYZnNMcZ2nk%3D&reserved=0>

I am using the latest cmake (3.16.2) and the latest plplot. cygwin does not
have the latest Fortran compiler, but that shouldn't be a problem, should it?
cmake.out is attached.

Any help would be appreciated. OW, I will just use the flaky msys plplot.

Thanks.

>>AM: I strongly suspect this is because of the mixture of platforms. Try:

  *   CMake for Cygwin (according to Cygwin’s setup: the current version is 
3.14.5-1)
  *   Use the generator options -G "Unix Makefiles" (this is the appropriate 
generator for Cygwin)
  *   Cygwin has gcc/gfortran 7.4.0-1, that is certainly recent enough



--
Walt Brainerd
DISCLAIMER: This message is intended exclusively for the addressee(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient please notify the sender immediately and destroy this message. 
Unauthorized use, disclosure or copying of this message is strictly prohibited. 
The foundation 'Stichting Deltares', which has its seat at Delft, The 
Netherlands, Commercial Registration Number 41146461, is not liable in any way 
whatsoever for consequences and/or damages resulting from the improper, 
incomplete and untimely dispatch, receipt and/or content of this e-mail.
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to