Compile Mac
Andrea edited this page Sep 14, 2015
·
4 revisions
These instructions are to compile from your own mac computer:
- Install XCode (the g++ compiler and git are distributed therein)
- Install Command Line Tools for Xcode (google how as it changes according to your OS version)
- Install homebrew: http://brew.sh (package manager to install libraries)
- Install Qt Creator: link IDE for C++ and GLSL Finally we use homebrew to install all dependencies (execute these one by one in terminal):
brew install cmake
brew install eigen
brew install pkgconfig
brew install homebrew/science/opencv
When we start working on OpenGL you will also need these (not necessary for ray tracing):
brew install homebrew/versions/glfw2
brew install glew
brew install pkgconfig
brew install anttweakbar
open Terminal.app and type:
~: git clone https://github.com/luckysama/icg.git
You can also download a zip archive from the github icg homepage (discouraged).
~: git clone https://github.com/luckysama/icg.git
~: cd icg
~/icg: open -a "Qt\ Creator.app" CMakeLists.txt
Important note: the CMakeLists to be opened is the one in the main icg folder and not the one in the raytrace subfolder!
- download the zip or clone the repository as shown above
- open Qt Creator.app
- browse the menu "file -> Open File or Project..."
- select icg/CMakeLists.txt
I also recommend you to create an alias within your ~/.bashrc or ~/.bash_profile (you will need to open a new terminal for changes to take effect); this will allow you to open the project in the terminal as qtcreator CMakeLists.txt:
alias qtcreator="open -a Qt\ Creator.app"
©Department of Computer Science, University of Victoria, 2015.