-
Notifications
You must be signed in to change notification settings - Fork 6
Compiling on MacOS
Install Xcode from the App Store.
Once Xcode has been successfully installed, you have to install Xcode Command Line Tools. Open a terminal and run:
$ xcode-select --install
Some packages need headers from Xcode but, since MacOS Mojave (10.14), they are not placed in usr/include
by default. To fix it, you have to run a legacy installer that the own Xcode provides on /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
.
Install Homebrew by running on a terminal:
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
3DCurator makes use of some libraries. To install them you can use brew. So open a terminal and run:
$ brew install cmake boost opencv qt vtk itk
Add Qt to the path (if you don't use zsh, you must change .zshrc by .bashrc):
$ echo 'export PATH="/usr/local/opt/qt/bin:$PATH"' >> ~/.zshrc
Last libraries version tested are:
- CMake 3.16.3
- Boost 1.72.0
- OpenCV 4.2.0
- Qt 5.14.1
- VTK 8.2.0
- ITK 5.0.1
Clone the repository with the source code by running on terminal:
$ git clone https://github.com/fblupi/3DCurator.git
You can also fork the repository and use ssh to clone it:
$ git clone [email protected]:your-github-user/3DCurator.git
Create a build folder and generate makefile
:
$ mkdir build
$ cd build
$ cmake ..
Generate executable:
$ make
Run it from Finder by opening the generated 3DCurator.app file or running in a terminal:
$ 3DCurator.app/Contents/MacOS/3DCurator
If you have some error during this process, please read the FAQ before contacting us.