[Paradiseo-help] Paradiseo fix (?) - ENABLE_GNUPLOT did not work properly

Cieslewski Titus titus.cieslewski at epfl.ch
Mer 17 Avr 22:22:48 CEST 2013


Dear Paradiseo team,

my teaching assistant (Cc: (I am a student)) and I ran into an issue when trying to use eoGnuplot1DMonitor (paradiseo/eo/src/utils). We found out that the cmake setup did not provide the HAVE_GNUPLOT and GNUPLOT_PROGRAM macro compile time, even though -DENABLE_GNUPLOT was flagged and Cmake's FindGnuplot managed to find the gnuplot binary. So we "fixed" the Cmake section responsible for this (eo/CMakeLists.txt):

if(ENABLE_GNUPLOT)
    include(FindGnuplot)
++    if (GNUPLOT_EXECUTABLE)
++        set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DHAVE_GNUPLOT -DGNUPLOT_PROGRAM=\\\"${GNUPLOT_EXECUTABLE}\\\"")
++        set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_GNUPLOT -DGNUPLOT_PROGRAM=\\\"${GNUPLOT_EXECUTABLE}\\\"")
++    endif (GNUPLOT_EXECUTABLE)
endif(ENABLE_GNUPLOT)

We took the paradiseo source code from:
git://scm.gforge.inria.fr/paradiseo/paradiseo.git
Our full discussion is attached.
I looked into
http://paradiseo.gforge.inria.fr/index.php?n=Problems.Problems but I understand that the contribution process specified there is specific to problem packages, so I decided to mail you.

sincerely,
Titus Cieslewski
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <http://lists.gforge.inria.fr/pipermail/paradiseo-help/attachments/20130417/916622a7/attachment.html>
-------------- section suivante --------------
Une pièce jointe autre que texte a été nettoyée...
Nom: Automatic gnuplot on Ubuntu 12.pdf
Type: application/pdf
Taille: 428060 octets
Desc: Automatic gnuplot on Ubuntu 12.pdf
URL: <http://lists.gforge.inria.fr/pipermail/paradiseo-help/attachments/20130417/916622a7/attachment.pdf>


Plus d'informations sur la liste de diffusion Paradiseo-help