-
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
CMake for Mac OSX using Homebrew #24
base: devel
Are you sure you want to change the base?
Conversation
Conflicts: octomap/CHANGELOG.txt octomap/CMakeLists.txt
I need some feedback from other Mac users before merging this in. Will this still work with QGLViewer compiled from source, or installed through Macports (if that's relevant at all)? |
I checked out this website: This framework must be linked appropriately, and I believe Homebrew gives an idea in "brew info libqglviewer": Thus, having a libQGLViewer installed from source, without Homebrew, should work. I have not tested, however, but I may this week, if needed. |
Yes, it would be good if you (or anyone else on OSX) could test of it still works with a source installation, particularly the source version of QGLViewer supplied in src/extern. |
I wanna use Octomaps under MacOSX and have the same issue (Test 14/14 test_color_tree is failing) with actual git clone, but I used sudo port install for the process. What exactly should I test? (no deep understanding from my side, sorry) |
@balzer82: Following your tutorial on YouTube, it seems like compiling the latest release of OctoMap works nice using MacPorts. Could you test if the osx branch by @smcgill3 also works with MacPorts?
For the unit test failing, please use Issue #25 |
Checkout, cmake .. and make works until: [ 58%] Building CXX object octovis/CMakeFiles/octovis-shared.dir/src/ColorOcTreeDrawer.cpp.o
Linking CXX shared library ../../lib/liboctovis.dylib
ld: framework not found QGLViewer
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [../lib/liboctovis.dylib] Error 1
make[1]: *** [octovis/CMakeFiles/octovis-shared.dir/all] Error 2
make: *** [all] Error 2 |
I'm on OS X 10.8.4, building QGLViewer from the source provided in The QGLViewer packaged with octovis installs by default in OS X will only look for frameworks in In order to compile successfully from this fork I had to Assuming the right way to solve this is to modify CMakeLists.txt to provide an explicit path to |
This commit fixes OctoVis linking errors on a Mac OSX system using Homebrew for package management. Previously, the QGLViewer framework was not used, but an invalid -lQGLViewer flag.