On Wed, 2008-04-23 at 10:54 -0400, Lucas Goss wrote:
> >  You're only calling ->setText on text, not on textSe and textMono.
> 
> Whew, thanks, I was losing my mind.
> 
> >  On a related note: why not just use osgWidget and not worry about all this
> > placement stuff? :)
> 
> I'm trying to get osgWidget working, but took a break to play around
> with some other stuff...
> 
> Most of my development is on a Mac so I use the library frameworks,
> which none exists for osgWidget at the moment. So I attempted to build
> one but I always ran into some problem with linking or finding include
> files. I tried going the cmake way, but couldn't get OSG built as I
> ran into some errors there. So I took a break and played with
> osgText... I love programming... I hate working with make and friends.
> 
> Now I'm on Ubuntu... built osg with cmake, but osgWidget errors when
> it starts to build the examples (both repositories from svn head):
> 
> ...
> Linking CXX shared library libosgWidget.so
> [ 40%] Built target osgWidget
> Scanning dependencies of target osgwidgetaddremove
> [ 42%] Building CXX object
> examples/osgwidgetaddremove/CMakeFiles/osgwidgetaddremove.dir/osgwidgetaddremove.o
> Linking CXX executable osgwidgetaddremove
> /home/lgoss/Development/Lab/osgWidget/osgwidget/build/libosgWidget.so:
> undefined reference to
> `osgText::Text::setAxisAlignment(osgText::Text::AxisAlignment)'
> /home/lgoss/Development/Lab/osgWidget/osgwidget/build/libosgWidget.so:
> undefined reference to
> `osgText::Text::setAlignment(osgText::Text::AlignmentType)'
> /home/lgoss/Development/Lab/osgWidget/osgwidget/build/libosgWidget.so:
> undefined reference to `osgText::Text::setFontResolution(unsigned int,
> unsigned int)'
> /home/lgoss/Development/Lab/osgWidget/osgwidget/build/libosgWidget.so:
> undefined reference to `osgText::Text::setRotation(osg::Quat const&)'
> /home/lgoss/Development/Lab/osgWidget/osgwidget/build/libosgWidget.so:
> undefined reference to `osgText::Text::setPosition(osg::Vec3f const&)'
> /home/lgoss/Development/Lab/osgWidget/osgwidget/build/libosgWidget.so:
> undefined reference to `osgText::Text::setCharacterSize(float, float)'
> /home/lgoss/Development/Lab/osgWidget/osgwidget/build/libosgWidget.so:
> undefined reference to `osgText::Text::setText(std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&)'
> collect2: ld returned 1 exit status

It's not picking up -losgText for some reason, but I can't be sure. I'd
be really certainly everything else built properly, since I've never
seen this and no one else has reported it.

Try editing examples/$EXAMPLE/CMakeLists.txt and changing:

        LINK_LIBRARIES(debug osgWidgetd optimized osgWidget)

To:
        
        LINK_LIBRARIES(
                debug osgWidgetd optimized osgWidget
                debug osgText    optimized osgText
        )

If this fixes it, I may have introduced a bug or something recently I'm
not aware of in my CMake configs.

> Thanks,
> Lucas
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to