Hi, for some reason when I change the static variable s_WindowingSystemInterface in GraphicsContext.cpp from a ref_ptr to a normal pointer, the apps and examples work in the debug build. I cannot explain why though?
jp JP Delport wrote: > Hi all, > > I've been trying to build a debug version of the OpenSceneGraph libs > from svn to step through some code. I used the new CMake build system > (steps below). The libs build, but I cannot seem to run any > applications. I'm using Debian sid, gcc versions below. > > osgviewer cow.osg gives: > View::setUpViewAcrossAllScreens() : Error, no WindowSystemInterface > available, cannot create windows. > Viewer::realize() - failed to set up any windows > > Any ideas what is wrong or what I can try? What do other people on the > list use to debug osg code? > > thanks > jp > > ps. all works fine without the change to "Debug" in ccmake below. > > The procedure I followed was: > purge my system of OT,OSG,OP libs > $ svn checkout https://www.openscenegraph.com/svn/osg/OpenThreads/trunk/ > OpenThreads > $ svn checkout > https://www.openscenegraph.com/svn/osg/OpenSceneGraph/trunk/ > OpenSceneGraph > $ cd OpenThreads > $ ccmake . > press c, change CMAKE_BUILD_TYPE to "Debug", press c, press g > $ sudo make -f Makefile install > this gives me /usr/local/lib/libOpenThreadsd.so > > now I try to make the osg libs: > $ cd ../OpenSceneGraph > $ ccmake . > press c, change CMAKE_BUILD_TYPE to "Debug", press c, press g > cmake finds /usr/local/lib/libOpenThreadsd.so > $ make -f Makefile install > > $ gcc -v > Using built-in specs. > Target: i486-linux-gnu > Configured with: ../src/configure -v > --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr > --enable-shared --with-system-zlib --libexecdir=/usr/lib > --without-included-gettext --enable-threads=posix --enable-nls > --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu > --enable-libstdcxx-debug --enable-mpfr --with-tune=i686 > --enable-checking=release i486-linux-gnu > Thread model: posix > gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) > > $ g++ -v > Using built-in specs. > Target: i486-linux-gnu > Configured with: ../src/configure -v --enable-languages=c,c++,java > --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib > --without-included-gettext --enable-threads=posix --enable-nls > --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu > --enable-libstdcxx-debug --enable-java-awt=gtk-default > --enable-gtk-cairo > --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre > --with-tune=i686 --enable-checking=release i486-linux-gnu > Thread model: posix > gcc version 4.0.4 20060904 (prerelease) (Debian 4.0.3-7) > > > > -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
