Menu

#606 PLPLOT compile error on OS X 10.9 Mavericks

v1.0 (example)
closed
nobody
None
5
2014-12-19
2014-07-02
Ken Mankoff
No

I'm trying to build from source on latest OS X 10.9 (Mavericks). I have most dependencies installed with HomeBrew (that doesn't seem to be an issue). PLPLOT 5.10.0 is installed by the system, and I get the same error, although I'm using the HomeBrew version in the latest test shown in the error message below.

[18%] Building CXX object src/CMakeFiles/gdl.dir/basic_pro.cpp.o
In file included from /Users/mankoff/local/src/GDL/src/basic_pro.cpp:109:
In file included from /Users/mankoff/local/src/GDL/src/gdlwidget.hpp:35:
In file included from /Users/mankoff/local/src/GDL/src/plotting.hpp:61:
In file included from /Users/mankoff/local/src/GDL/src/graphicsdevice.hpp:52:
In file included from /Users/mankoff/local/src/GDL/src/gdlgstream.hpp:24:
In file included from /usr/local/Cellar/plplot/5.10.0/include/plplot/plstream.h:32:
In file included from /usr/local/Cellar/plplot/5.10.0/include/plplot/plplot.h:36:
/usr/local/Cellar/plplot/5.10.0/include/plplot/plConfig.h:48:12: fatal error:
      'plplot_config.h' file not found
#  include <plplot_config.h>
           ^
1 error generated.
make[2]: *** [src/CMakeFiles/gdl.dir/basic_pro.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/gdl.dir/all] Error 2
make: *** [all] Error 2

Discussion

  • Ken Mankoff

    Ken Mankoff - 2014-07-02

    More info: I'm setting up the build with cmake, and I've tried turning on and off OLDPLOT.

    cmake -DCMAKE_BUILD_TYPE=Release -DREADLINEDIR=/usr/local/Cellar/readline/6.2.4/ -DHDF=OFF -DPYTHON=OFF -DEIGEN3=OFF -DPSLIB=OFF -DPLPLOTDIR=/usr/local/Cellar/plplot/5.10.0/ -DOLDPLPLOT=ON ..

     
  • giloo

    giloo - 2014-07-02

    GDL is untested with plplot-5.10.0 , so reverting to 5.9.9 would be surer.
    Anyway the error message points to a problem with the installation of plplot-devel, the installer did not properly install plplot_config.h .

     
  • Ken Mankoff

    Ken Mankoff - 2014-07-02

    Ah. I think this is a plplot bug then. Seems like someone recently ran into it w/ macports & octave here: https://trac.macports.org/ticket/43985 I'll post a report to plplots.

     
  • Sylwester Arabas

    • status: open --> closed
     
  • Ken Mankoff

    Ken Mankoff - 2014-07-10

    Yes fixed. Sorry I didn't find that previously. Thanks for the update.

    Now... how do we get the latest plplot into the OS X Homebrew package manager? Do I open a ticket here or with them. It would be nice to make use of this latest fix.

     
    • GregJung

      GregJung - 2015-07-26

      Plplot appears very complex and it seems to be the greatest hurdle to the GDL dependencies. However, What GDL needs from plplot is it's simplest options, for which it will quickly compile on the platforms where its been tested. Moreover, plplot is continually being improved, mostly in the area of configuration. They (go to plplot-developers mailing list) would be especially interested in testing on a new platform. That "plplot_config.h" problem is a relic of the past, as are the configuration steps (setting PLPLOT_HOME/ PLPLOT_DRV_DIR).

      Perhaps someday the GDL cvs will include the simple patches needed so that GDL code will play with both 5.11 (the current version) and versions < 5.11 (Hint: they are to be found in the tickets/bugs/patches list).

       

      Last edit: GregJung 2015-07-26

Log in to post a comment.