dyld: Symbol not found: regex_traits
I just installed gazebo7 on my mac with osx 10.10.5 using brew, and it's successfully built/installed; but when I try to run it I get this error message (see below). Do I need to setup a PATH or install something else? TIA!
$ gazebo
dyld: Symbol not found: _ZNK5boost9redetail31cppregextraitsimplementationIcE17transformprimaryEPKcS4_ Referenced from: /usr/local/opt/sdformat3/lib/libsdformat.3.dylib Expected in: /usr/local/opt/boost/lib/libboost_regex-mt.dylib in /usr/local/opt/sdformat3/lib/libsdformat.3.dylib Trace/BPT trap: 5
Asked by Al B on 2016-01-14 17:31:44 UTC
Answers
Found a solution: it's either sdformat (version 2.2) or boost, since gazebo updates you to the latest version of boost, or a combination of the two. It might be enough to just recompile everything with the same boost version.
What I did, step-by-step was uninstall sdf, switch back to my previous version of boost, and rebuild everything.
brew uninstall sdformat
brew uninstall sdformat4
brew uninstall sdformat3
brew info boost
brew switch boost 1.58.0 (your previous version may vary...)
brew install sdformat3
brew link sdformat3
brew install gazebo7
Probably it is worth trying just removing and re-installing sdformat3 with the newest boost to fix the issue.
Asked by helenol on 2016-01-15 09:09:04 UTC
Comments
Unfortunately, your steps didn't fix the problem for me. However, today I tried to install everything again from HEAD (i.e. brew install gazebo7 --HEAD) and it now builds/launches.
Asked by Al B on 2016-01-18 14:30:49 UTC
Comments
Having the same issue, would love to have a resolution! Additional info: gazebo7 installs sdformat4 as a dep, but doesn't link it and won't compile without sdformat3 being linked.
Asked by helenol on 2016-01-15 04:55:11 UTC
Please note that gazebo7 has not been released yet. I would recommended not to use it except if you want to contribute with development.
Asked by Jose Luis Rivero on 2016-01-15 12:11:46 UTC