OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Compiling osgVRPN


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
João
Guest





PostPosted: Sun Mar 01, 2015 3:32 pm    Post subject:
Compiling osgVRPN
Reply with quote

I understand that osgVRPN isn't an officially managed project, but I don't know where else to ask this.

I'm currently trying to compile osgVRPN without success. CMake runs successfully, but I cannot build the project due to some files missing (namely libvrpn.a.lib). Does anyone know where I can get that file?

------------------
Post generated by Mail2Forum
Back to top
Alberto Luaces
Guest





PostPosted: Sun Mar 01, 2015 5:51 pm    Post subject:
Compiling osgVRPN
Reply with quote

João writes:

Quote:
I understand that osgVRPN isn't an officially managed project, but I
don't know where else to ask this.

I'm currently trying to compile osgVRPN without success. CMake runs
successfully, but I cannot build the project due to some files missing
(namely libvrpn.a.lib). Does anyone know where I can get that file?

That seems to be the VRPN library. You might have to build it before
osgVRPN.

--
Alberto



------------------
Post generated by Mail2Forum
Back to top
João
Guest





PostPosted: Sun Mar 01, 2015 5:52 pm    Post subject:
Compiling osgVRPN
Reply with quote

I thought so too, considering I had to get a vrpn_Configure.h file from VRPN, but I cannot find that library after compiling VRPN.

Quote:
To:
From:
Date: Sun, 1 Mar 2015 18:43:43 +0100
Subject: Re: Compiling osgVRPN

João writes:

Quote:
I understand that osgVRPN isn't an officially managed project, but I
don't know where else to ask this.

I'm currently trying to compile osgVRPN without success. CMake runs
successfully, but I cannot build the project due to some files missing
(namely libvrpn.a.lib). Does anyone know where I can get that file?

That seems to be the VRPN library. You might have to build it before
osgVRPN.

--
Alberto




------------------
Post generated by Mail2Forum
Back to top
Alberto Luaces
Guest





PostPosted: Sun Mar 01, 2015 5:57 pm    Post subject:
Compiling osgVRPN
Reply with quote

João writes:

Quote:
I thought so too, considering I had to get a vrpn_Configure.h file
from VRPN, but I cannot find that library after compiling VRPN.

Could it be a static/shared issue? osgVRPN seems to look for a static
version of the VRPN library (.a.lib). Or maybe you can rename your
libvrpn.a file to that name.

--
Alberto



------------------
Post generated by Mail2Forum
Back to top
João
Guest





PostPosted: Sun Mar 01, 2015 6:48 pm    Post subject:
Compiling osgVRPN
Reply with quote

Thank you for the help. Apparently the VRPN version I'm using doesn't have a "libVRPN", but using the VRPN.lib that it does have solved my problem.

Quote:
To:
From:
Date: Sun, 1 Mar 2015 18:50:07 +0100
Subject: Re: Compiling osgVRPN

João writes:

Quote:
I thought so too, considering I had to get a vrpn_Configure.h file
from VRPN, but I cannot find that library after compiling VRPN.

Could it be a static/shared issue? osgVRPN seems to look for a static
version of the VRPN library (.a.lib). Or maybe you can rename your
libvrpn.a file to that name.

--
Alberto




------------------
Post generated by Mail2Forum
Back to top
katetsu
Newbie


Joined: 07 May 2015
Posts: 1

PostPosted: Thu May 07, 2015 1:41 pm    Post subject:
Reply with quote

Hi Joao,

Could you please post how you managed to get osgVRPN compiling with the rest of OSG source. thanks

are you compiling osgVRPN separately? or did you drop everythign on top of OSG source?
also, which VRPN version did you end up using?

...

Thank you!

Cheers,
Hoss
Back to top
View user's profile Send private message
mwbogucki
Newbie


Joined: 28 May 2019
Posts: 3

PostPosted: Wed May 29, 2019 5:44 pm    Post subject:
Trying to compile osgvrpn against a more current openscenegraph.
Reply with quote

Hi,

Hi Guys,
I'm curious if anyone has had luck in getting osgvrpn to compile as of lately?

In terms of versions I'm using the following:

Latest pull from the vrpn git site.
OpenSceneGraph-3.6.0
osgVrpn (Hollingsworth branch of osgVRPN)


I've compiled and installed both vrpn and openscenegraph on an ubuntu (18.04) system.
However I get into trouble when compling osgvrpn.


Building the osgvrpn libraries is fine, however when I get to the examples, in particular osgVRPNviewer, I see a lot of:

Code:

CMakeFiles/osgVRPNviewer.dir/osgVRPNviewer.cpp.o: In function `main':
osgVRPNviewer.cpp:(.text+0x104e): undefined reference to `osgViewer::Viewer::Viewer()'
osgVRPNviewer.cpp:(.text+0x1072): undefined reference to `osgViewer::Viewer::getUsage(osg::ApplicationUsage&) const'
osgVRPNviewer.cpp:(.text+0x1285): undefined reference to `osgGA::StateSetManipulator::StateSetManipulator(osg::StateSet*)'
osgVRPNviewer.cpp:(.text+0x129d): undefined reference to `osgViewer::View::addEventHandler(osgGA::EventHandler*)'
osgVRPNviewer.cpp:(.text+0x12c7): undefined reference to `osgViewer::HelpHandler::HelpHandler(osg::ApplicationUsage*)'
osgVRPNviewer.cpp:(.text+0x12df): undefined reference to `osgViewer::View::addEventHandler(osgGA::EventHandler*)'
osgVRPNviewer.cpp:(.text+0x12f4): undefined reference to `osgViewer::ThreadingHandler::ThreadingHandler()'
osgVRPNviewer.cpp:(.text+0x130c): undefined reference to `osgViewer::View::addEventHandler(osgGA::EventHandler*)'
osgVRPNviewer.cpp:(.text+0x1321): undefined reference to `osgViewer::WindowSizeHandler::WindowSizeHandler()'
osgVRPNviewer.cpp:(.text+0x1339): undefined reference to `osgViewer::View::addEventHandler(osgGA::EventHandler*)'
osgVRPNviewer.cpp:(.text+0x134e): undefined reference to `osgViewer::StatsHandler::StatsHandler()'

../../bin/libosgVRPN.so: undefined reference to `q_from_axis_angle'
../../bin/libosgVRPN.so: undefined reference to `osgGA::CameraManipulator::computeHomePosition(osg::Camera const*, bool)'
../../bin/libosgVRPN.so: undefined reference to `osgGA::CameraManipulator::handle(osgGA::GUIEventAdapter const&, osgGA::GUIActionAdapter&)'


I'm wondering if things have changed enough that this won't compile with the current versions.
Is this a lost cause??

Any help would be appreciated.
Thank you.
--Mike


Thank you!

Cheers,
Michael
Back to top
View user's profile Send private message
mwbogucki
Newbie


Joined: 28 May 2019
Posts: 3

PostPosted: Wed May 29, 2019 6:14 pm    Post subject:
Trying to compile osgvrpn against a more current openscenegraph.
Reply with quote

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
Back to top
View user's profile Send private message
mwbogucki
Newbie


Joined: 28 May 2019
Posts: 3

PostPosted: Fri Jun 07, 2019 1:46 pm    Post subject:
Reply with quote

Hi Everyone,
Never mind.. I figured it out. N00b mistake.
Turns out to be a linking issue.

For some reason Cmake didn't seem to find all of the needed libraries.

I added the following to the TARGET_LINK_LIBARIES: in ( src/osgVRPN/CMakeLists.txt )

TARGET_LINK_LIBRARIES( ${LIB_NAME}
${OSG_LIBRARIES}
-> osgViewer
-> osgGA
-> osgDB
-> osgUtil
-> osg
-> libvrpn.a
-> pthread
-> quat
-> m
)




Thank you!

Cheers,
Michael
Back to top
View user's profile Send private message
mwbogucki
Newbie


Joined: 28 May 2019
Posts: 3

PostPosted: Wed Jun 12, 2019 10:40 am    Post subject:
Compiling osgVRPN
Reply with quote

Hi,

Hi Guys,
I'm curious if anyone has had luck in getting osgvrpn to compile as of lately?

In terms of versions I'm using the following:

Latest pull from the vrpn git site.
OpenSceneGraph-3.6.0
osgVrpn (Hollingsworth branch of osgVRPN)


I've compiled and installed both vrpn and openscenegraph on an ubuntu (18.04) system.
However I get into trouble when compling osgvrpn.


Building the osgvrpn libraries is fine, however when I get to the examples, in particular osgVRPNviewer, I see a lot of:


Code:

CMakeFiles/osgVRPNviewer.dir/osgVRPNviewer.cpp.o: In function `main':
osgVRPNviewer.cpp:(.text+0x104e): undefined reference to `osgViewer::Viewer::Viewer()'
osgVRPNviewer.cpp:(.text+0x1072): undefined reference to `osgViewer::Viewer::getUsage(osg::ApplicationUsage&) const'
osgVRPNviewer.cpp:(.text+0x1285): undefined reference to `osgGA::StateSetManipulator::StateSetManipulator(osg::StateSet*)'
osgVRPNviewer.cpp:(.text+0x129d): undefined reference to `osgViewer::View::addEventHandler(osgGA::EventHandler*)'
osgVRPNviewer.cpp:(.text+0x12c7): undefined reference to `osgViewer::HelpHandler::HelpHandler(osg::ApplicationUsage*)'
osgVRPNviewer.cpp:(.text+0x12df): undefined reference to `osgViewer::View::addEventHandler(osgGA::EventHandler*)'
osgVRPNviewer.cpp:(.text+0x12f4): undefined reference to `osgViewer::ThreadingHandler::ThreadingHandler()'
osgVRPNviewer.cpp:(.text+0x130c): undefined reference to `osgViewer::View::addEventHandler(osgGA::EventHandler*)'
osgVRPNviewer.cpp:(.text+0x1321): undefined reference to `osgViewer::WindowSizeHandler::WindowSizeHandler()'
osgVRPNviewer.cpp:(.text+0x1339): undefined reference to `osgViewer::View::addEventHandler(osgGA::EventHandler*)'
osgVRPNviewer.cpp:(.text+0x134e): undefined reference to `osgViewer::StatsHandler::StatsHandler()'

../../bin/libosgVRPN.so: undefined reference to `q_from_axis_angle'
../../bin/libosgVRPN.so: undefined reference to `osgGA::CameraManipulator::computeHomePosition(osg::Camera const*, bool)'
../../bin/libosgVRPN.so: undefined reference to `osgGA::CameraManipulator::handle(osgGA::GUIEventAdapter const&, osgGA::GUIActionAdapter&)'




I'm wondering if things have changed enough that this won't compile with the current versions.
Is this a lost cause??

Any help would be appreciated.
Thank you.
--Mike


Thank you!

Cheers,
Michael

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




Attachments:
http://forum.openscenegraph.org//files/error_dump_211.txt




------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Compiling vertext shader fails on Intel loopy General 7 Fri Dec 14, 2018 7:28 pm View latest post
No new posts issues compiling 3.0.1 Lonnie.CTR.Souder General 2 Wed Sep 26, 2018 8:59 pm View latest post
No new posts Problem compiling OSG 3.4.1 osgDB 64 bit tonyor Build system [build] 0 Thu Sep 21, 2017 12:41 am View latest post
No new posts GraphicsWindowWin32 compiling errors ... Davide Raccagni Submission 4 Thu May 19, 2016 11:32 am View latest post
No new posts GraphicsWindowWin32 compiling errors ... Davide Raccagni Submission 1 Wed May 18, 2016 6:10 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP