Description: Projects about computer graphics include upsampling, rasterizing, and geometric modeling techniques (Bezier curves and surfaces using de Casteljau algorithm).
Look at this Tutorial if you want to skip reading or you have any problems with setting up.
- Make sure that the latest Xcode.app is installed through the Mac app store
- Clone your assignment repository from GitHub (ssh is recommended)
- Open your Terminal and use
cdto change directory into the homework folder - Create a folder called
xcode, and CD into it:mkdir xcode; cd xcode
(Remember to delete or replace the originalxcodefolder) - Setup cmake for XCode (while inside the
xcodefolder):cmake -G Xcode .. - Open
Finderand navigate to thexcodefolder - Double-click on the
<Project Name>.xcodeprojfile to open the project in XCode (it has a blue icon with a pen and paintbrush) - Build the project by clicking
Product > Buildon the top bar of your screen - Click on
ALL_BUILD, located near the top right of Xcode - Click
Edit Scheme - Select
Runon the sidebar - Select
Infoon the top bar of theRunpage - Set
Executableto the executable (in the case of Basics, it isquad_test) - Select
Arguments(insideEdit Scheme > Run) to specify arguments (not necessary for Basics) - Select
Options(insideEdit Scheme > Run) and specify the working directory to be the xcode folder. - Press the play button to compile and launch the program
- If the C/C++ compiler can't be found when running cmake (step 5 above), try specifying the compiler with environment variables:
CC=gcc CXX=g++ cmake -G Xcode ..