[osg-users] Compiling osgVRPN

Michael W Bogucki mwbogucki at gmail.com
Wed May 29 11:14:30 PDT 2019


Hi Again,
As an update, I whittled my way through several of the dependency issues


Code:


Scanning dependencies of target osgdb_tracker
Scanning dependencies of target osgVRPNwall
Scanning dependencies of target osgVRPNviewer
Scanning dependencies of target osgVRPNmod
[ 65%] Building CXX object src/osgPlugins/tracker/CMakeFiles/osgdb_tracker.dir/ReaderWriterTRACKER.cpp.o
[ 70%] Building CXX object examples/osgVRPNwall/CMakeFiles/osgVRPNwall.dir/osgVRPNwall.cpp.o
[ 80%] Building CXX object examples/osgVRPNmod/CMakeFiles/osgVRPNmod.dir/osgVRPNmod.cpp.o
[ 80%] Building CXX object examples/osgVRPNviewer/CMakeFiles/osgVRPNviewer.dir/osgVRPNviewer.cpp.o
[ 85%] Linking CXX shared module ../../../bin/osgdb_tracker.so
[ 85%] Built target osgdb_tracker
[ 90%] Linking CXX executable ../../bin/osgVRPNwall
../../bin/libosgVRPN.so: undefined reference to `q_from_axis_angle'
collect2: error: ld returned 1 exit status
examples/osgVRPNwall/CMakeFiles/osgVRPNwall.dir/build.make:102: recipe for target 'bin/osgVRPNwall' failed
make[2]: *** [bin/osgVRPNwall] Error 1
CMakeFiles/Makefile2:347: recipe for target 'examples/osgVRPNwall/CMakeFiles/osgVRPNwall.dir/all' failed
make[1]: *** [examples/osgVRPNwall/CMakeFiles/osgVRPNwall.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 95%] Linking CXX executable ../../bin/osgVRPNviewer
[100%] Linking CXX executable ../../bin/osgVRPNmod
../../bin/libosgVRPN.so: undefined reference to `q_from_axis_angle'
collect2: error: ld returned 1 exit status
examples/osgVRPNviewer/CMakeFiles/osgVRPNviewer.dir/build.make:102: recipe for target 'bin/osgVRPNviewer' failed
make[2]: *** [bin/osgVRPNviewer] Error 1
CMakeFiles/Makefile2:237: recipe for target 'examples/osgVRPNviewer/CMakeFiles/osgVRPNviewer.dir/all' failed
make[1]: *** [examples/osgVRPNviewer/CMakeFiles/osgVRPNviewer.dir/all] Error 2
../../bin/libosgVRPN.so: undefined reference to `q_from_axis_angle'
collect2: error: ld returned 1 exit status
examples/osgVRPNmod/CMakeFiles/osgVRPNmod.dir/build.make:102: recipe for target 'bin/osgVRPNmod' failed
make[2]: *** [bin/osgVRPNmod] Error 1
CMakeFiles/Makefile2:292: recipe for target 'examples/osgVRPNmod/CMakeFiles/osgVRPNmod.dir/all' failed
make[1]: *** [examples/osgVRPNmod/CMakeFiles/osgVRPNmod.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2





When I do the following:

Code:


# nm - list symbols from object files

$> nm bin/libosgVRPN.so | grep q_from_axis_angle
                 U q_from_axis_angle




It shows it undefined in libosgVRPN.so

Same with libvrpn.a

Code:

$> nm ./libvrpn.a  | grep q_from_axis_angle
                 U q_from_axis_angle




HOWEVER 

Code:

$> nm ./libquat.a  | grep q_from_axis_angle
0000000000000980 T q_from_axis_angle




So it seems either libquat isn't linked against libvrpn or libosgVRPN... 

Wondering if something is missing in the osgvrpnviewer makefile?

Again any help or ideas would be great. 


... 

Thank you!

Cheers,
Michael

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76151#76151







More information about the osg-users mailing list