-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Open3D-based c++ app: builds OK, will not run [Xcode macOS arm64] #6923
Comments
I made a little progress investigating this. Or rather I dug in to my first bullet point issue: “Using Xcode instead of Cmake.” I hoped that if I used cmake, it might “just work.” I was able to make a Then I tried to link the Open3D When I tried to run it, I hit macOS code-signing violations (for Open3D and (I think) “tbb”?) which I manually overrode, see below. But when I was finally able to run my app, it exited with:
As before any thoughts/hint would be appreciated. |
After the two failures above — trying to link my app to Open3D using Xcode, and then using CMake — I wondered if I might have better luck building my own version of Open3D from latest sources. (To avoid any mysterious incompatibilities by building, linking, and running on the same machine.) When I tried to do that, I ran into an apparently unrelated problem (something to do with “compact unwind compressed function offset doesn't fit in 24 bits” during build from source [macOS, ARM64] #6931 |
I remain curious about how to do the original goal “Is anyone building c++ code using Open3D in Xcode on macOS arm64?” But as a practical matter, @rxba's suggestions — upgrade to macOS Sonoma and follow the open3d-cmake-find-package example — have allowed me to work around this issue. |
Checklist
main
branch).My Question
Is anyone building c++ code using Open3D in Xcode on macOS arm64?
I assume my problem is specific to that case. The last time I tried something like this (in March #6707) it seemed to compile, but not build. Now I can compile and build but not run. Trying to run my “command line tool” in Terminal immediately exits with:
I am using Xcode’s Link Binary With Libraries to bundle libOpen3D.dylib (from open3d-devel-darwin-arm64-0.18.0+c219d82.tar.xz from https://github.com/isl-org/Open3D/releases/tag/main-devel) with my binary. The test code is from https://github.com/isl-org/Open3D/blob/main/examples/cpp/Draw.cpp
I have no experience using Open3D from c++, only a bit using it with Python. A few potential issues:
If anyone is familiar with these symptoms, I could use some hints.
The text was updated successfully, but these errors were encountered: