Re: [osg-users] undefined symbol in osgdb_dae.so
I'm continuing to see the undefined symbol problem... Regardless of which library I use (.a or .so), the build runs just fine without issue. When using libcollada_dae.a: undefined symbol _ZN7pcrecpp3Arg12parse_stringEPKciPv When linking against libcollada_dae_shared.so: undefined symbol _Z16registerDomTypesv As an experiment, I linked against (.a .so) of the libcollada_dom library. Still get undefined symbol - both .a .so report the pcrecpp symbol as being undefined. My collada install is fresh from last week and built without any issues. Is there something else that I can try? Thanks in advance -bob -- Forwarded message -- Date: Fri, 30 Nov 2007 17:32:07 -0900 (AKST) From: Bob Huebert [EMAIL PROTECTED] Reply-To: OpenSceneGraph Users osg-users@lists.openscenegraph.org To: Roger James [EMAIL PROTECTED] Cc: 'OpenSceneGraph Users' osg-users@lists.openscenegraph.org Subject: Re: [osg-users] undefined symbol in osgdb_dae.so Thanks Roger. I'm rebuilding now. I'll report the results. -bob On Sat, 1 Dec 2007, Roger James wrote: Bob, I only tested on windows VC8.1. Looks like there is something missing on the build system on the Unix side. At a guess looking at the decorated name showing as undefined it is something in the xml parser. That probably means that you are linking against the static collada dae libs. It might be better to link against the dynamic collada libs so that the scope of external dependencies is limited. Roger -Original Message- From: [EMAIL PROTECTED] [mailto:osg-users- [EMAIL PROTECTED] On Behalf Of Bob Huebert Sent: 30 November 2007 19:38 To: osg-users@lists.openscenegraph.org Subject: [osg-users] undefined symbol in osgdb_dae.so I've built and am eager to try the latest collada plugin posted by Roger James. Thank you for the contribution Roger! When attempting to load the skintest_1_ID.dae from collada.org's test data repository I get an undefined symbol as such: snip FindFileInPath() : USING /export/staffdata/osg/lib64/osgPlugins-2.2.0/osgdb_dae.so DynamicLibrary::getLibraryHandle( /export/staffdata/osg/lib64/osgPlugins-2.2.0/osgdb_dae.so) - dlopen(): /export/staffdata/osg/lib64/osgPlugins-2.2.0/osgdb_dae.so: undefined symbol: _ZN7pcrecpp3Arg12parse_stringEPKciPv DynamicLibrary::failed loading osgPlugins-2.2.0/osgdb_dae.so Warning: Could not find plugin to read objects from file skintest_1_ID.dae. osgviewer: No data loaded snip Can someone sheds some light on what is going on and how I can correct it? I'm working a svn draft of the osg trunk from yesterday (added the dae plugin manually). My system is FC7 on a SUN dual AMD box with FX3000 display hardware. Thanks! Bob Huebert email: [EMAIL PROTECTED] Visualization Systems Analyst voice: (907) 450-8638 Arctic Region Supercomputing Center FAX: (907) 450-8601 University of Alaska FairbanksWWW: http://www.arsc.edu/ ___ 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 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] undefined symbol in osgdb_dae.so
On Mon, 2007-12-03 at 10:10 -0900, Bob Huebert wrote: I'm continuing to see the undefined symbol problem... Regardless of which library I use (.a or .so), the build runs just fine without issue. When using libcollada_dae.a: undefined symbol _ZN7pcrecpp3Arg12parse_stringEPKciPv When linking against libcollada_dae_shared.so: undefined symbol _Z16registerDomTypesv As an experiment, I linked against (.a .so) of the libcollada_dom library. Still get undefined symbol - both .a .so report the pcrecpp symbol as being undefined. My collada install is fresh from last week and built without any issues. Is there something else that I can try? I bet adding -lpcrecpp will do the trick if you're wanting to use the .a file. My first post didn't really go into detail about how to do this properly, so let me try to be more specific: 1. Open: $SVNDIR/src/osgPlugins/dae/CMakeLists.txt 2. Go down to line 27 and add pcrecpp to TARGET_EXTERNAL_LIB. 3. Re-run your master cmake command, so that it reconfigures. 4. Build! If that doesn't work, then it's probably something more dubious. In fact, I'd be willing to be it IS something dubious, because I've never know Collada to mess this up. It definitely uses libpcrecpp, but it's own build system should have linked that in when building the archive. Thanks in advance -bob -- Forwarded message -- Date: Fri, 30 Nov 2007 17:32:07 -0900 (AKST) From: Bob Huebert [EMAIL PROTECTED] Reply-To: OpenSceneGraph Users osg-users@lists.openscenegraph.org To: Roger James [EMAIL PROTECTED] Cc: 'OpenSceneGraph Users' osg-users@lists.openscenegraph.org Subject: Re: [osg-users] undefined symbol in osgdb_dae.so Thanks Roger. I'm rebuilding now. I'll report the results. -bob On Sat, 1 Dec 2007, Roger James wrote: Bob, I only tested on windows VC8.1. Looks like there is something missing on the build system on the Unix side. At a guess looking at the decorated name showing as undefined it is something in the xml parser. That probably means that you are linking against the static collada dae libs. It might be better to link against the dynamic collada libs so that the scope of external dependencies is limited. Roger -Original Message- From: [EMAIL PROTECTED] [mailto:osg-users- [EMAIL PROTECTED] On Behalf Of Bob Huebert Sent: 30 November 2007 19:38 To: osg-users@lists.openscenegraph.org Subject: [osg-users] undefined symbol in osgdb_dae.so I've built and am eager to try the latest collada plugin posted by Roger James. Thank you for the contribution Roger! When attempting to load the skintest_1_ID.dae from collada.org's test data repository I get an undefined symbol as such: snip FindFileInPath() : USING /export/staffdata/osg/lib64/osgPlugins-2.2.0/osgdb_dae.so DynamicLibrary::getLibraryHandle( /export/staffdata/osg/lib64/osgPlugins-2.2.0/osgdb_dae.so) - dlopen(): /export/staffdata/osg/lib64/osgPlugins-2.2.0/osgdb_dae.so: undefined symbol: _ZN7pcrecpp3Arg12parse_stringEPKciPv DynamicLibrary::failed loading osgPlugins-2.2.0/osgdb_dae.so Warning: Could not find plugin to read objects from file skintest_1_ID.dae. osgviewer: No data loaded snip Can someone sheds some light on what is going on and how I can correct it? I'm working a svn draft of the osg trunk from yesterday (added the dae plugin manually). My system is FC7 on a SUN dual AMD box with FX3000 display hardware. Thanks! Bob Huebert email: [EMAIL PROTECTED] Visualization Systems Analyst voice: (907) 450-8638 Arctic Region Supercomputing Center FAX: (907) 450-8601 University of Alaska FairbanksWWW: http://www.arsc.edu/ ___ 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 ___ 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
Re: [osg-users] undefined symbol in osgdb_dae.so
On Mon, 3 Dec 2007, Jeremy Moles wrote: On Mon, 2007-12-03 at 10:10 -0900, Bob Huebert wrote: I'm continuing to see the undefined symbol problem... Regardless of which library I use (.a or .so), the build runs just fine without issue. When using libcollada_dae.a: undefined symbol _ZN7pcrecpp3Arg12parse_stringEPKciPv When linking against libcollada_dae_shared.so: undefined symbol _Z16registerDomTypesv As an experiment, I linked against (.a .so) of the libcollada_dom library. Still get undefined symbol - both .a .so report the pcrecpp symbol as being undefined. My collada install is fresh from last week and built without any issues. Is there something else that I can try? I bet adding -lpcrecpp will do the trick if you're wanting to use the .a file. My first post didn't really go into detail about how to do this properly, so let me try to be more specific: 1. Open: $SVNDIR/src/osgPlugins/dae/CMakeLists.txt 2. Go down to line 27 and add pcrecpp to TARGET_EXTERNAL_LIB. 3. Re-run your master cmake command, so that it reconfigures. 4. Build! If that doesn't work, then it's probably something more dubious. In fact, I'd be willing to be it IS something dubious, because I've never know Collada to mess this up. It definitely uses libpcrecpp, but it's own build system should have linked that in when building the archive. Thanks for the tip on mod'ing for the pcrecpp inclusion. I did this and rebuilt (tried with both .a and .so libs). I no longer see the undef'd symbol for pcrecpp, but now get an undef'd symbol for _Z16registerDomTypesv - for both types of build. As you've posited, there is something more dubious going on. -bob -- Forwarded message -- Date: Fri, 30 Nov 2007 17:32:07 -0900 (AKST) From: Bob Huebert [EMAIL PROTECTED] Reply-To: OpenSceneGraph Users osg-users@lists.openscenegraph.org To: Roger James [EMAIL PROTECTED] Cc: 'OpenSceneGraph Users' osg-users@lists.openscenegraph.org Subject: Re: [osg-users] undefined symbol in osgdb_dae.so Thanks Roger. I'm rebuilding now. I'll report the results. -bob On Sat, 1 Dec 2007, Roger James wrote: Bob, I only tested on windows VC8.1. Looks like there is something missing on the build system on the Unix side. At a guess looking at the decorated name showing as undefined it is something in the xml parser. That probably means that you are linking against the static collada dae libs. It might be better to link against the dynamic collada libs so that the scope of external dependencies is limited. Roger -Original Message- From: [EMAIL PROTECTED] [mailto:osg-users- [EMAIL PROTECTED] On Behalf Of Bob Huebert Sent: 30 November 2007 19:38 To: osg-users@lists.openscenegraph.org Subject: [osg-users] undefined symbol in osgdb_dae.so I've built and am eager to try the latest collada plugin posted by Roger James. Thank you for the contribution Roger! When attempting to load the skintest_1_ID.dae from collada.org's test data repository I get an undefined symbol as such: snip FindFileInPath() : USING /export/staffdata/osg/lib64/osgPlugins-2.2.0/osgdb_dae.so DynamicLibrary::getLibraryHandle( /export/staffdata/osg/lib64/osgPlugins-2.2.0/osgdb_dae.so) - dlopen(): /export/staffdata/osg/lib64/osgPlugins-2.2.0/osgdb_dae.so: undefined symbol: _ZN7pcrecpp3Arg12parse_stringEPKciPv DynamicLibrary::failed loading osgPlugins-2.2.0/osgdb_dae.so Warning: Could not find plugin to read objects from file skintest_1_ID.dae. osgviewer: No data loaded snip Can someone sheds some light on what is going on and how I can correct it? I'm working a svn draft of the osg trunk from yesterday (added the dae plugin manually). My system is FC7 on a SUN dual AMD box with FX3000 display hardware. Thanks! Bob Huebert email: [EMAIL PROTECTED] Visualization Systems Analyst voice: (907) 450-8638 Arctic Region Supercomputing Center FAX: (907) 450-8601 University of Alaska FairbanksWWW: http://www.arsc.edu/ ___ 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 ___ 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
Re: [osg-users] undefined symbol in osgdb_dae.so
Robert let me add: src/osgPlugins/dae/README.txt ...a while back, which was my account of how I got the thing to work. :) Back then, it worked slightly differently... I'll try and build Collada myself on Fedora 8, 32bit, and let you know if I have any issues. On Mon, 2007-12-03 at 11:49 -0900, Bob Huebert wrote: On Mon, 3 Dec 2007, Jeremy Moles wrote: On Mon, 2007-12-03 at 10:10 -0900, Bob Huebert wrote: I'm continuing to see the undefined symbol problem... Regardless of which library I use (.a or .so), the build runs just fine without issue. When using libcollada_dae.a: undefined symbol _ZN7pcrecpp3Arg12parse_stringEPKciPv When linking against libcollada_dae_shared.so: undefined symbol _Z16registerDomTypesv As an experiment, I linked against (.a .so) of the libcollada_dom library. Still get undefined symbol - both .a .so report the pcrecpp symbol as being undefined. My collada install is fresh from last week and built without any issues. Is there something else that I can try? I bet adding -lpcrecpp will do the trick if you're wanting to use the .a file. My first post didn't really go into detail about how to do this properly, so let me try to be more specific: 1. Open: $SVNDIR/src/osgPlugins/dae/CMakeLists.txt 2. Go down to line 27 and add pcrecpp to TARGET_EXTERNAL_LIB. 3. Re-run your master cmake command, so that it reconfigures. 4. Build! If that doesn't work, then it's probably something more dubious. In fact, I'd be willing to be it IS something dubious, because I've never know Collada to mess this up. It definitely uses libpcrecpp, but it's own build system should have linked that in when building the archive. Thanks for the tip on mod'ing for the pcrecpp inclusion. I did this and rebuilt (tried with both .a and .so libs). I no longer see the undef'd symbol for pcrecpp, but now get an undef'd symbol for _Z16registerDomTypesv - for both types of build. As you've posited, there is something more dubious going on. -bob -- Forwarded message -- Date: Fri, 30 Nov 2007 17:32:07 -0900 (AKST) From: Bob Huebert [EMAIL PROTECTED] Reply-To: OpenSceneGraph Users osg-users@lists.openscenegraph.org To: Roger James [EMAIL PROTECTED] Cc: 'OpenSceneGraph Users' osg-users@lists.openscenegraph.org Subject: Re: [osg-users] undefined symbol in osgdb_dae.so Thanks Roger. I'm rebuilding now. I'll report the results. -bob On Sat, 1 Dec 2007, Roger James wrote: Bob, I only tested on windows VC8.1. Looks like there is something missing on the build system on the Unix side. At a guess looking at the decorated name showing as undefined it is something in the xml parser. That probably means that you are linking against the static collada dae libs. It might be better to link against the dynamic collada libs so that the scope of external dependencies is limited. Roger -Original Message- From: [EMAIL PROTECTED] [mailto:osg-users- [EMAIL PROTECTED] On Behalf Of Bob Huebert Sent: 30 November 2007 19:38 To: osg-users@lists.openscenegraph.org Subject: [osg-users] undefined symbol in osgdb_dae.so I've built and am eager to try the latest collada plugin posted by Roger James. Thank you for the contribution Roger! When attempting to load the skintest_1_ID.dae from collada.org's test data repository I get an undefined symbol as such: snip FindFileInPath() : USING /export/staffdata/osg/lib64/osgPlugins-2.2.0/osgdb_dae.so DynamicLibrary::getLibraryHandle( /export/staffdata/osg/lib64/osgPlugins-2.2.0/osgdb_dae.so) - dlopen(): /export/staffdata/osg/lib64/osgPlugins-2.2.0/osgdb_dae.so: undefined symbol: _ZN7pcrecpp3Arg12parse_stringEPKciPv DynamicLibrary::failed loading osgPlugins-2.2.0/osgdb_dae.so Warning: Could not find plugin to read objects from file skintest_1_ID.dae. osgviewer: No data loaded snip Can someone sheds some light on what is going on and how I can correct it? I'm working a svn draft of the osg trunk from yesterday (added the dae plugin manually). My system is FC7 on a SUN dual AMD box with FX3000 display hardware. Thanks! Bob Huebert email: [EMAIL PROTECTED] Visualization Systems Analyst voice: (907) 450-8638 Arctic Region Supercomputing Center FAX: (907) 450-8601 University of Alaska FairbanksWWW: http://www.arsc.edu/ ___ 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
Re: [osg-users] undefined symbol in osgdb_dae.so
Okay, just so you know this isn't anything you're doing wrong. The build is broken in some way. I'll fix and make a post here and to submissions. I'm getting the exact same error as you. On Mon, 2007-12-03 at 11:49 -0900, Bob Huebert wrote: On Mon, 3 Dec 2007, Jeremy Moles wrote: On Mon, 2007-12-03 at 10:10 -0900, Bob Huebert wrote: I'm continuing to see the undefined symbol problem... Regardless of which library I use (.a or .so), the build runs just fine without issue. When using libcollada_dae.a: undefined symbol _ZN7pcrecpp3Arg12parse_stringEPKciPv When linking against libcollada_dae_shared.so: undefined symbol _Z16registerDomTypesv As an experiment, I linked against (.a .so) of the libcollada_dom library. Still get undefined symbol - both .a .so report the pcrecpp symbol as being undefined. My collada install is fresh from last week and built without any issues. Is there something else that I can try? I bet adding -lpcrecpp will do the trick if you're wanting to use the .a file. My first post didn't really go into detail about how to do this properly, so let me try to be more specific: 1. Open: $SVNDIR/src/osgPlugins/dae/CMakeLists.txt 2. Go down to line 27 and add pcrecpp to TARGET_EXTERNAL_LIB. 3. Re-run your master cmake command, so that it reconfigures. 4. Build! If that doesn't work, then it's probably something more dubious. In fact, I'd be willing to be it IS something dubious, because I've never know Collada to mess this up. It definitely uses libpcrecpp, but it's own build system should have linked that in when building the archive. Thanks for the tip on mod'ing for the pcrecpp inclusion. I did this and rebuilt (tried with both .a and .so libs). I no longer see the undef'd symbol for pcrecpp, but now get an undef'd symbol for _Z16registerDomTypesv - for both types of build. As you've posited, there is something more dubious going on. -bob -- Forwarded message -- Date: Fri, 30 Nov 2007 17:32:07 -0900 (AKST) From: Bob Huebert [EMAIL PROTECTED] Reply-To: OpenSceneGraph Users osg-users@lists.openscenegraph.org To: Roger James [EMAIL PROTECTED] Cc: 'OpenSceneGraph Users' osg-users@lists.openscenegraph.org Subject: Re: [osg-users] undefined symbol in osgdb_dae.so Thanks Roger. I'm rebuilding now. I'll report the results. -bob On Sat, 1 Dec 2007, Roger James wrote: Bob, I only tested on windows VC8.1. Looks like there is something missing on the build system on the Unix side. At a guess looking at the decorated name showing as undefined it is something in the xml parser. That probably means that you are linking against the static collada dae libs. It might be better to link against the dynamic collada libs so that the scope of external dependencies is limited. Roger -Original Message- From: [EMAIL PROTECTED] [mailto:osg-users- [EMAIL PROTECTED] On Behalf Of Bob Huebert Sent: 30 November 2007 19:38 To: osg-users@lists.openscenegraph.org Subject: [osg-users] undefined symbol in osgdb_dae.so I've built and am eager to try the latest collada plugin posted by Roger James. Thank you for the contribution Roger! When attempting to load the skintest_1_ID.dae from collada.org's test data repository I get an undefined symbol as such: snip FindFileInPath() : USING /export/staffdata/osg/lib64/osgPlugins-2.2.0/osgdb_dae.so DynamicLibrary::getLibraryHandle( /export/staffdata/osg/lib64/osgPlugins-2.2.0/osgdb_dae.so) - dlopen(): /export/staffdata/osg/lib64/osgPlugins-2.2.0/osgdb_dae.so: undefined symbol: _ZN7pcrecpp3Arg12parse_stringEPKciPv DynamicLibrary::failed loading osgPlugins-2.2.0/osgdb_dae.so Warning: Could not find plugin to read objects from file skintest_1_ID.dae. osgviewer: No data loaded snip Can someone sheds some light on what is going on and how I can correct it? I'm working a svn draft of the osg trunk from yesterday (added the dae plugin manually). My system is FC7 on a SUN dual AMD box with FX3000 display hardware. Thanks! Bob Huebert email: [EMAIL PROTECTED] Visualization Systems Analyst voice: (907) 450-8638 Arctic Region Supercomputing Center FAX: (907) 450-8601 University of Alaska FairbanksWWW: http://www.arsc.edu/ ___ 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
Re: [osg-users] undefined symbol in osgdb_dae.so
sweetness! Thank you so much Jeremy. -bob On Mon, 3 Dec 2007, Jeremy Moles wrote: OKAY! Here's how I got this to work... (Both using shared and static modes) 1. Latest SVN Collada built using: make RELEASE=1 2. Latest SVN Collada installed using: sudo make RELEASE=1 (sudo was used since the Collada project doesn't seem to have a PREFIX option, and I generally install to ~/local, so that sucks. Anyway...) NOTE: They don't install symlinks using the Makefile, which puts 3 exact copies of the same library in /usr/lib. Yuck. 3. I ran ccmake. As per README.txt in the Collada/osgPlugins dir, two variables were undetected and defined as -NOTFOUND. 4. I set COLLADA_INCLUDE_DIR to /usr/include/collada --- FOR SHARED MODE --- 5. I set COLLADA_LIBRARY to /usr/lib/libcollada_dom_shared.so 6. I edited CMakeLists.txt in src/osgPlugins/dae and changed collada_dae and collada_dom on line 27 to collada_dae_shared and collada_dom_shared. NOTE: This is where the bug is in shared mode (the lack of _shared) --- FOR STATIC MODE --- 5. I set COLLADA_LIBRARY to /usr/lib/libcollada_dom.a 6. I edited CMakeLists.txt in src/osgPlugins/dae and added pcrecpp to the linked in libraries. NOTE: This did not work when I used libcollada_dae.a, which might explain some of your problem when trying this fix yourself. At any rate, it looks like the build is broken using latest OSG and Collada, so I'm not quite sure how anyone has been using it unless they're using old versions or--may the gods forbid--Windows. My CMake skills are improving, so I may be able to introduce a stronger CMakeLlists.txt file for Robert to include, but it'll have to be tomorrow. The stuff above should work in the interim. Enjoy! ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] undefined symbol in osgdb_dae.so
On Mon, 3 Dec 2007, Bob Huebert wrote: sweetness! Thank you so much Jeremy. -bob On Mon, 3 Dec 2007, Jeremy Moles wrote: OKAY! Here's how I got this to work... (Both using shared and static modes) 1. Latest SVN Collada built using: make RELEASE=1 2. Latest SVN Collada installed using: sudo make RELEASE=1 (sudo was used since the Collada project doesn't seem to have a PREFIX option, and I generally install to ~/local, so that sucks. Anyway...) I avoided using sudo for my test by setting the COLLADA_INCLUDE_DIR and COLLADA_LIBRARY to my build space for collada. I too prefer to build outside of the system space first, then evaluate, *then* put into the main mix. NOTE: They don't install symlinks using the Makefile, which puts 3 exact copies of the same library in /usr/lib. Yuck. 3. I ran ccmake. As per README.txt in the Collada/osgPlugins dir, two variables were undetected and defined as -NOTFOUND. 4. I set COLLADA_INCLUDE_DIR to /usr/include/collada --- FOR SHARED MODE --- 5. I set COLLADA_LIBRARY to /usr/lib/libcollada_dom_shared.so 6. I edited CMakeLists.txt in src/osgPlugins/dae and changed collada_dae and collada_dom on line 27 to collada_dae_shared and collada_dom_shared. NOTE: This is where the bug is in shared mode (the lack of _shared) This is exactly what was holding up the clean build here. I made the change and have been able to use the osgdb_dae loader using shared objects. Unfortunately, the .dae file I chose from the collada.org repo for testing has features that aren't supported. x-) -bob --- FOR STATIC MODE --- 5. I set COLLADA_LIBRARY to /usr/lib/libcollada_dom.a 6. I edited CMakeLists.txt in src/osgPlugins/dae and added pcrecpp to the linked in libraries. NOTE: This did not work when I used libcollada_dae.a, which might explain some of your problem when trying this fix yourself. At any rate, it looks like the build is broken using latest OSG and Collada, so I'm not quite sure how anyone has been using it unless they're using old versions or--may the gods forbid--Windows. My CMake skills are improving, so I may be able to introduce a stronger CMakeLlists.txt file for Robert to include, but it'll have to be tomorrow. The stuff above should work in the interim. Enjoy! ___ 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
Re: [osg-users] undefined symbol in osgdb_dae.so
they're using old versions or--may the gods forbid--Windows. My CMake Enjoy! [Roger James] Sorry Jeremy. The atheist in me thinks you may not be a god. But please forgive me anyway, I only build osg on windows. (But I do run a real operating system on most of the other systems here :-) ) I also remember Scope, NOS, Kronos, VME/B, VME/K, George 3, 1900 Operators exec, System 4, KDF9, Pegasus, Orion Autocode, any many more even more obscure pieces or lore. Plus ca change. Too long in the pub tonight :-) Roger ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] undefined symbol in osgdb_dae.so
Thanks Roger. I'm rebuilding now. I'll report the results. -bob On Sat, 1 Dec 2007, Roger James wrote: Bob, I only tested on windows VC8.1. Looks like there is something missing on the build system on the Unix side. At a guess looking at the decorated name showing as undefined it is something in the xml parser. That probably means that you are linking against the static collada dae libs. It might be better to link against the dynamic collada libs so that the scope of external dependencies is limited. Roger -Original Message- From: [EMAIL PROTECTED] [mailto:osg-users- [EMAIL PROTECTED] On Behalf Of Bob Huebert Sent: 30 November 2007 19:38 To: osg-users@lists.openscenegraph.org Subject: [osg-users] undefined symbol in osgdb_dae.so I've built and am eager to try the latest collada plugin posted by Roger James. Thank you for the contribution Roger! When attempting to load the skintest_1_ID.dae from collada.org's test data repository I get an undefined symbol as such: snip FindFileInPath() : USING /export/staffdata/osg/lib64/osgPlugins-2.2.0/osgdb_dae.so DynamicLibrary::getLibraryHandle( /export/staffdata/osg/lib64/osgPlugins-2.2.0/osgdb_dae.so) - dlopen(): /export/staffdata/osg/lib64/osgPlugins-2.2.0/osgdb_dae.so: undefined symbol: _ZN7pcrecpp3Arg12parse_stringEPKciPv DynamicLibrary::failed loading osgPlugins-2.2.0/osgdb_dae.so Warning: Could not find plugin to read objects from file skintest_1_ID.dae. osgviewer: No data loaded snip Can someone sheds some light on what is going on and how I can correct it? I'm working a svn draft of the osg trunk from yesterday (added the dae plugin manually). My system is FC7 on a SUN dual AMD box with FX3000 display hardware. Thanks! Bob Huebert email: [EMAIL PROTECTED] Visualization Systems Analyst voice: (907) 450-8638 Arctic Region Supercomputing Center FAX: (907) 450-8601 University of Alaska FairbanksWWW: http://www.arsc.edu/ ___ 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
Re: [osg-users] undefined symbol in osgdb_dae.so
OK, I tried to find the correct 'somewhere', but not being familiar enough with the cmake setup I haven't been able to rebuild with the implicit -lpcrecpp switch. I did find that libpcrecpp.so lives in the usual (/usr/lib) place on my system. My LD_CONFIG_PATH contains this location. I would presume this would give the compiler the needed pieces... Maybe this is a version mismatch? Maybe something else? the search continues... -bob On Fri, 30 Nov 2007, Jeremy Moles wrote: Looks like it wants something from libpcrecpp, but that's news to me... Try putting: -lpcrecpp ...somewhere. On Fri, 2007-11-30 at 10:37 -0900, Bob Huebert wrote: I've built and am eager to try the latest collada plugin posted by Roger James. Thank you for the contribution Roger! When attempting to load the skintest_1_ID.dae from collada.org's test data repository I get an undefined symbol as such: snip FindFileInPath() : USING /export/staffdata/osg/lib64/osgPlugins-2.2.0/osgdb_dae.so DynamicLibrary::getLibraryHandle( /export/staffdata/osg/lib64/osgPlugins-2.2.0/osgdb_dae.so) - dlopen(): /export/staffdata/osg/lib64/osgPlugins-2.2.0/osgdb_dae.so: undefined symbol: _ZN7pcrecpp3Arg12parse_stringEPKciPv DynamicLibrary::failed loading osgPlugins-2.2.0/osgdb_dae.so Warning: Could not find plugin to read objects from file skintest_1_ID.dae. osgviewer: No data loaded snip Can someone sheds some light on what is going on and how I can correct it? I'm working a svn draft of the osg trunk from yesterday (added the dae plugin manually). My system is FC7 on a SUN dual AMD box with FX3000 display hardware. Thanks! Bob Huebert email: [EMAIL PROTECTED] Visualization Systems Analyst voice: (907) 450-8638 Arctic Region Supercomputing Center FAX: (907) 450-8601 University of Alaska FairbanksWWW: http://www.arsc.edu/ ___ 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
Re: [osg-users] undefined symbol in osgdb_dae.so
Bob, I only tested on windows VC8.1. Looks like there is something missing on the build system on the Unix side. At a guess looking at the decorated name showing as undefined it is something in the xml parser. That probably means that you are linking against the static collada dae libs. It might be better to link against the dynamic collada libs so that the scope of external dependencies is limited. Roger -Original Message- From: [EMAIL PROTECTED] [mailto:osg-users- [EMAIL PROTECTED] On Behalf Of Bob Huebert Sent: 30 November 2007 19:38 To: osg-users@lists.openscenegraph.org Subject: [osg-users] undefined symbol in osgdb_dae.so I've built and am eager to try the latest collada plugin posted by Roger James. Thank you for the contribution Roger! When attempting to load the skintest_1_ID.dae from collada.org's test data repository I get an undefined symbol as such: snip FindFileInPath() : USING /export/staffdata/osg/lib64/osgPlugins-2.2.0/osgdb_dae.so DynamicLibrary::getLibraryHandle( /export/staffdata/osg/lib64/osgPlugins-2.2.0/osgdb_dae.so) - dlopen(): /export/staffdata/osg/lib64/osgPlugins-2.2.0/osgdb_dae.so: undefined symbol: _ZN7pcrecpp3Arg12parse_stringEPKciPv DynamicLibrary::failed loading osgPlugins-2.2.0/osgdb_dae.so Warning: Could not find plugin to read objects from file skintest_1_ID.dae. osgviewer: No data loaded snip Can someone sheds some light on what is going on and how I can correct it? I'm working a svn draft of the osg trunk from yesterday (added the dae plugin manually). My system is FC7 on a SUN dual AMD box with FX3000 display hardware. Thanks! Bob Huebert email: [EMAIL PROTECTED] Visualization Systems Analyst voice: (907) 450-8638 Arctic Region Supercomputing Center FAX: (907) 450-8601 University of Alaska FairbanksWWW: http://www.arsc.edu/ ___ 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