Quantcast

Running Open RAVE Production branch on OS X

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Running Open RAVE Production branch on OS X

Andrew Hundt
I'm trying to run the openrave production branch on OS X, but I'm running into segmentation faults.

I made the following changes to the tree to get it to compile:

After compiling and installing I ran:
python -v /usr/local/bin/openrave.py

It now appears to crash when python attempts to load openravepy_int.so:

import openravepy._openravepy_0_9 # precompiled from /usr/local/lib/python2.7/site-packages/openravepy/_openravepy_0_9/__init__.pyc
dlopen("/usr/local/lib/python2.7/site-packages/openravepy/_openravepy_0_9/openravepy_int.so", 2);
[1]    16924 segmentation fault  python -v /usr/local/bin/openrave.py

Here is the full output: 


I'm using homebrew and I've installed the homebrew version of python, as you can see from the /usr/local/Cellar/python path. I initially had some issues where the default python and related libraries were being picked up by openrave, but I believe those issues are resolved. I also rebuilt boost (with python) from source to make sure it picks up the correct version of python:

○ otool -L $(brew list boost | grep 'python.*.dylib')
/usr/local/Cellar/boost/1.55.0_1/lib/libboost_python-mt.dylib:
/usr/local/lib/libboost_python-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
/usr/local/Cellar/boost/1.55.0_1/lib/libboost_python.dylib:
/usr/local/lib/libboost_python.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)


After fixing all of those I'm not sure how to resolve the next issue with the .so segmentation fault.  I'd appreciate any help.

Cheers!
Andrew Hundt

Robotics Engineer
National Robotics Engineering Center
Carnegie Mellon University
Work: 412-204-7250
Personal: 908-720-5501

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Openrave-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openrave-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Running Open RAVE Production branch on OS X

Rosen Diankov
Administrator
thanks for the pull request! i wrote some comments.

as for the segfault, can you try "ldd" on the so file and see if it is pulling in the right libraries.

best,
rosen,



2014-03-18 13:39 GMT-07:00 Andrew Hundt <[hidden email]>:
I'm trying to run the openrave production branch on OS X, but I'm running into segmentation faults.

I made the following changes to the tree to get it to compile:

After compiling and installing I ran:
python -v /usr/local/bin/openrave.py

It now appears to crash when python attempts to load openravepy_int.so:

import openravepy._openravepy_0_9 # precompiled from /usr/local/lib/python2.7/site-packages/openravepy/_openravepy_0_9/__init__.pyc
dlopen("/usr/local/lib/python2.7/site-packages/openravepy/_openravepy_0_9/openravepy_int.so", 2);
[1]    16924 segmentation fault  python -v /usr/local/bin/openrave.py

Here is the full output: 


I'm using homebrew and I've installed the homebrew version of python, as you can see from the /usr/local/Cellar/python path. I initially had some issues where the default python and related libraries were being picked up by openrave, but I believe those issues are resolved. I also rebuilt boost (with python) from source to make sure it picks up the correct version of python:

○ otool -L $(brew list boost | grep 'python.*.dylib')
/usr/local/Cellar/boost/1.55.0_1/lib/libboost_python-mt.dylib:
/usr/local/lib/libboost_python-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
/usr/local/Cellar/boost/1.55.0_1/lib/libboost_python.dylib:
/usr/local/lib/libboost_python.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)


After fixing all of those I'm not sure how to resolve the next issue with the .so segmentation fault.  I'd appreciate any help.

Cheers!
Andrew Hundt

Robotics Engineer
National Robotics Engineering Center
Carnegie Mellon University
Work: <a href="tel:412-204-7250" value="+14122047250" target="_blank">412-204-7250
Personal: <a href="tel:908-720-5501" value="+19087205501" target="_blank">908-720-5501

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Openrave-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openrave-users



------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Openrave-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openrave-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Running Open RAVE Production branch on OS X

Andrew Hundt
Thanks for the help and comments, I added a reply.

It appears the source of the problem might be in a call to osg or perhaps osg itself?


If I try to simply execute "openrave" on the command line in lldb (equivalent to gdb) I get the following output:

○ lldb openrave
Current executable set to 'openrave' (x86_64).
(lldb) r
Process 25219 launched: '/usr/local/bin/openrave' (x86_64)
[plugindatabase.h:929 _SysLoadLibrary] /usr/local/share/openrave-0.9/plugins/libqtcoinrave.dylib: dlopen(/usr/local/share/openrave-0.9/plugins/libqtcoinrave.dylib, 1): Library not loaded: Inventor.framework/Versions/C/Inventor
  Referenced from: /usr/local/Frameworks/SoQt.framework/Versions/A/Libraries/libSoQt.20.5.0.dylib
  Reason: image not found
[plugindatabase.h:929 _SysLoadLibrary] /usr/local/share/openrave-0.9/plugins/libqtcoinrave.dylib: dlopen(/usr/local/share/openrave-0.9/plugins/libqtcoinrave.dylib, 1): Library not loaded: Inventor.framework/Versions/C/Inventor
  Referenced from: /usr/local/Frameworks/SoQt.framework/Versions/A/Libraries/libSoQt.20.5.0.dylib
  Reason: image not found
[plugindatabase.h:857 _LoadPlugin] failed to load: /usr/local/share/openrave-0.9/plugins/libqtcoinrave.dylib
[plugindatabase.h:929 _SysLoadLibrary] /usr/local/share/openrave-0.9/plugins/openravepy_configurationcache.dylib: dlopen(/usr/local/share/openrave-0.9/plugins/openravepy_configurationcache.dylib, 1): Library not loaded: openravepy_int.so
  Referenced from: /usr/local/share/openrave-0.9/plugins/openravepy_configurationcache.dylib
  Reason: image not found
[plugindatabase.h:857 _LoadPlugin] failed to load: /usr/local/share/openrave-0.9/plugins/openravepy_configurationcache.dylib
[textserver.h:403 main] text server listening on port 4765
[plugindatabase.h:577 Create] Failed to create name qtcoin, interface viewer
Process 25219 stopped
* thread #1: tid = 0x690467, 0x0000000110b59a5a libosg.3.2.0.dylib`osg::ArgumentParser::ArgumentParser(int*, char**) + 84, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x0000000110b59a5a libosg.3.2.0.dylib`osg::ArgumentParser::ArgumentParser(int*, char**) + 84
libosg.3.2.0.dylib`osg::ArgumentParser::ArgumentParser(int*, char**) + 84:
-> 0x110b59a5a:  cmpl   $0x2, (%rax)
   0x110b59a5d:  jl     0x110b59b0a               ; osg::ArgumentParser::ArgumentParser(int*, char**) + 260
   0x110b59a63:  movl   $0x1, %r13d
   0x110b59a69:  leaq   -0x58(%rbp), %r15
(lldb)


Here are the results of otool -L, the mac equivalent to ldd. While Boost says it is 0.0.0 the real version is 1.55.

openrave executable:

○ otool -L /usr/local/bin/openrave
/usr/local/bin/openrave:
/usr/local/lib/libboost_date_time-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/libboost_thread-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
libopenrave0.9.0.dylib (compatibility version 0.0.0, current version 0.9.0)
libopenrave0.9-core.0.dylib (compatibility version 0.0.0, current version 0.9.0)
/usr/local/lib/libmpfr.4.dylib (compatibility version 6.0.0, current version 6.2.0)
/usr/local/lib/libgmp.10.dylib (compatibility version 12.0.0, current version 12.3.0)
/usr/lib/libxml2.2.dylib (compatibility version 10.0.0, current version 10.9.0)
/usr/local/lib/libboost_filesystem-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libpcre.0.dylib (compatibility version 1.0.0, current version 1.1.0)
/usr/local/lib/libpcrecpp.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/local/lib/libcollada-dom2.4-dp.2.4.0.dylib (compatibility version 0.0.0, current version 2.4.0)
/usr/local/lib/libassimp.3.0.255.dylib (compatibility version 3.0.0, current version 3.0.255)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)

openravepy_int.so:

○ otool -L /usr/local/lib/python2.7/site-packages/openravepy/_openravepy_0_9/openravepy_int.so
/usr/local/lib/python2.7/site-packages/openravepy/_openravepy_0_9/openravepy_int.so:
openravepy_int.so (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
libopenrave0.9.0.dylib (compatibility version 0.0.0, current version 0.9.0)
libopenrave0.9-core.0.dylib (compatibility version 0.0.0, current version 0.9.0)
/System/Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.5)
/usr/local/lib/libboost_python-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/libboost_thread-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/libmpfr.4.dylib (compatibility version 6.0.0, current version 6.2.0)
/usr/local/lib/libgmp.10.dylib (compatibility version 12.0.0, current version 12.3.0)
/usr/lib/libxml2.2.dylib (compatibility version 10.0.0, current version 10.9.0)
/usr/local/lib/libboost_date_time-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/libboost_filesystem-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libpcre.0.dylib (compatibility version 1.0.0, current version 1.1.0)
/usr/local/lib/libpcrecpp.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/local/lib/libcollada-dom2.4-dp.2.4.0.dylib (compatibility version 0.0.0, current version 2.4.0)
/usr/local/lib/libassimp.3.0.255.dylib (compatibility version 3.0.0, current version 3.0.255)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)


Cheers!
Andrew Hundt

Robotics Engineer
National Robotics Engineering Center
Carnegie Mellon University
Work: 412-204-7250
Personal: 908-720-5501


On Tue, Mar 18, 2014 at 10:56 PM, Rosen Diankov <[hidden email]> wrote:
thanks for the pull request! i wrote some comments.

as for the segfault, can you try "ldd" on the so file and see if it is pulling in the right libraries.

best,
rosen,



2014-03-18 13:39 GMT-07:00 Andrew Hundt <[hidden email]>:
I'm trying to run the openrave production branch on OS X, but I'm running into segmentation faults.

I made the following changes to the tree to get it to compile:

After compiling and installing I ran:
python -v /usr/local/bin/openrave.py

It now appears to crash when python attempts to load openravepy_int.so:

import openravepy._openravepy_0_9 # precompiled from /usr/local/lib/python2.7/site-packages/openravepy/_openravepy_0_9/__init__.pyc
dlopen("/usr/local/lib/python2.7/site-packages/openravepy/_openravepy_0_9/openravepy_int.so", 2);
[1]    16924 segmentation fault  python -v /usr/local/bin/openrave.py

Here is the full output: 


I'm using homebrew and I've installed the homebrew version of python, as you can see from the /usr/local/Cellar/python path. I initially had some issues where the default python and related libraries were being picked up by openrave, but I believe those issues are resolved. I also rebuilt boost (with python) from source to make sure it picks up the correct version of python:

○ otool -L $(brew list boost | grep 'python.*.dylib')
/usr/local/Cellar/boost/1.55.0_1/lib/libboost_python-mt.dylib:
/usr/local/lib/libboost_python-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
/usr/local/Cellar/boost/1.55.0_1/lib/libboost_python.dylib:
/usr/local/lib/libboost_python.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)


After fixing all of those I'm not sure how to resolve the next issue with the .so segmentation fault.  I'd appreciate any help.

Cheers!
Andrew Hundt

Robotics Engineer
National Robotics Engineering Center
Carnegie Mellon University
Work: <a href="tel:412-204-7250" value="+14122047250" target="_blank">412-204-7250
Personal: <a href="tel:908-720-5501" value="+19087205501" target="_blank">908-720-5501

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Openrave-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openrave-users




------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Openrave-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openrave-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Running Open RAVE Production branch on OS X

Rosen Diankov
Administrator
i see, in that case it's not a python issue but an OSG issue.

in qtosgrave plugin, there's a line

osg::ArgumentParser arguments(0, NULL);

pehraps newer osg versions don't like that any need some dummy values? can you try to play around with it?

thanks,
rosen,





2014-03-18 20:16 GMT-07:00 Andrew Hundt <[hidden email]>:
Thanks for the help and comments, I added a reply.

It appears the source of the problem might be in a call to osg or perhaps osg itself?


If I try to simply execute "openrave" on the command line in lldb (equivalent to gdb) I get the following output:

○ lldb openrave
Current executable set to 'openrave' (x86_64).
(lldb) r
Process 25219 launched: '/usr/local/bin/openrave' (x86_64)
[plugindatabase.h:929 _SysLoadLibrary] /usr/local/share/openrave-0.9/plugins/libqtcoinrave.dylib: dlopen(/usr/local/share/openrave-0.9/plugins/libqtcoinrave.dylib, 1): Library not loaded: Inventor.framework/Versions/C/Inventor
  Referenced from: /usr/local/Frameworks/SoQt.framework/Versions/A/Libraries/libSoQt.20.5.0.dylib
  Reason: image not found
[plugindatabase.h:929 _SysLoadLibrary] /usr/local/share/openrave-0.9/plugins/libqtcoinrave.dylib: dlopen(/usr/local/share/openrave-0.9/plugins/libqtcoinrave.dylib, 1): Library not loaded: Inventor.framework/Versions/C/Inventor
  Referenced from: /usr/local/Frameworks/SoQt.framework/Versions/A/Libraries/libSoQt.20.5.0.dylib
  Reason: image not found
[plugindatabase.h:857 _LoadPlugin] failed to load: /usr/local/share/openrave-0.9/plugins/libqtcoinrave.dylib
[plugindatabase.h:929 _SysLoadLibrary] /usr/local/share/openrave-0.9/plugins/openravepy_configurationcache.dylib: dlopen(/usr/local/share/openrave-0.9/plugins/openravepy_configurationcache.dylib, 1): Library not loaded: openravepy_int.so
  Referenced from: /usr/local/share/openrave-0.9/plugins/openravepy_configurationcache.dylib
  Reason: image not found
[plugindatabase.h:857 _LoadPlugin] failed to load: /usr/local/share/openrave-0.9/plugins/openravepy_configurationcache.dylib
[textserver.h:403 main] text server listening on port 4765
[plugindatabase.h:577 Create] Failed to create name qtcoin, interface viewer
Process 25219 stopped
* thread #1: tid = 0x690467, 0x0000000110b59a5a libosg.3.2.0.dylib`osg::ArgumentParser::ArgumentParser(int*, char**) + 84, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x0000000110b59a5a libosg.3.2.0.dylib`osg::ArgumentParser::ArgumentParser(int*, char**) + 84
libosg.3.2.0.dylib`osg::ArgumentParser::ArgumentParser(int*, char**) + 84:
-> 0x110b59a5a:  cmpl   $0x2, (%rax)
   0x110b59a5d:  jl     0x110b59b0a               ; osg::ArgumentParser::ArgumentParser(int*, char**) + 260
   0x110b59a63:  movl   $0x1, %r13d
   0x110b59a69:  leaq   -0x58(%rbp), %r15
(lldb)


Here are the results of otool -L, the mac equivalent to ldd. While Boost says it is 0.0.0 the real version is 1.55.

openrave executable:

○ otool -L /usr/local/bin/openrave
/usr/local/bin/openrave:
/usr/local/lib/libboost_date_time-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/libboost_thread-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
libopenrave0.9.0.dylib (compatibility version 0.0.0, current version 0.9.0)
libopenrave0.9-core.0.dylib (compatibility version 0.0.0, current version 0.9.0)
/usr/local/lib/libmpfr.4.dylib (compatibility version 6.0.0, current version 6.2.0)
/usr/local/lib/libgmp.10.dylib (compatibility version 12.0.0, current version 12.3.0)
/usr/lib/libxml2.2.dylib (compatibility version 10.0.0, current version 10.9.0)
/usr/local/lib/libboost_filesystem-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libpcre.0.dylib (compatibility version 1.0.0, current version 1.1.0)
/usr/local/lib/libpcrecpp.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/local/lib/libcollada-dom2.4-dp.2.4.0.dylib (compatibility version 0.0.0, current version 2.4.0)
/usr/local/lib/libassimp.3.0.255.dylib (compatibility version 3.0.0, current version 3.0.255)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)

openravepy_int.so:

○ otool -L /usr/local/lib/python2.7/site-packages/openravepy/_openravepy_0_9/openravepy_int.so
/usr/local/lib/python2.7/site-packages/openravepy/_openravepy_0_9/openravepy_int.so:
openravepy_int.so (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
libopenrave0.9.0.dylib (compatibility version 0.0.0, current version 0.9.0)
libopenrave0.9-core.0.dylib (compatibility version 0.0.0, current version 0.9.0)
/System/Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.5)
/usr/local/lib/libboost_python-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/libboost_thread-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/libmpfr.4.dylib (compatibility version 6.0.0, current version 6.2.0)
/usr/local/lib/libgmp.10.dylib (compatibility version 12.0.0, current version 12.3.0)
/usr/lib/libxml2.2.dylib (compatibility version 10.0.0, current version 10.9.0)
/usr/local/lib/libboost_date_time-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/libboost_filesystem-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libpcre.0.dylib (compatibility version 1.0.0, current version 1.1.0)
/usr/local/lib/libpcrecpp.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/local/lib/libcollada-dom2.4-dp.2.4.0.dylib (compatibility version 0.0.0, current version 2.4.0)
/usr/local/lib/libassimp.3.0.255.dylib (compatibility version 3.0.0, current version 3.0.255)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)


Cheers!
Andrew Hundt

Robotics Engineer
National Robotics Engineering Center
Carnegie Mellon University
Work: <a href="tel:412-204-7250" value="+14122047250" target="_blank">412-204-7250
Personal: <a href="tel:908-720-5501" value="+19087205501" target="_blank">908-720-5501


On Tue, Mar 18, 2014 at 10:56 PM, Rosen Diankov <[hidden email]> wrote:
thanks for the pull request! i wrote some comments.

as for the segfault, can you try "ldd" on the so file and see if it is pulling in the right libraries.

best,
rosen,



2014-03-18 13:39 GMT-07:00 Andrew Hundt <[hidden email]>:
I'm trying to run the openrave production branch on OS X, but I'm running into segmentation faults.

I made the following changes to the tree to get it to compile:

After compiling and installing I ran:
python -v /usr/local/bin/openrave.py

It now appears to crash when python attempts to load openravepy_int.so:

import openravepy._openravepy_0_9 # precompiled from /usr/local/lib/python2.7/site-packages/openravepy/_openravepy_0_9/__init__.pyc
dlopen("/usr/local/lib/python2.7/site-packages/openravepy/_openravepy_0_9/openravepy_int.so", 2);
[1]    16924 segmentation fault  python -v /usr/local/bin/openrave.py

Here is the full output: 


I'm using homebrew and I've installed the homebrew version of python, as you can see from the /usr/local/Cellar/python path. I initially had some issues where the default python and related libraries were being picked up by openrave, but I believe those issues are resolved. I also rebuilt boost (with python) from source to make sure it picks up the correct version of python:

○ otool -L $(brew list boost | grep 'python.*.dylib')
/usr/local/Cellar/boost/1.55.0_1/lib/libboost_python-mt.dylib:
/usr/local/lib/libboost_python-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
/usr/local/Cellar/boost/1.55.0_1/lib/libboost_python.dylib:
/usr/local/lib/libboost_python.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)


After fixing all of those I'm not sure how to resolve the next issue with the .so segmentation fault.  I'd appreciate any help.

Cheers!
Andrew Hundt

Robotics Engineer
National Robotics Engineering Center
Carnegie Mellon University
Work: <a href="tel:412-204-7250" value="+14122047250" target="_blank">412-204-7250
Personal: <a href="tel:908-720-5501" value="+19087205501" target="_blank">908-720-5501

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Openrave-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openrave-users





------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Openrave-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openrave-users
Loading...