====== Building the Orx library on a Mac with Code::Blocks ====== You can use Code::Blocks on a Mac in order to build the Orx library. I will assume that you have covered the step at [[en:tutorials:orx:mac:cloning_and_building_orx_on_mac|Cloning and building the Orx library on the Mac]] but have come here because you would rather use Code::Blocks than gmake. ===== Downloading Code::Blocks for Mac ===== If you don't have Code::Blocks yet, you can download from here: http://www.codeblocks.org/downloads/binaries#mac Unlike Codelite, Code::Blocks version 13.12 (the last from 2013) will happily work on all versions of Mac OS X. If you don't want to upgrade your OS to try Codelite, try Code::Blocks instead. ===== Building Orx ===== Launch Code::Blocks. If this is the first time you have launched it, you will be asked what compiler to use: {{ tutorials:orx:mac:codeblocks-mac-select-compiler.gif |}} Both compilers listed will alias back to the same one on the Mac. So you can just pick the LLVM if you wish. {{ tutorials:orx:mac:codeblocks-mac.gif |}} Use Code::Blocks to open the workspace at ''orx/code/build/mac/codeblocks'': {{ tutorials:orx:mac:codeblocks-mac-open-orx-workspace.gif |}} Build the default config of ''Debug'' by selecting the ''Build Workspace'' menu from the ''Build'' menu. Confirm the output of the build to ensure everything built correctly: {{ tutorials:orx:mac:codeblocks-mac-build-output.gif |}} Now to change from the ''Debug|x64'' build to the ''Profile|x64'' build on the ''Workspace'' tab. Then build again. Finally, switch to the ''Release|x64'' configuration and build again. {{section>en:tutorials:orx:mac:finding_the_orx_libraries_for_mac&nofooter&noeditbutton}}