diff --git a/litecam/CMakeLists.txt b/litecam/CMakeLists.txt index 559e379..6bd4b08 100644 --- a/litecam/CMakeLists.txt +++ b/litecam/CMakeLists.txt @@ -28,6 +28,7 @@ elseif (UNIX AND NOT APPLE) src/CameraPreviewLinux.cpp ) elseif (APPLE) + set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64") # Ensure that Objective-C++ source files are compiled as Objective-C++ set(LIBRARY_SOURCES src/CameraMacOS.mm diff --git a/litecam/README.md b/litecam/README.md index 8ffcd2d..fca689e 100644 --- a/litecam/README.md +++ b/litecam/README.md @@ -67,6 +67,9 @@ LiteCam is a lightweight, cross-platform library for capturing RGB frames from c mkdir build && cd build cmake .. cmake --build . + + ## macOS: Use the lipo tool to inspect the architectures included in the .dylib + lipo -info liblitecam.dylib ``` 3. Link the library to your project. diff --git a/litecam/dist/lib/macos/liblitecam.dylib b/litecam/dist/lib/macos/liblitecam.dylib index 6a9fb68..dbaf3c1 100755 Binary files a/litecam/dist/lib/macos/liblitecam.dylib and b/litecam/dist/lib/macos/liblitecam.dylib differ