Skip to content
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

build instructions for macOS #1835

Open
matatata opened this issue Apr 11, 2024 · 3 comments
Open

build instructions for macOS #1835

matatata opened this issue Apr 11, 2024 · 3 comments

Comments

@matatata
Copy link

matatata commented Apr 11, 2024

Hi,

since I've worked a bit on some smaller issues on the macOS build I sometimes get requests of users not being able to use my macOS build https://github.com/matatata/opentrack/releases, because they're not signed.

Perhaps you could add some instructions in the README, so they interested MAC users can build opentrack themselves: Here's I am able to successfully build a macOS opentrack:

Prerequisits: Install macports

export PATH=$PATH:/opt/local/bin:/opt/local/libexec/qt5/bin
export OTR_OSX_ARCH=arm64 # this is not necessary when building on Intel-Mac or perhaps set to x86_64
sudo port install qt5 cmake ImageMagick
git clone --recurse-submodules https://github.com/opentrack/opentrack.git
cd opentrack cmake -S . -B build --toolchain cmake/apple.cmake
cd build
make install
open install # in this folder you should find the opentrack.app

Greetings, Matatata

@matatata
Copy link
Author

matatata commented Apr 18, 2024

I'll first try messing around with the linux build instructions (https://github.com/opentrack/opentrack/wiki/Building-on-Linux). I did not know about ccmake and I'm currently trying to get the modules that rely on opencv to build

@matatata
Copy link
Author

matatata commented Apr 18, 2024

OK that helped. The linux instructions helped a lot. Setting the OpenCV-Dir is crucial. Now I have a PointTracker! This is how it worked for me:

Install macports https://www.macports.org/

export PATH=$PATH:/opt/local/bin:/opt/local/libexec/qt5/bin
export OTR_OSX_ARCH=arm64 # build arm64 . For intel set to x86_64 or remove
sudo port selfupdate
sudo port install qt5 cmake ImageMagick create-dmg opencv4
git clone --recurse-submodules https://github.com/opentrack/opentrack.git
cd opentrack

export OpenCV_DIR=/opt/local/libexec/opencv4/cmake
cmake -S . -B build --toolchain cmake/apple.cmake
cd build
make install

@matatata
Copy link
Author

matatata commented Apr 20, 2024

I finally managed to make a build that even includes the neuralnet-tracker. See https://matatata.github.io/MacOpentrack.html

It is great to be able to track using a regular webcam on macOS too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant