We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
看起是 sdk/lib/macOS/libOrbbecSDK.dylib 动态库有问题,编译架构不一致导致的? 请问要怎么解决?
$ make -j4 [ 28%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/error.cpp.o [ 28%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/device.cpp.o [ 28%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/pyorbbecsdk.cpp.o [ 28%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/context.cpp.o [ 35%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/filter.cpp.o [ 42%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/frame.cpp.o [ 50%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/pipeline.cpp.o [ 57%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/properties.cpp.o [ 64%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/record_playback.cpp.o [ 71%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/sensor.cpp.o [ 78%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/stream_profile.cpp.o [ 85%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/types.cpp.o /Users/hedy/Develop/code/python-projects/orbbec-sdk/src/pyorbbecsdk/types.cpp:213:60: warning: braces around scalar initializer [-Wbraced-scalar-init] 213 | py::array_t<double, py::array::c_style> result({3}); | ^~~ /Users/hedy/Develop/code/python-projects/orbbec-sdk/src/pyorbbecsdk/types.cpp:228:60: warning: braces around scalar initializer [-Wbraced-scalar-init] 228 | py::array_t<double, py::array::c_style> result({3}); | ^~~ /Users/hedy/Develop/code/python-projects/orbbec-sdk/src/pyorbbecsdk/types.cpp:243:60: warning: braces around scalar initializer [-Wbraced-scalar-init] 243 | py::array_t<double, py::array::c_style> result({9}); | ^~~ /Users/hedy/Develop/code/python-projects/orbbec-sdk/src/pyorbbecsdk/types.cpp:258:60: warning: braces around scalar initializer [-Wbraced-scalar-init] 258 | py::array_t<double, py::array::c_style> result({9}); | ^~~ /Users/hedy/Develop/code/python-projects/orbbec-sdk/src/pyorbbecsdk/types.cpp:279:60: warning: braces around scalar initializer [-Wbraced-scalar-init] 279 | py::array_t<double, py::array::c_style> result({3}); | ^~~ /Users/hedy/Develop/code/python-projects/orbbec-sdk/src/pyorbbecsdk/types.cpp:294:60: warning: braces around scalar initializer [-Wbraced-scalar-init] 294 | py::array_t<double, py::array::c_style> result({9}); | ^~~ /Users/hedy/Develop/code/python-projects/orbbec-sdk/src/pyorbbecsdk/types.cpp:309:60: warning: braces around scalar initializer [-Wbraced-scalar-init] 309 | py::array_t<double, py::array::c_style> result({9}); | ^~~ /Users/hedy/Develop/code/python-projects/orbbec-sdk/src/pyorbbecsdk/types.cpp:358:59: warning: braces around scalar initializer [-Wbraced-scalar-init] 358 | py::array_t<float, py::array::c_style> result({5}); | ^~~ [ 92%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/utils.cpp.o 8 warnings generated. [100%] Linking CXX shared module pyorbbecsdk.cpython-39-darwin.so ld: unknown file type in '/Users/hedy/Develop/code/python-projects/orbbec-sdk/sdk/lib/macOS/libOrbbecSDK.dylib' c++: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [pyorbbecsdk.cpython-39-darwin.so] Error 1 make[1]: *** [CMakeFiles/pyorbbecsdk.dir/all] Error 2 make: *** [all] Error 2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
看起是 sdk/lib/macOS/libOrbbecSDK.dylib 动态库有问题,编译架构不一致导致的?
请问要怎么解决?
$ make -j4
[ 28%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/error.cpp.o
[ 28%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/device.cpp.o
[ 28%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/pyorbbecsdk.cpp.o
[ 28%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/context.cpp.o
[ 35%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/filter.cpp.o
[ 42%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/frame.cpp.o
[ 50%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/pipeline.cpp.o
[ 57%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/properties.cpp.o
[ 64%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/record_playback.cpp.o
[ 71%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/sensor.cpp.o
[ 78%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/stream_profile.cpp.o
[ 85%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/types.cpp.o
/Users/hedy/Develop/code/python-projects/orbbec-sdk/src/pyorbbecsdk/types.cpp:213:60: warning: braces around scalar initializer [-Wbraced-scalar-init]
213 | py::array_t<double, py::array::c_style> result({3});
| ^~~
/Users/hedy/Develop/code/python-projects/orbbec-sdk/src/pyorbbecsdk/types.cpp:228:60: warning: braces around scalar initializer [-Wbraced-scalar-init]
228 | py::array_t<double, py::array::c_style> result({3});
| ^~~
/Users/hedy/Develop/code/python-projects/orbbec-sdk/src/pyorbbecsdk/types.cpp:243:60: warning: braces around scalar initializer [-Wbraced-scalar-init]
243 | py::array_t<double, py::array::c_style> result({9});
| ^~~
/Users/hedy/Develop/code/python-projects/orbbec-sdk/src/pyorbbecsdk/types.cpp:258:60: warning: braces around scalar initializer [-Wbraced-scalar-init]
258 | py::array_t<double, py::array::c_style> result({9});
| ^~~
/Users/hedy/Develop/code/python-projects/orbbec-sdk/src/pyorbbecsdk/types.cpp:279:60: warning: braces around scalar initializer [-Wbraced-scalar-init]
279 | py::array_t<double, py::array::c_style> result({3});
| ^~~
/Users/hedy/Develop/code/python-projects/orbbec-sdk/src/pyorbbecsdk/types.cpp:294:60: warning: braces around scalar initializer [-Wbraced-scalar-init]
294 | py::array_t<double, py::array::c_style> result({9});
| ^~~
/Users/hedy/Develop/code/python-projects/orbbec-sdk/src/pyorbbecsdk/types.cpp:309:60: warning: braces around scalar initializer [-Wbraced-scalar-init]
309 | py::array_t<double, py::array::c_style> result({9});
| ^~~
/Users/hedy/Develop/code/python-projects/orbbec-sdk/src/pyorbbecsdk/types.cpp:358:59: warning: braces around scalar initializer [-Wbraced-scalar-init]
358 | py::array_t<float, py::array::c_style> result({5});
| ^~~
[ 92%] Building CXX object CMakeFiles/pyorbbecsdk.dir/src/pyorbbecsdk/utils.cpp.o
8 warnings generated.
[100%] Linking CXX shared module pyorbbecsdk.cpython-39-darwin.so
ld: unknown file type in '/Users/hedy/Develop/code/python-projects/orbbec-sdk/sdk/lib/macOS/libOrbbecSDK.dylib'
c++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [pyorbbecsdk.cpython-39-darwin.so] Error 1
make[1]: *** [CMakeFiles/pyorbbecsdk.dir/all] Error 2
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: