Changeset 874

Show
Ignore:
Timestamp:
06/26/07 08:37:08 (2 years ago)
Author:
timdewhirst
Message:

jahwidgets
- enforce use of pkg-config for olibs as the fallbacks resulted in
missing symbol problems

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/jahwidgets/src/qt3/olibs.pri

    r655 r874  
    22 
    33unix { 
    4     OLIB_PREFIX=$$system(pkg-config --variable=prefix openlibaries 2>/dev/null) 
    5     isEmpty( OLIB_PREFIX ) { 
    6         OLIB_PREFIX=/usr/local 
    7     } 
    8  
    9         # try the more aggressive flags (they may be unsupported on old versions of pkg-config?) 
    10         # note: there is also the --cflags-only-other (and the plain --cflags) available. 
    114        OLIB_INCLUDE = $$system(pkg-config --cflags-only-I openlibraries 2>/dev/null | sed 's/-I//g') 
    125        isEmpty( OLIB_INCLUDE ) { 
    13         # LATER: this may need fixing when the openlibraries include more values than just directories to be included 
    14                 OLIB_INCLUDE = $$system(pkg-config --cflags openlibraries 2>/dev/null | sed 's/-I//g') 
     6                error( "pkg-config failed for some reason; check PKG_CONFIG_PATH is set" ) 
    157        } 
    16     isEmpty( OLIB_INCLUDE ) { 
    17         OLIB_INCLUDE=$$OLIB_PREFIX/include/openlibraries-0.4.1 
    18     } 
    198 
    20         # MAYBE: LATER: use --libs-only-l, --libs-only-L and/or --libs-only-other instead of --libs 
    219        OLIB_LIBS = $$system(pkg-config --libs openlibraries 2>/dev/null) 
    22     isEmpty( OLIB_LIBS ) { 
    23         OLIB_LIBS=$$OLIB_PREFIX/lib/openlibraries-0.4.1 
    24     } 
     10        isEmpty( OLIB_LIBS ) { 
     11                error( "pkg-config failed for some reason; check PKG_CONFIG_PATH is set" ) 
     12        } 
    2513 
    26     INCLUDEPATH += $$OLIB_INCLUDE 
    27     LIBS        += $$OLIB_LIBS -L/usr/X11R6/lib 
     14        INCLUDEPATH += $$OLIB_INCLUDE 
     15        LIBS        += $$OLIB_LIBS -L/usr/X11R6/lib 
    2816 
    29     # For now add any link flags from the environment 
    30     LIBS     += $(LDFLAGS) 
     17        # For now add any link flags from the environment 
     18        LIBS        += $(LDFLAGS) 
    3119} 
    3220 
    3321# OPL auto links, but we need to give the path. NB requires quotes. 
    3422win32 { 
    35     INCLUDEPATH   += C:/Boost/include/boost-1_33 
     23    INCLUDEPATH     += C:/Boost/include/boost-1_33 
    3624    LIBS            += -L"../openlibraries/src/openpluginlib/Multi-threaded Debug DLL" 
    3725    LIBS            += -L"../openlibraries/src/openimagelib/il/Multi-threaded Debug DLL" 
    3826    LIBS            += -L"../openlibraries/src/openmedialib/ml/Multi-threaded Debug DLL" 
    3927    LIBS            += -L"C:/boost/lib/" 
    40     LIBS            += -lGLEW32 
     28    LIBS            += -lGLEW32 
    4129 
    4230    # OpenPluginLib requires these compiler settings.