-
Notifications
You must be signed in to change notification settings - Fork 568
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
iOS compilation fails! #1344
Comments
Well I've managed to get around the code-signing / bundle-identification issues with the following flag SDKROOT=$(xcrun --sdk iphoneos --show-sdk-path) cmake -D NO_PTEX=1 -D NO_DOC=1 \
-D NO_OMP=1 -D NO_TBB=1 -D NO_CUDA=1 -D NO_OPENCL=1 -D NO_CLEW=1 \
-D CMAKE_TOOLCHAIN_FILE=../cmake/iOSToolchain.cmake \
.. cmake --build . -- CODE_SIGNING_ALLOWED=NO But ran into a different issue: [ 39%] Building CXX object opensubdiv/osd/CMakeFiles/osd_gpu_obj.dir/cpuGLVertexBuffer.cpp.o
/Users/.../OpenSubdiv/opensubdiv/osd/cpuGLVertexBuffer.cpp:25:10: fatal error: 'glLoader.h' file not found
25 | #include "glLoader.h"
| ^~~~~~~~~~~~
1 error generated.
make[2]: *** [opensubdiv/osd/CMakeFiles/osd_gpu_obj.dir/cpuGLVertexBuffer.cpp.o] Error 1
make[1]: *** [opensubdiv/osd/CMakeFiles/osd_gpu_obj.dir/all] Error 2
make: *** [all] Error 2 |
Compilation is successful by setting the |
Filed as internal issue #OSD-454 |
Good to hear that you got that working. Yes, Metal is the best supported way to go on iOS and other Apple platforms. |
As stated in the README.md, I tried configuring for an iOS target:
$ SDKROOT=$(xcrun --sdk iphoneos --show-sdk-path) cmake -D NO_PTEX=1 -D NO_DOC=1 \ -D NO_OMP=1 -D NO_TBB=1 -D NO_CUDA=1 -D NO_OPENCL=1 -D NO_CLEW=1 \ -D CMAKE_TOOLCHAIN_FILE=../cmake/iOSToolchain.cmake -G Xcode \ ..
but the following error occured:
I tried fixing it with commit cf96302 & it worked... almost!
Alas, building that configuration was unsuccessful:
Click To Expand
The text was updated successfully, but these errors were encountered: