Hi Johannes,

the OSGWindowQT lib should have been builded, that's a problem while linking the qt test programs. I fixed it and attached the updated SConscript file just copy it into OpenSG/Source/WindowSystem/QT. Thanks for the hint.

Andreas

Hello,

I'm currently trying to build OpenSG from cvs (last update: Aug 29th) with the
option qt enabled. I use the included version of scons and most of the build
works.

However, when scons tries to build libOSGWindowQT.so, ld complains about not
finding libOSGWindowX.so, which is needed for libOSGWindowQT.so. Executing the
g++ command manually it turned out that that the line was simply missing a
"-lOSQWindowX" option.

I have no experience using scons, but to me the file
Source/WindowSystem/QT/SConscript seems to be adding the correct options to
the build. Can anyone confirm this behaviour or tell me, what I'm doing wrong?
I get exactly the same error both on an SGI Prism running Suse Enterprise
Linux 9, and on another system running Debian unstable.

Thanks in advance,
  Johannes Zarl


P.S.: Here is the exact error I get:

g++ -Wl,-s -s -o 
Build/linux-gcc/Source/WindowSystem/WindowQtTest/testClusterClientQT 
Build/linux-gcc/Source/WindowSystem/QT/opt/testClusterClientQT.o 
-L/usr/lib/qt3/lib -LBuild/linux-gcc/installed/lib/opt -lqt-mt -lglut -lGL 
-lGLU -lGL -ljpeg -ltiff -lpng -lz -lOSGWindowGLUT -lOSGSystem -lOSGBase 
-lOSGWindowQT
/usr/lib/gcc-lib/ia64-suse-linux/3.3.3/../../../../ia64-suse-linux/bin/ld: 
warning: libOSGWindowX.so, needed by 
Build/linux-gcc/installed/lib/opt/libOSGWindowQT.so, not found (try using 
-rpath or -rpath-link)
Build/linux-gcc/installed/lib/opt/libOSGWindowQT.so: undefined reference to 
`osg::XWindow::dump(unsigned, unsigned long) const'
Build/linux-gcc/installed/lib/opt/libOSGWindowQT.so: undefined reference to 
`osg::XWindowBase::copyToBin(osg::BinaryDataHandler&, unsigned long const&)'
Build/linux-gcc/installed/lib/opt/libOSGWindowQT.so: undefined reference to 
`typeinfo for osg::XWindow'
Build/linux-gcc/installed/lib/opt/libOSGWindowQT.so: undefined reference to 
`osg::XWindowBase::getBinSize(unsigned long const&)'
Build/linux-gcc/installed/lib/opt/libOSGWindowQT.so: undefined reference to 
`osg::XWindowBase::executeSyncImpl(osg::XWindowBase*, unsigned long const&)'
Build/linux-gcc/installed/lib/opt/libOSGWindowQT.so: undefined reference to 
`osg::XWindow::XWindow[not-in-charge]()'
Build/linux-gcc/installed/lib/opt/libOSGWindowQT.so: undefined reference to 
`osg::XWindow::init()'
Build/linux-gcc/installed/lib/opt/libOSGWindowQT.so: undefined reference to 
`osg::XWindow::activate()'
Build/linux-gcc/installed/lib/opt/libOSGWindowQT.so: undefined reference to 
`osg::XWindow::changed(unsigned long, unsigned)'
Build/linux-gcc/installed/lib/opt/libOSGWindowQT.so: undefined reference to 
`osg::XWindowBase::copyFromBin(osg::BinaryDataHandler&, unsigned long const&)'
Build/linux-gcc/installed/lib/opt/libOSGWindowQT.so: undefined reference to 
`osg::XWindow::XWindow[not-in-charge](osg::XWindow const&)'
Build/linux-gcc/installed/lib/opt/libOSGWindowQT.so: undefined reference to 
`osg::XWindow::deactivate()'
Build/linux-gcc/installed/lib/opt/libOSGWindowQT.so: undefined reference to 
`osg::XWindow::~XWindow [not-in-charge]()'
Build/linux-gcc/installed/lib/opt/libOSGWindowQT.so: undefined reference to 
`osg::XWindow::swap()'
collect2: ld returned 1 exit status
scons: *** 
[Build/linux-gcc/Source/WindowSystem/WindowQtTest/testClusterClientQT] Error 1
scons: building terminated because of errors.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users



# WindowSystem QT

Import('*')

import os

# add the experimental stuff
ExperimentalQtDirs = [Dir('../../Experimental/QTWidgets')]
headers, sources_with_moc, tests, generated = ProcessDirs(ExperimentalQtDirs)

# add local sources
sources_with_moc += Glob('OSG*.cpp')
headers += Glob('OSG*.h')
headers += Glob('OSG*.inl')

# exclude moc.cpp files.
sources = []
for source in sources_with_moc:
    srcname = str(source)
    if srcname.find('_moc.cpp') < 0:
        sources.append(source)

InstallHeaders(env, headers)

def custom(env):
    env.Append(CPPPATH=env.get('QTCPPPATH'))
    env.Append(LIBPATH=env.get('QTLIBPATH'))
    env.Append(LIBS=env.get('OSG_WINDOW_QT_LIBS'))
    CreateMocSources(env, headers)

def custom2(env):
    env.Append(CPPPATH=env.get('QTCPPPATH'))
    env.Append(LIBPATH=env.get('QTLIBPATH'))
    env.Append(LIBS=env.get('OSG_WINDOW_QT_LIBS'))
    env.Append(LIBS=env.get('OSG_WINDOW_GLUT_LIBS'))
    env.Append(LIBS=env.get('OSG_SYSTEM_LIBS'))
    env['OSG_PROGDIR'] = os.path.join('..', 'WindowQtTest')

if tc.is_win32():
    dep_CPPPATH = ['../WIN32']
    dep_LIBS    = ['OSGWindowWIN32']
else:
    dep_CPPPATH = ['../X']
    dep_LIBS    = ['OSGWindowX']

if _po.getOption('qt'):
    BuildLibrary(tc, 'OSGWindowQT', sources, tools=[],
                 updates=[custom, OpenSGLibrary(dep_LIBS + ['OSGSystem', 
'OSGBase'])],
                 includeGen=1,
                 CPPPATH = ExpandCPPPath([Dir('.')] + BaseDirs + SystemDirs + 
ExperimentalQtDirs + map(Dir, dep_CPPPATH)),
                 CPPDEFINES = ['OSG_BUILD_DLL', 'OSG_COMPILEWINDOWQTLIB',
                               'OSG_WITH_QT', 'QT_CLEAN_NAMESPACE'])

    if _po.getOption('tests'):
        # create test programs
        testsources = Glob('test*.cpp')
        for testsource in testsources:
            target = testsource.name[:-4] # get leafname and remove .cpp
            BuildProgram(tc, target, [testsource], tools=[],
                         updates=[custom2, OpenSGLibrary(['OSGWindowGLUT', 
'OSGSystem', 'OSGBase', 'OSGWindowQT', 'OSGWindowX'])],
                         CPPPATH=['.', env['PREFIX'].Dir('include'), 
env['PREFIX'].Dir('include/OpenSG')],
                         CPPDEFINES = ['OSG_BUILD_DLL', 'QT_CLEAN_NAMESPACE',
                                       'OSG_WITH_QT', 'OSG_WITH_GLUT'])
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to