Changeset 13868


Ignore:
Timestamp:
05/24/12 14:20:57 (13 years ago)
Author:
tbretz
Message:
Added libsoprano and tngweather
Location:
trunk/FACT++
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/Makefile.am

    r13841 r13868  
    3939        mcp feedback ratescan ratecontrol \
    4040        magicweather \
     41        tngweather \
    4142        smartfact \
    4243        fitsdump fitscheck
     
    4445if HAS_GUI
    4546bin_PROGRAMS += fact
     47endif
     48
     49if HAS_SOPRANO
     50bin_PROGRAMS += tngweather
    4651endif
    4752
     
    258263        libConfiguration.la
    259264
     265tngweather_SOURCES = src/tngweather.cc src/LocalControl.h
     266tngweather_LDADD   = libDim++.la libDim.la libDimExtension.la \
     267        libStateMachine.la libTools.la libTime.la \
     268        libConfiguration.la
     269
    260270smartfact_SOURCES = src/smartfact.cc src/LocalControl.h src/PixelMap.cc
    261271smartfact_LDADD   = libDim++.la libDim.la libDimExtension.la \
  • trunk/FACT++/Makefile.in

    r13776 r13868  
    4444bin_PROGRAMS = dns$(EXEEXT) log$(EXEEXT) logtime$(EXEEXT) \
    4545        time$(EXEEXT) argv$(EXEEXT) dimctrl$(EXEEXT) \
    46         datalogger$(EXEEXT) scheduler$(EXEEXT) \
    47         triggerschedule$(EXEEXT) ftmctrl$(EXEEXT) ftm$(EXEEXT) \
     46        datalogger$(EXEEXT) ftmctrl$(EXEEXT) ftm$(EXEEXT) \
    4847        fadctrl$(EXEEXT) fad$(EXEEXT) fscctrl$(EXEEXT) fsc$(EXEEXT) \
    4948        chatclient$(EXEEXT) chatserv$(EXEEXT) biasctrl$(EXEEXT) \
    5049        drivectrl$(EXEEXT) mcp$(EXEEXT) feedback$(EXEEXT) \
    5150        ratescan$(EXEEXT) ratecontrol$(EXEEXT) magicweather$(EXEEXT) \
    52         smartfact$(EXEEXT) fitsdump$(EXEEXT) fitscheck$(EXEEXT) \
    53         $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \
    54         $(am__EXEEXT_4)
     51        tngweather$(EXEEXT) smartfact$(EXEEXT) fitsdump$(EXEEXT) \
     52        fitscheck$(EXEEXT) $(am__EXEEXT_1) $(am__EXEEXT_2) \
     53        $(am__EXEEXT_3) $(am__EXEEXT_4) $(am__EXEEXT_5)
    5554@HAS_GUI_TRUE@am__append_1 = fact
    56 @HAS_VIEWER_TRUE@am__append_2 = viewer
    57 @HAS_LIBXP_TRUE@am__append_3 = did
     55@HAS_SOPRANO_TRUE@am__append_2 = tngweather
     56@HAS_VIEWER_TRUE@am__append_3 = viewer
     57@HAS_LIBXP_TRUE@am__append_4 = did
    5858
    5959# This is a trick to be able to build them but not having them in 'all'
    60 @IS_FALSE@am__append_4 = \
    61 @IS_FALSE@      test \
     60@IS_FALSE@am__append_5 = \
     61@IS_FALSE@      test scheduler \
     62@IS_FALSE@      triggerschedule \
    6263@IS_FALSE@      dclient5 dserver2 \
    6364@IS_FALSE@      fitsloader fitsgrep \
     
    6566@IS_FALSE@      readfits
    6667
    67 @HAS_FITS_TRUE@am__append_5 = src/FitsFile.h src/FitsFile.cc \
     68@HAS_FITS_TRUE@am__append_6 = src/FitsFile.h src/FitsFile.cc \
    6869@HAS_FITS_TRUE@ src/DataWriteFits.cc    src/DataWriteFits.h \
    6970@HAS_FITS_TRUE@ src/DataWriteFits2.cc    src/DataWriteFits2.h
    7071
    71 @HAS_FITS_TRUE@am__append_6 = src/FitsFile.h src/FitsFile.cc src/Fits.h src/Fits.cc
    72 @HAS_GROFF_TRUE@am__append_7 = $(dist_man1_MANS:.man=.html)
    73 @HAS_GROFF_TRUE@am__append_8 = $(dist_man1_MANS:.man=.html)
     72@HAS_FITS_TRUE@am__append_7 = src/FitsFile.h src/FitsFile.cc src/Fits.h src/Fits.cc
     73@HAS_GROFF_TRUE@am__append_8 = $(dist_man1_MANS:.man=.html)
    7474@HAS_GROFF_TRUE@am__append_9 = $(dist_man1_MANS:.man=.html)
    75 @HAS_GROFF_TRUE@@HAS_PS2PDF_TRUE@am__append_10 = $(dist_man1_MANS:.man=.pdf)
     75@HAS_GROFF_TRUE@am__append_10 = $(dist_man1_MANS:.man=.html)
    7676@HAS_GROFF_TRUE@@HAS_PS2PDF_TRUE@am__append_11 = $(dist_man1_MANS:.man=.pdf)
    7777@HAS_GROFF_TRUE@@HAS_PS2PDF_TRUE@am__append_12 = $(dist_man1_MANS:.man=.pdf)
     78@HAS_GROFF_TRUE@@HAS_PS2PDF_TRUE@am__append_13 = $(dist_man1_MANS:.man=.pdf)
    7879subdir = .
    7980DIST_COMMON = README $(am__configure_deps) $(dist_man1_MANS) \
     
    173174libTools_la_OBJECTS = $(am_libTools_la_OBJECTS)
    174175@HAS_GUI_TRUE@am__EXEEXT_1 = fact$(EXEEXT)
    175 @HAS_VIEWER_TRUE@am__EXEEXT_2 = viewer$(EXEEXT)
    176 @HAS_LIBXP_TRUE@am__EXEEXT_3 = did$(EXEEXT)
    177 @IS_FALSE@am__EXEEXT_4 = test$(EXEEXT) dclient5$(EXEEXT) \
     176@HAS_SOPRANO_TRUE@am__EXEEXT_2 = tngweather$(EXEEXT)
     177@HAS_VIEWER_TRUE@am__EXEEXT_3 = viewer$(EXEEXT)
     178@HAS_LIBXP_TRUE@am__EXEEXT_4 = did$(EXEEXT)
     179@IS_FALSE@am__EXEEXT_5 = test$(EXEEXT) scheduler$(EXEEXT) \
     180@IS_FALSE@      triggerschedule$(EXEEXT) dclient5$(EXEEXT) \
    178181@IS_FALSE@      dserver2$(EXEEXT) fitsloader$(EXEEXT) \
    179182@IS_FALSE@      fitsgrep$(EXEEXT) sched$(EXEEXT) astro$(EXEEXT) \
     
    360363time_OBJECTS = $(am_time_OBJECTS)
    361364time_DEPENDENCIES = libTime.la
     365am_tngweather_OBJECTS = src/tngweather.$(OBJEXT)
     366tngweather_OBJECTS = $(am_tngweather_OBJECTS)
     367tngweather_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \
     368        libStateMachine.la libTools.la libTime.la libConfiguration.la
    362369am_triggerschedule_OBJECTS = src/triggerschedule.$(OBJEXT)
    363370triggerschedule_OBJECTS = $(am_triggerschedule_OBJECTS)
     
    447454        $(ratescan_SOURCES) $(readfits_SOURCES) sched.c \
    448455        $(scheduler_SOURCES) $(smartfact_SOURCES) $(test_SOURCES) \
    449         $(time_SOURCES) $(triggerschedule_SOURCES) $(viewer_SOURCES)
     456        $(time_SOURCES) $(tngweather_SOURCES) \
     457        $(triggerschedule_SOURCES) $(viewer_SOURCES)
    450458DIST_SOURCES = $(libConfiguration_la_SOURCES) $(libDim___la_SOURCES) \
    451459        $(libDim_la_SOURCES) $(libDimExtension_la_SOURCES) \
     
    464472        $(ratecontrol_SOURCES) $(ratescan_SOURCES) $(readfits_SOURCES) \
    465473        sched.c $(scheduler_SOURCES) $(smartfact_SOURCES) \
    466         $(test_SOURCES) $(time_SOURCES) $(triggerschedule_SOURCES) \
    467         $(am__viewer_SOURCES_DIST)
     474        $(test_SOURCES) $(time_SOURCES) $(tngweather_SOURCES) \
     475        $(triggerschedule_SOURCES) $(am__viewer_SOURCES_DIST)
    468476man1dir = $(mandir)/man1
    469477NROFF = nroff
     
    727735
    728736#-------------------------------------------------------------------------
    729 CLEANFILES = $(BUILT_SOURCES) $(am__append_9) $(am__append_12)
     737CLEANFILES = $(BUILT_SOURCES) $(am__append_10) $(am__append_13)
    730738dist_noinst_SCRIPTS = autogen.sh
    731739EXTRA_DIST = Doxyfile dim/DIM_Performance.pdf dim/LICENSE.GPL \
     
    735743        dim/README_v17.txt dim/README_v18.txt dim/README_v19.txt \
    736744        $(fact_DIALOGS) $(fact_RESOURCES) $(viewer_DIALOGS) \
    737         $(viewer_RESOURCES) $(am__append_8) $(am__append_11)
     745        $(viewer_RESOURCES) $(am__append_9) $(am__append_12)
    738746dns_LDADD = libDim.la libDimExtension.la
    739747dns_SOURCES = src/dns.c
     
    873881        libConfiguration.la
    874882
     883tngweather_SOURCES = src/tngweather.cc src/LocalControl.h
     884tngweather_LDADD = libDim++.la libDim.la libDimExtension.la \
     885        libStateMachine.la libTools.la libTime.la \
     886        libConfiguration.la
     887
    875888smartfact_SOURCES = src/smartfact.cc src/LocalControl.h src/PixelMap.cc
    876889smartfact_LDADD = libDim++.la libDim.la libDimExtension.la \
     
    882895        src/DataProcessorImp.h src/DataCalib.cc src/DataCalib.h \
    883896        src/DataWriteRaw.cc src/DataWriteRaw.h src/DrsCalib.h \
    884         $(am__append_5)
     897        $(am__append_6)
    885898fadctrl_LDADD = libDim++.la libDim.la  libDimExtension.la \
    886899        libStateMachine.la libTools.la libTime.la \
     
    935948test_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la libConfiguration.la
    936949datalogger_SOURCES = src/datalogger.cc src/LocalControl.h \
    937         $(am__append_6)
     950        $(am__append_7)
    938951datalogger_LDADD = libDim++.la libDim.la libDimExtension.la \
    939952        libStateMachine.la libTools.la libTime.la \
     
    10131026
    10141027#-------------------------------------------------------------------------
    1015 MAN_TARGETS = $(dist_man1_MANS) $(am__append_7) $(am__append_10)
     1028MAN_TARGETS = $(dist_man1_MANS) $(am__append_8) $(am__append_11)
    10161029all: $(BUILT_SOURCES)
    10171030        $(MAKE) $(AM_MAKEFLAGS) all-am
     
    14711484        @rm -f time$(EXEEXT)
    14721485        $(AM_V_CXXLD)$(CXXLINK) $(time_OBJECTS) $(time_LDADD) $(LIBS)
     1486src/tngweather.$(OBJEXT): src/$(am__dirstamp) \
     1487        src/$(DEPDIR)/$(am__dirstamp)
     1488tngweather$(EXEEXT): $(tngweather_OBJECTS) $(tngweather_DEPENDENCIES)
     1489        @rm -f tngweather$(EXEEXT)
     1490        $(AM_V_CXXLD)$(CXXLINK) $(tngweather_OBJECTS) $(tngweather_LDADD) $(LIBS)
    14731491src/triggerschedule.$(OBJEXT): src/$(am__dirstamp) \
    14741492        src/$(DEPDIR)/$(am__dirstamp)
     
    16681686        -rm -f src/test.$(OBJEXT)
    16691687        -rm -f src/time.$(OBJEXT)
     1688        -rm -f src/tngweather.$(OBJEXT)
    16701689        -rm -f src/tools.$(OBJEXT)
    16711690        -rm -f src/tools.lo
     
    17931812@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/test.Po@am__quote@
    17941813@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/time.Po@am__quote@
     1814@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/tngweather.Po@am__quote@
    17951815@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/tools.Plo@am__quote@
    17961816@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/triggerschedule.Po@am__quote@
  • trunk/FACT++/configure

    r13801 r13868  
    624624HAS_GUI_FALSE
    625625HAS_GUI_TRUE
     626HAS_SOPRANO_FALSE
     627HAS_SOPRANO_TRUE
    626628HAS_NOVA_FALSE
    627629HAS_NOVA_TRUE
     
    960962with_qwt_include
    961963with_qwt_libdir
     964with_soprano
     965with_soprano_include
     966with_soprano_libdir
    962967with_root
    963968with_rootsys
     
    17261731  --with-qwt-libdir=DIR        specify exact library dir for qwt library (e.g. libqwt-qt4)
    17271732  --without-qwt        disables qwt usage completely
     1733  --with-soprano=DIR    root directory of soprano installation
     1734  --with-soprano-include=DIR        specify exact include dir for soprano headers (e.g. Soprano/Soprano)
     1735  --with-soprano-libdir=DIR        specify exact library dir for soprano library (e.g. libsoprano)
     1736  --without-soprano        disables soprano usage completely
    17281737  --without-root          Disable root, i.e. disable gui support.
    17291738  --with-rootsys          path to the ROOT executables or top ROOT
     
    2363723646
    2363823647                cat > conftest.$ac_ext <<EOF
    23639 #line 23639 "configure"
     23648#line 23648 "configure"
    2364023649#include "confdefs.h"
    2364123650#include <qglobal.h>
     
    2406924078
    2407024079
     24080
     24081
     24082# Check whether --with-soprano was given.
     24083if test "${with_soprano+set}" = set; then :
     24084  withval=$with_soprano; with_soprano=$withval
     24085if test "${with_soprano}" != yes; then
     24086        soprano_include="$withval/include"
     24087        soprano_libdir="$withval/lib"
     24088fi
     24089
     24090fi
     24091
     24092
     24093
     24094# Check whether --with-soprano-include was given.
     24095if test "${with_soprano_include+set}" = set; then :
     24096  withval=$with_soprano_include; soprano_include="$withval"
     24097fi
     24098
     24099
     24100
     24101# Check whether --with-soprano-libdir was given.
     24102if test "${with_soprano_libdir+set}" = set; then :
     24103  withval=$with_soprano_libdir; soprano_libdir="$withval"
     24104fi
     24105
     24106
     24107if test "${with_soprano}" != no ; then
     24108        OLD_LIBS=$LIBS
     24109        OLD_LDFLAGS=$LDFLAGS
     24110        OLD_CFLAGS=$CFLAGS
     24111        OLD_CPPFLAGS=$CPPFLAGS
     24112
     24113        if test "${soprano_libdir}" ; then
     24114                LDFLAGS="$LDFLAGS -L${soprano_libdir}"
     24115        fi
     24116        if test "${soprano_include}" ; then
     24117                CPPFLAGS="$CPPFLAGS -I${soprano_include}"
     24118                CFLAGS="$CFLAGS -I${soprano_include}"
     24119        fi
     24120
     24121        ac_fn_cxx_check_header_mongrel "$LINENO" "Soprano/Soprano" "ac_cv_header_Soprano_Soprano" "$ac_includes_default"
     24122if test "x$ac_cv_header_Soprano_Soprano" = xyes; then :
     24123
     24124else
     24125  no_good=yes
     24126fi
     24127
     24128
     24129
     24130        ac_ext=cpp
     24131ac_cpp='$CXXCPP $CPPFLAGS'
     24132ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     24133ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     24134ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     24135
     24136
     24137
     24138
     24139
     24140
     24141
     24142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Soprano::PluginManager::instance in -lsoprano" >&5
     24143$as_echo_n "checking for Soprano::PluginManager::instance in -lsoprano... " >&6; }
     24144if ${ac_cv_lib_soprano_Soprano__PluginManager__instance+:} false; then :
     24145  $as_echo_n "(cached) " >&6
     24146else
     24147
     24148        ac_check_lib_save_LIBS=$LIBS
     24149        LIBS="-lsoprano  $LIBS"
     24150        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     24151/* end confdefs.h.  */
     24152#include <Soprano/Soprano>
     24153int
     24154main ()
     24155{
     24156Soprano::PluginManager::instance
     24157  ;
     24158  return 0;
     24159}
     24160_ACEOF
     24161if ac_fn_cxx_try_link "$LINENO"; then :
     24162  ac_cv_lib_soprano_Soprano__PluginManager__instance=yes
     24163else
     24164  ac_cv_lib_soprano_Soprano__PluginManager__instance=no
     24165fi
     24166rm -f core conftest.err conftest.$ac_objext \
     24167    conftest$ac_exeext conftest.$ac_ext
     24168        LIBS=$ac_check_lib_save_LIBS
     24169fi
     24170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soprano_Soprano__PluginManager__instance" >&5
     24171$as_echo "$ac_cv_lib_soprano_Soprano__PluginManager__instance" >&6; }
     24172        if test $ac_cv_lib_soprano_Soprano__PluginManager__instance = yes; then :
     24173
     24174
     24175                        cat >>confdefs.h <<_ACEOF
     24176#define HAVE_LIBSOPRANO 1
     24177_ACEOF
     24178
     24179                        LIBS="-lsoprano $LIBS"
     24180
     24181
     24182else
     24183  no_good=yes
     24184fi
     24185
     24186
     24187
     24188        ac_ext=cpp
     24189ac_cpp='$CXXCPP $CPPFLAGS'
     24190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     24191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     24192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     24193
     24194
     24195        if test "$no_good" = yes; then
     24196                HAVE_SOPRANO=no
     24197
     24198                LIBS=$OLD_LIBS
     24199                LDFLAGS=$OLD_LDFLAGS
     24200                CPPFLAGS=$OLD_CPPFLAGS
     24201                CFLAGS=$OLD_CFLAGS
     24202        else
     24203                HAVE_SOPRANO=yes
     24204
     24205                $as_echo "#define HAVE_PKG_soprano 1" >>confdefs.h
     24206
     24207        fi
     24208
     24209fi
     24210
     24211
     24212
    2407124213######################################################################
    2407224214# ROOT SUPPORT
     
    2464724789  HAS_NOVA_TRUE='#'
    2464824790  HAS_NOVA_FALSE=
     24791fi
     24792
     24793 if test "$HAVE_SOPRANO" = yes; then
     24794  HAS_SOPRANO_TRUE=
     24795  HAS_SOPRANO_FALSE='#'
     24796else
     24797  HAS_SOPRANO_TRUE='#'
     24798  HAS_SOPRANO_FALSE=
    2464924799fi
    2465024800
     
    2504625196if test -z "${HAS_NOVA_TRUE}" && test -z "${HAS_NOVA_FALSE}"; then
    2504725197  as_fn_error $? "conditional \"HAS_NOVA\" was never defined.
     25198Usually this means the macro was only invoked conditionally." "$LINENO" 5
     25199fi
     25200if test -z "${HAS_SOPRANO_TRUE}" && test -z "${HAS_SOPRANO_FALSE}"; then
     25201  as_fn_error $? "conditional \"HAS_SOPRANO\" was never defined.
    2504825202Usually this means the macro was only invoked conditionally." "$LINENO" 5
    2504925203fi
     
    2753427688{ $as_echo "$as_me:${as_lineno-$LINENO}:  Qwt                    / qwt_plot.h         found: $HAVE_QWT" >&5
    2753527689$as_echo "$as_me:  Qwt                    / qwt_plot.h         found: $HAVE_QWT" >&6;}
     27690{ $as_echo "$as_me:${as_lineno-$LINENO}:  Soprano                / Soprano/Soprano    found: $HAVE_SOPRANO" >&5
     27691$as_echo "$as_me:  Soprano                / Soprano/Soprano    found: $HAVE_SOPRANO" >&6;}
    2753627692{ $as_echo "$as_me:${as_lineno-$LINENO}:  cfitsio                / 'fitsio.h'         found: $HAVE_CFITSIO" >&5
    2753727693$as_echo "$as_me:  cfitsio                / 'fitsio.h'         found: $HAVE_CFITSIO" >&6;}
  • trunk/FACT++/configure.ac

    r13776 r13868  
    291291AC_CHECK_CLASS(qwt, [QwtPlot qwt],   qwt-qt4,  qwt_plot.h,
    292292        HAVE_QWT=yes, HAVE_QWT=no)
     293AC_CHECK_CLASS(soprano, Soprano::PluginManager::instance, soprano, Soprano/Soprano,
     294        HAVE_SOPRANO=yes, HAVE_SOPRANO=no)
    293295
    294296######################################################################
     
    374376AM_CONDITIONAL(HAS_QWT,       [test "$HAVE_QWT" = yes])
    375377AM_CONDITIONAL(HAS_NOVA,      [test "$HAVE_NOVA" = yes])
     378AM_CONDITIONAL(HAS_SOPRANO,   [test "$HAVE_SOPRANO" = yes])
    376379
    377380AM_CONDITIONAL(HAS_GUI,       [test "$QT4_VERSION" -a "$HAVE_GL" = yes -a "$HAVE_GLU" = yes -a "$HAVE_QGL" = yes -a "$HAVE_ROOT_QT" = yes ])
     
    450453AC_MSG_NOTICE([ QtOpenGL               / QtOpenGL/QGLWidget found: $HAVE_QGL])
    451454AC_MSG_NOTICE([ Qwt                    / qwt_plot.h         found: $HAVE_QWT])
     455AC_MSG_NOTICE([ Soprano                / Soprano/Soprano    found: $HAVE_SOPRANO])
    452456AC_MSG_NOTICE([ cfitsio                / 'fitsio.h'         found: $HAVE_CFITSIO])
    453457AC_MSG_NOTICE([ CCfits                 / 'CCfits/CCfits'    found: $HAVE_CCFITS])
Note: See TracChangeset for help on using the changeset viewer.