|
From: Shigeharu T. <sh...@ie...> - 2009-08-04 09:20:41
|
shige 08/04 2009 ---------------- When I compiled gnuplot of CVS version with --enable-qt on Solaris 9, I found some points: 1) a string "enable_qt = yes;" in configure.in may not have spaces. 2) a function 'round()' is used in src/qtterminal/qt_term.cpp and src/qtterminal/QtGnuplotScene.cpp, but Solaris 9 don't have it. So I needed the following patch. ----- From here ----- diff -u configure.in.ORG configure.in --- configure.in.ORG Mon Aug 3 13:47:39 2009 +++ configure.in Tue Aug 4 17:05:24 2009 @@ -1022,7 +1022,7 @@ AC_ARG_ENABLE(qt,dnl [ --enable-qt Qt terminal (default disabled)], [if test "$enableval" = yes; then - enable_qt = yes; + enable_qt=yes; fi]) if test "${enable_qt}" = yes ; then diff -u src/qtterminal/QtGnuplotScene.h.ORG src/qtterminal/QtGnuplotScene.h --- src/qtterminal/QtGnuplotScene.h.ORG Mon Aug 3 13:47:35 2009 +++ src/qtterminal/QtGnuplotScene.h Tue Aug 4 16:50:52 2009 @@ -49,6 +49,11 @@ #include <QGraphicsScene> #include <QTime> +/* for Solaris 9 */ +#if !defined(round) +# define round(a) (floor((a)+.5)) +#endif + class QtGnuplotEnhanced; class QtGnuplotWidget; diff -u src/qtterminal/qt_term.h.ORG src/qtterminal/qt_term.h --- src/qtterminal/qt_term.h.ORG Mon Aug 3 13:47:36 2009 +++ src/qtterminal/qt_term.h Tue Aug 4 16:51:00 2009 @@ -49,6 +49,11 @@ #ifndef GNUPLOT_QT_TERM_H #define GNUPLOT_QT_TERM_H +/* for Solaris 9 */ +#if !defined(round) +# define round(a) (floor((a)+.5)) +#endif + #ifdef __cplusplus extern "C" { #endif /*__cplusplus*/ ----- To here ----- +========================================================+ Shigeharu TAKENO NIigata Institute of Technology kashiwazaki,Niigata 945-1195 JAPAN sh...@ie... TEL(&FAX): +81-257-22-8161 +========================================================+ |