Changeset 921 for trunk/config


Ignore:
Timestamp:
Feb 16, 2009, 10:14:30 AM (15 years ago)
Author:
garnier
Message:

en test de gl2ps. Problemes de libraries

Location:
trunk/config
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/config/G4VIS_USE.gmk

    r790 r921  
    7777  INC_GL    = 1
    7878  LOAD_GL   = 1
     79  LOAD_GL2PS= 1
    7980endif
    8081
     
    103104  INC_IV    = 1
    104105  LOAD_IV   = 1
     106  LOAD_GL2PS= 1
    105107endif
    106108
  • trunk/config/History

    r893 r921  
    1 $Id: History,v 1.336 2008/11/26 16:48:14 gcosmo Exp $
     1$Id: History,v 1.340 2008/12/04 14:59:44 lgarnier Exp $
    22-------------------------------------------------------------------
    33
     
    1616     * Reverse chronological order (last date on top), please *
    1717     ----------------------------------------------------------
     184th December 2008 : Laurent Garnier
     19- Darwin.gmk: Fix a mistake in GLlibs for Leopard.
     20
     214th December 2008  Gabriele Cosmo, Ben Morgan (config-V09-01-14)
     22- Linux-g++.gmk: implemented temporary workaround to allow for automatic
     23  detection of location in non-POSIX paths for X11 and GL libraries depending
     24  on 32/64 bits architectures.
     25
     263rd December 2008  Gabriele Cosmo (config-V09-01-13)
     27- Define $FIND, $SORT, $TOUCH variables to be customised with absolute
     28  path in WIN32-VC in order to pick up correct Cygwin toolset.
     29
     301st December 2008  Ben Morgan (config-V09-01-12)
     31- Darwin-g++.gmk, Linux-g++.gmk: corrected definition of temporary QT3_MT
     32  by adding missing protection.
    1833
    193424th November 2008  Laurent Garnier (config-V09-01-11)
  • trunk/config/binmake.gmk

    r886 r921  
    3434# Verify the existance of granular shared libraries (Unix) or global DLLs (Windows)
    3535#
    36 ifndef SHAREDLIBS
    37   SHAREDLIBS := $(shell test -f $(G4LIB)/$(G4SYSTEM)/libG4globman.$(SHEXT) && echo yes)
    38 endif
    3936ifneq (,$(findstring WIN32-VC,$(G4SYSTEM)))
    4037  SHAREDLIBS := $(shell test -f $(G4LIB)/$(G4SYSTEM)/G4global.$(SHEXT) && echo yes)
     
    276273# (why?) the user is not supposed to be able to define...
    277274#
    278 LDLIBS4 += $(LOADLIBS)
     275LDLIBS5 += $(LOADLIBS)
    279276
    280277# Finally assemble libraries...
     
    285282else
    286283# Again, do not use := or +=.  See note on LDLIBS2 above.
    287   LDLIBS_PREFINAL = $(LDLIBS1) $(LDLIBS2) $(LDLIBS2EXTRA) $(LDLIBS3)
     284  LDLIBS_PREFINAL = $(LDLIBS1) $(LDLIBS2) $(LDLIBS2EXTRA) $(LDLIBS3) $(LDLIBS4)
    288285# Version leaving out EXTRALIBS
    289   LDLIBS_KERNEL   = $(LDLIBS2) $(LDLIBS2EXTRA) $(LDLIBS3)
    290 endif
    291 LDLIBS_PREFINAL += $(LDLIBS4)
    292 LDLIBS_KERNEL   += $(LDLIBS4)
     286  LDLIBS_KERNEL   = $(LDLIBS2) $(LDLIBS2EXTRA) $(LDLIBS3) $(LDLIBS4)
     287endif
     288LDLIBS_PREFINAL += $(LDLIBS5)
     289LDLIBS_KERNEL   += $(LDLIBS5)
    293290
    294291ifneq (,$(findstring WIN32-VC,$(G4SYSTEM)))
     
    354351ifdef CPPVERBOSE
    355352        $(CXX) $(CXXFLAGS) $(CPPFLAGS) \
    356           $(OUT)$(G4BINDIR)/$(G4TARGET) $(objects) $(LDFLAGS) \
     353          $(OUT)$(G4BINDIR)/$(G4TARGET) $(objects) $(LDFLAGS)  \
    357354          $(LDLIBS)
    358355else
    359356        @echo Linking $(G4TARGET) ...
    360357        @$(CXX) $(CXXFLAGS) $(CPPFLAGS) \
    361           $(OUT)$(G4BINDIR)/$(G4TARGET) $(objects) $(LDFLAGS) \
     358          $(OUT)$(G4BINDIR)/$(G4TARGET) $(objects) $(LDFLAGS)\
    362359          $(LDLIBS)
    363360        @if [ \( -f $(G4BINDIR)/$(G4TARGET) \) ]; then \
  • trunk/config/sys/Darwin-g++.gmk

    r893 r921  
    6666    ifeq ($(shell uname -r | sed 's/\([0-9]*\).[0-9]*.[0-9]*/\1/'),9)
    6767      # the following lines are for building on MacOSX 10.5 "Leopard"
    68       OGLLIBS   := $(shell test -f /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib && echo " -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib")
     68      OGLLIBS   := $(shell test -f /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib && echo "-L/usr/X11R6/lib -lGLU -lGL -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib")
    6969    else
    7070      OGLLIBS   := -L$(OGLHOME)/lib -lGLU -lGL
     
    105105    ifeq ($(QT_VERSION),3)
    106106      QTLIBS   := -L$(QTHOME)$(QTLIBPATH)
    107       QT3_MT  := $(shell ls  $(QTHOME)$(QTLIBPATH)/libqt-mt.* | wc -l )
     107      QT3_MT  := $(shell ls  $(QTHOME)$(QTLIBPATH)/libqt-mt.* 2>/dev/null | wc -l )
    108108      ifneq ($(QT3_MT),0)
    109109        QTLIBS  += -lqt-mt
     
    128128
    129129  define build-granular-shared-lib
    130     @libdir=`(cd $(@D);/bin/pwd)`; \
     130    libdir=`(cd $(@D);/bin/pwd)`; \
    131131     cd $(G4TMPDIR); \
    132      $(CXX)  -dynamiclib -single_module -undefined dynamic_lookup \
     132     $(CXX)  -dynamiclib -single_module  -lgcov -undefined dynamic_lookup \
    133133         -o $$libdir/$(@F) $(INTYLIBS) *.o
    134134  endef
     
    136136    @libdir=`(cd $(@D);/bin/pwd)`; \
    137137     cd $(G4TMP)/$(G4SYSTEM); \
    138      $(CXX)  -dynamiclib -single_module -undefined dynamic_lookup \
     138     $(CXX)  -dynamiclib -single_module  -lgcov -undefined dynamic_lookup \
    139139         -o $$libdir/$(@F) $(INTYLIBS) $(foreach dir,$(SUBLIBS),$(dir)/*.o);
    140140  endef
  • trunk/config/sys/Linux-g++.gmk

    r893 r921  
    4646  FCFLAGS += -fno-automatic -fno-backslash -fno-second-underscore
    4747  FCLIBS := -lg2c -lnsl
    48   ECHO    := /bin/echo -e
    49   SHEXT   := so
     48  ECHO   := /bin/echo -e
     49  SHEXT  := so
     50  ARCH   := $(shell uname -m | cut -s -d "_" -f 2)
     51
    5052  ifndef X11FLAGS
    5153    X11FLAGS  := -I/usr/include/X11/extensions -I/usr/include/X11
    5254  endif
    5355  ifndef X11LIBS
    54     X11LIBS   := -L/usr/X11R6/lib  -lXmu -lXt -lXext -lX11 -lSM -lICE
     56    X11LIBS   := -L/usr/X11R6/lib$(ARCH)  -lXmu -lXt -lXext -lX11 -lSM -lICE
    5557  endif
    5658  ifndef XMFLAGS
     
    5961  ifndef XMLIBS
    6062    XMLIBS    := -lXm -lXpm
     63  endif
     64  ifndef XAWFLAGS
     65    XAWFLAGS   := -I/usr/X11R6/include
     66  endif
     67  ifndef XAWLIBS
     68    XAWLIBS    := -lXaw
     69  endif
     70  DLDLIBS   := -ldl
     71  ifndef OGLFLAGS
     72    OGLFLAGS  := -I$(OGLHOME)/include
     73  endif
     74  ifndef OGLLIBS
     75    OGLLIBS   := -L$(OGLHOME)/lib$(ARCH) -lGLU -lGL
    6176  endif
    6277
     
    95110    QTLIBS   := -L$(QTHOME)$(QTLIBPATH)
    96111    ifeq ($(QT_VERSION),3)
    97       QT3_MT  := $(shell ls  $(QTHOME)$(QTLIBPATH)/libqt-mt.* | wc -l )
     112      QT3_MT  := $(shell ls  $(QTHOME)$(QTLIBPATH)/libqt-mt.* 2>/dev/null | wc -l )
    98113      ifneq ($(QT3_MT),0)
    99114        QTLIBS  += -lqt-mt
     
    116131#----------------------------------------------------------------------------
    117132
    118   ifndef XAWFLAGS
    119     XAWFLAGS   := -I/usr/X11R6/include
    120   endif
    121   ifndef XAWLIBS
    122     XAWLIBS    := -lXaw
    123   endif
    124   DLDLIBS   := -ldl
    125   ifndef OGLFLAGS
    126     OGLFLAGS  := -I$(OGLHOME)/include
    127   endif
    128   ifndef OGLLIBS
    129     OGLLIBS   := -L$(OGLHOME)/lib -lGLU -lGL
    130   endif
    131133  define build-granular-shared-lib
    132134    @libdir=`(cd $(@D);/bin/pwd)`; \
  • trunk/config/sys/WIN32-VC.gmk

    r893 r921  
    1414  CXXFLAGS += -D_CONSOLE -D_WIN32 -DOS
    1515  CPPFLAGS += -DWIN32 -DXPNET -D_CRT_SECURE_NO_DEPRECATE
    16   LDFLAGS  += -FORCE /NODEFAULTLIB:MSVCRT.dll
     16  LDFLAGS  += -FORCE /NODEFAULTLIB:MSVCRT.dll /VERBOSE:lib
    1717
    1818  SHEXT := dll
    1919  AR := LIB
    2020  ECHO := /usr/bin/echo -e
     21  FIND := /usr/bin/find
     22  SORT := /usr/bin/sort
    2123  GREP := /usr/bin/grep
    2224  SED  := /usr/bin/sed
    2325  CAT  := /usr/bin/cat
    2426  CUT  := /usr/bin/cut
     27  TOUCH := /usr/bin/touch
    2528
    2629  FC := g77
     
    5659  ifndef GLQTLIBS
    5760    ifeq ($(QT_VERSION),QT3)
    58       QTLIBS   := -L$(QTHOME)/lib -lqt-mt
     61      GLQTLIBS   := -L$(QTHOME)/lib -lqt-mt
    5962    else
    60       QTLIBS   := -L$(QTHOME)/lib QtCore4.lib QtGui4.lib QtOpenGL4.lib
     63      GLQTLIBS   := -L$(QTHOME)/lib QtCore4.lib QtGui4.lib QtOpenGL4.lib
    6164    endif
    6265  endif
Note: See TracChangeset for help on using the changeset viewer.