-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Apple Native #1530
Apple Native #1530
Conversation
Closes #1314 |
Compilation steps: Install:
Then run: brew install cmake gcc@12 [email protected] tbb@2020 eigen gdal boost cgal libomp
brew link tbb@2020
python3.8 -m pip install virtualenv
python3.8 -m virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
cd SuperBuild
mkdir build
cmake ..
make -j8 Finally: cd /tmp
pip download GDAL
tar -xpzf GDAL-3.5.1.tar.gz
cd GDAL-3.5.1
python setup.py build_ext --gdal-config /opt/homebrew/bin/gdal-config
python setup.py build
python setup.py install Smoke test:
|
Code signing./ notarization is also a terrible mess, I'm unable to see how this could be automated with ease. Several tools that should allow one to make an automated build require UI interaction to allow permission / ask passwords (e.g. access to the keychain). |
Good to go. |
In Native Install (MacOS), . /run.sh is not running. It stops at "from opensfm.sensors import sensor_data". I think it is because there are no files or folders for opensfm, sensors, sensor_data, etc. in the odm folder. I am new to python, so I don't know how to solve this problem. ======
|
The recommended way to run ODM on Apple is by using docker. 👍 |
I understand that Python beginners should use a docker... I got an M1 Mac and am considering using docker to run ODM. I will let you know the detailed situation later, since I cannot use M1 Mac until the end of the week. |
I get same error "ModuleNotFoundError: No module named 'opensfm' Intel Core i5 |
Changes that allow ODM to compile/run natively on MacOS. Tested on M1 so far. I will test on Intel soon too.
I'm debating how to best package this for deployment, and how to automate M1 builds (GitHub runners do not provide M1 runners, we would need to rent one, which I'd rather not...).
One needs to install dependencies via homebrew, including:
I didn't write down the full list (ups).