Yeah it all built properly... but that gave me a clue. So I ran: "cmake .. -DCMAKE_BUILD_TYPE=Release"
And got past that part, but got this error (I couldn't find the io_utils file): Scanning dependencies of target osgwidgetmenu [ 60%] Building CXX object examples/osgwidgetmenu/CMakeFiles/osgwidgetmenu.dir/osgwidgetmenu.o /home/lgoss/Development/Lab/osgWidget/osgwidget/examples/osgwidgetmenu/osgwidgetmenu.cpp:6:30: error: osgWidget/io_utils: No such file or directory /home/lgoss/Development/Lab/osgWidget/osgwidget/examples/osgwidgetmenu/osgwidgetmenu.cpp: In member function 'virtual bool ColorLabel::mousePush(double, double, const osgWidget::WindowManager*)': /home/lgoss/Development/Lab/osgWidget/osgwidget/examples/osgwidgetmenu/osgwidgetmenu.cpp:32: error: no match for 'operator<<' in 'std::cout << *(ColorLabel*)this' ... Thanks, Lucas On Wed, Apr 23, 2008 at 10:59 AM, Jeremy Moles <[EMAIL PROTECTED]> wrote: > > > 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 > > osg-users@lists.openscenegraph.org > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org