See comments below. On Wed, Apr 24, 2019 at 5:27 AM Arjen Markus <arjen.mar...@deltares.nl> wrote:
> Hi Walt, > > > > The reason you get these unresolved may be the ordering of the libraries. > I suggest you put -lplplot just before -lcsirocsa. > This didn't help--not surprisingly given the comments below:-(. > > > I am not that used to pkg-config, but if I understand it correctly: > gfortran -o x01 x01.f90 `pkg-config –libs plplot-fortran` ought to do the > trick (if the pkg-scripts have been properly installed – happens as part of > “make install”) > This inspired me to try pkg-config again. Turns out I needed to set environment variable PKG_CONFIG_PATH to find plplot-gfortran.pc. The result is completely different from what I had before and *now works*. The only big difference I see is that the various cairo drivers do not show up as plotting options. I can live with that. Thanks, Arjen, for your patience with me. > > > Regards, > > > > Arjen > > > > *From:* Walt Brainerd <walt.brain...@gmail.com> > *Sent:* 19 April 2019 22:24 > *To:* Arjen Markus <arjen.mar...@deltares.nl> > *Cc:* Phil Rosenberg <p.d.rosenb...@gmail.com>; Alan W. Irwin < > alan.w.irwin1...@gmail.com>; plplot_general < > plplot-general@lists.sourceforge.net> > *Subject:* Re: [Plplot-general] Building plplot on Windows 10 > > > > I think I have made more progress, but still not there yet. > > > > I think pkg-config is supposed to show me what libraries I need, but I > don't know how to do that, > > so I just used all 8 *.a files generated by the build. But apparently that > is not enough. > > > > $ cat xxx > > gfortran $1 \ > > -IC:/Fortran_Tools/include -LC:/Fortran_Tools/lib -lplplot -lplplotfortran > -lplplottcltk -lplplottcltk_Main -ltclmatrix -lplfortrandemolib -lcsirocsa > -lqsastime -lgdi32 -lcomdlg32 - > > LC:/Fortran_Tools/lib -lgtkfortran -lgtk-3 -lgdk-3 -lpangocairo-1.0 > -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 > -lgobject-2.0 -lglib-2.0 -lintl > > > > $ ./xxx x00* > > C:/Fortran_Tools/lib/libplplotfortran.a(plplot.f90.obj):plplot.f90:(.text+0x2e): > undefined reference to `c_plxormod' > > C:/Fortran_Tools/lib/libplplotfortran.a(plplot.f90.obj):plplot.f90:(.text+0x53): > undefined reference to `c_plvsta' > > and dozens more of these. Also many like the following: > > > > C:/Fortran_Tools/lib/libplplotfortran.a(plplot_double.f90.obj):plplot_double.f90:(.text+0xee1): > undefined reference to `c_plstransform' > > C:/Fortran_Tools/lib/libplplotfortran.a(plplot_double.f90.obj):plplot_double.f90:(.text+0xf13): > undefined reference to `c_plstransform' > > > > I see c_plxormod in src/plctrl.c. Where does the compiled code end up? > > > > > > On Tue, Apr 16, 2019 at 1:49 PM Arjen Markus <arjen.mar...@deltares.nl> > wrote: > > Hi Walt, > > > > For MinGW-w64/MSYS2 you need to have the mingw-w64-x86_64-make package > installed, this contains the make utility which seems to be missing. > > > > For Cygwin, I would say: add -DENABLE_cxx=OFF -DENABLE_qt=OFF, as C++ > lacks an important library (not sure why that is) and Qt4/5 have only > partial installations too (partial wrt PLplot, that is). As a general note: > quite often you need the “devel” version of a package as well as the > “plain” version. This is due to the way Cygwin packages are set up. > > > > Regards, > > > > Arjen > > > > *From:* Walt Brainerd <walt.brain...@gmail.com> > *Sent:* 16 April 2019 21:40 > *To:* Arjen Markus <arjen.mar...@deltares.nl> > *Cc:* Phil Rosenberg <p.d.rosenb...@gmail.com>; Alan W. Irwin < > alan.w.irwin1...@gmail.com>; plplot_general < > plplot-general@lists.sourceforge.net> > *Subject:* Re: [Plplot-general] Building plplot on Windows 10 > > > > Trying with MSYS2 gives me: > > > > $ ../../Cmake/*/bin/cmake -G "Unix Makefiles" > -DCMAKE_INSTALL_PREFIX=install -DBUILD_SHARED_LIBS=OFF ../plplot.git > > CMake Error: CMake was unable to find a build program corresponding to > "Unix Makefiles". > > CMAKE_MAKE_PROGRAM is not set. You probably need to select a different > build tool. > > -- Configuring incomplete, errors occurred! > > See also "C:/walt/Software/Plplot/build_dir/CMakeFiles/CMakeOutput.log". > > ======================================================= > > > > With Cygwin, the result files are attached. > > > > There are messages about pango and cairo and > > CMake Error at C:/cygwin/lib/cmake/Qt5Svg/Qt5SvgConfig.cmake:27 (message): > > The imported target "Qt5::Svg" references the file > > > > "C:/cygwin/include/qt5/" > > > > My C:\cygwin does not contain an "include" directory at all. > > > > (I think) I have installed ALL of cygwin. > > > > Any other suggestions? Thanks. > > > > > > On Tue, Apr 16, 2019 at 12:43 AM Arjen Markus <arjen.mar...@deltares.nl> > wrote: > > Hi Walt, > > > > See below. > > > > Regards, > > > > Arjen > > > > *From:* Walt Brainerd <walt.brain...@gmail.com> > *Sent:* 15 April 2019 18:12 > *To:* Phil Rosenberg <p.d.rosenb...@gmail.com> > *Cc:* Alan W. Irwin <alan.w.irwin1...@gmail.com>; Arjen Markus < > arjen.mar...@deltares.nl>; plplot_general < > plplot-general@lists.sourceforge.net> > *Subject:* Re: [Plplot-general] Building plplot on Windows 10 > > > > … > > If anyone can sen me a cmake command that works for either MSYS2 > > or Cygwin, I would like to try it. When I successfully built plplot in > > the past, I built a static lib and that is fine for my use now. > > > > > > >>AM: For Cygwin I use the following basic command: > > > > cmake ../plplot-git -G “Unix Makefiles” … > > > > I run the command is run in a clean directory next to the one holding the > sources (plplot-git in my case). I mostly use a bunch of options (the dots) > to control what is or is not considered in the build, but that should not > be necessary at all (some packages I have installed within Cygwin cause > problems in the actual build step, so I have to suppress them for instance). > > > > For MinGW64/MSYS2 I use the same basic command and I run it in a clean > directory as well. The one caveat is that I use the shell started via > mingw64.exe. Again some packages do not support all the necessary bits and > pieces, so I have to exclude them via a small number of options. > > > > A useful option is to explicitly ask for the examples/tests to be built: > -DBUILD_TEST=ON > > > > Hope this helps. > > > > > > 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. > > > > > -- > > 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. > > > > > -- > > 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. > -- Walt Brainerd
_______________________________________________ Plplot-general mailing list Plplot-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-general