Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo


#606 PLPLOT compile error on OS X 10.9 Mavericks

v1.0 (example)
Ken Mankoff

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


  • Ken Mankoff
    Ken Mankoff

    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

    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

    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.

    • status: open --> closed
  • Ken Mankoff
    Ken Mankoff

    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.