Installation Mac
We have 2 installation instruction sets:
Pre-built binaries (recommended)
Dependencies are prebuilt and stored on a server and downloaded by cmake using
FetchContent
featureTo rebuild dependencies:
This will download/build/install dependencies in a
tmp
directory. The result is a*_macdep.tar.gz
file.We target macOS 10.11 and above by using
MACOSX_DEPLOYMENT_TARGET="10.11"
ffmpeg 4.3 as shared libraries without the GPL option. Path in the
dylib
is changed to use@rpath
for easier linking.OpenCV 3.4.13 as a static library, only core, imgproc, imgcodecs and highgui modules are built.
Cereal 1.3.0, header only
spdlog 1.8.2, header only but built as static library for faster compile
Zdepth (commit 9b333d9aec520 which includes a patch to generate
zdepthConfig.cmake
)yaml-cpp 0.6.3 as a static library
libzmq 4.3.4 as a static library
cppzmq 4.7.1, header only
Downloading libraries and building
This will provide download instructions for each library
Note: You will not be able to stream a connected Kinect on macOS.
Installation instructions do not include the Azure Kinect SDK as macOS is not yet supported by Azure Kinect SDK .
Problems?! (shocker)
Reach out on our discord and we will get you going!
Pre-built binaries installation (recommended)
1.0 Pre-Installation Requirements
1.1 Install Xcode
1.2 Install Xcode command line tools
1.3 Install cmake
2.0 Download and Install SSP
2.1 Download and make SSP
h264_videotoolbox codec is used for hardware codec on macOS
3.0 Use it!
Now checkout Streaming a Video or Streaming a Dataset to see how you can stream local files with Sensor Stream Server to Sensor Stream Client.
Downloading libraries and building (manual)
Mac installation process was performed using vcpkg to install most dependencies. Tested on MacOS 11.01, Visual Studio Code 1.53.0.
1.0 Install vcpkg
1.1 Follow vcpkg installation instructions available here . The main vcpkg folder we will refer to as vcpkg root directory.
1.2 In your terminal window, change directories to the vcpkg root directory. Then run ./vcpkg integrate install
to configure Visual Studio Code as well as automatically link.
The response should be something similar to:
2.0 Install dependencies
2.1 Install required packages for vcpkg to be able to install its dependencies
brew install libtool
brew install nasm
brew install pkg-config
(there may be more packages that you are requested to install with brew in addition to those listed above, vcpkg will let you know)
2.2 Install package to pull data for streaming datasets and videos
brew install wget
2.3 Install vcpkg dependencies
In your vcpkg root directory run the following:
(Again, you might be prompted to install packages with homebrew)
3.0 Build and install remaining dependencies
3.1 In the code snippet below we install cmake (not necessary if already installed)
Zdepth
Zdepth is an encoder for depth frames. This library can be used to compress depth data.
3.2 Clone the Zdepth repo (in the snippet below it has been cloned to the home folder but it can be cloned anywhere).
3.3 Open CMakeLists.txt in Visual Studio Code and configure and build according to your desired profile (x64; Debug or Release) using CMake Tools then build.
Example of output of configuring Cmake in VSCode for Debug and building:
/usr/local/bin/cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++ -H/Users/adammac/dev/Zdepth -B/Users/adammac/dev/Zdepth/build -G "Unix Makefiles"
(^ the paths above would change depending on where you cloned Zdepth, where you installed cmake, what compiler you chose, how you configured building, etc)
In VS Code, the above outputs to /build.
3.4 We now change to the build directory (or wherever cmake was pointed to), runmake
and make install
.
Example output of running make and make install:
4.0 Building Sensor Stream Pipe
4.1 Clone the SSP repo
Due to the differences in the build process, the MacOS CMake file is named CMakeListsMacOS.txt at the root of the SSP repo. Thus, you should:
4.2 Delete CMakeLists.txt
4.3 Rename CMakeListsMacOS.txt to CMakeLists.txt.
4.4 Open CMakeLists.txt in VS
4.5 Update
the include ("C://Users//Andre//source//repos//vcpkg//installed//x64-windows//include")
and link paths ("C://Users//Andre//source//repos//vcpkg//installed//x64-windows//lib")
To follow the same path of where you cloned vcpkg in Step 1
4.6 Now we can build Sensor Stream Pipe. In /Sensor-Stream-Pipe run the following commands in terminal:
5.0 Use it!
Now checkout Streaming a Video or Streaming a Dataset to see how you can stream local files with Sensor Stream Server to Sensor Stream Client.
Last updated