Mark Acosta schrieb:
Hi guys,
I'm running Fedora 10 and trying to build OSG from the latest svn
version. Everything compiles fine except for the osgviewerWX example.
I'm getting these errors:
CMakeFiles/example_osgviewerWX.dir/osgviewerWX.o: In function
`wxStringBase':
/usr/include/wx-2.8/wx/string.h:351: undefined reference to
`wxOnAssert(wchar_t const*, int, char const*, wchar_t const*, wchar_t
const*)'
CMakeFiles/example_osgviewerWX.dir/osgviewerWX.o:(.rodata._ZTV8wxOsgApp[vtable
for wxOsgApp]+0x130): undefined reference to
`wxApp::OnAssertFailure(wchar_t const*, int, wchar_t const*, wchar_t
const*, wchar_t const*)'
CMakeFiles/example_osgviewerWX.dir/osgviewerWX.o:(.rodata._ZTV8wxOsgApp[vtable
for wxOsgApp]+0x138): undefined reference to
`wxAppConsole::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t
const*)'
I looked into this a bit and the routines listed above are only
defined if __WXDEBUG__ is defined. Looking at
/usr/include/wx-2.8/wx/debug.h, it's not clear to me how __WXDEBUG__
is getting defined. I noticed that if I define NDEBUG that it will
undefine __WXDEBUG__. The example compiles if I do this, but it's more
of a kluge than a solution.
I'm no wx expert. Maybe someone on the list has an idea of what's
going on here and what the proper fix is.
Mark
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Hi,
it looks as if you didnĀ“t link to the debug-libs of wx. Check your
cmake-settings, if there is a difference between release and debug for
the wx dependency.
Regards,
Andreas
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org