-
Notifications
You must be signed in to change notification settings - Fork 660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
octovis compile error with OSX: ld: library not found for -lQGLViewer #113
Comments
The instructions for OSX are definitely not complete and might need some manual interventions. It's particularly not clear if you use a packages manager or manual compilation for dependencies. In this case libQGLViewer is not found during linking. If you don't need the GUI (octovis) then you can skip its compilation. For easiest dependency resolution I would suggest to use Ubuntu with the corresponding instructions. |
Unfortunately, I do need this visualization tool to run on OSX. And I have tried homebrew and manual compilation both for libQGLviewer. |
Unfortunately, I can only guess since I'm not running OSX. It looks like a different version is linked than the one found, unless you also have OctoMap in Maybe the solution proposed in #96 fixes the problem, or the Mac-specific changes discussed in #24. In the latter issue there's also a tutorial linked which successfully compiles using Macports. |
In |
Any idea on how a cleaner solution could look like?
|
I'm not sure.When compiling on OSX, maybe we could set QGLViewer_INCLUDE_DIR and QGLViewer_LIBRARY_DIR to |
I had a similar issue. In case this is helpful for anyone else, I am including end-to-end instructions that got me up and running with the octovis executable on macOS Sierra.
Note that I was almost successful in running octovis with Qt5. But when I tried to load a file (either on the command line or through the GUI), octovis crashed for me with the error
Note that I had to build libQGLViewer/QGLViewer from source because the command
At this point, I am able to successfully run the octovis executable 😄 Of course, these aren't the cleanest instructions ever, but they worked for me. Hopefully someone who has more expertise with CMake and make on macOS can recommend a cleaner fix that doesn't require any manual editing. UPDATE (April 30, 2019): I am so happy I wrote my original post 2 years ago. It just saved me a ton of time 😆 That being said, I had to do a couple of extra steps to get up and running on macOS 10.14.4, with Xcode version 10.2.1. I needed these extra lines in my QGLViewer.pro file, as suggested here:
In contrast to my original post above, I was able to build libQGLViewer.dylib simply by running
|
@mikeroberts3000 thanks for this description.. I'm stuck on qmake though, I'm getting the error atal error: 'QOpenGLWidget' file not found. Any thoughts? |
hi, I'm using OSX EI Capitan 10.11.3.And i followed the install instruction to compile the project, then i got this error :
ld: library not found for -lQGLViewer
I have been searching for solution for a while, but with no luck. Could you please have a look at this problem?
The text was updated successfully, but these errors were encountered: