Code::Blocks For Mac



Welcome to the official Wiki for Code::Blocks. Windows Ubuntu Mac OS X Fedora more. How to install CodeBlocks on Mac? A stepwise procedure to use CodeBlocks on Mac OS X by setting up Xcode and Command Line Tools.

About the App

  • App name: Code::Blocks
  • App description: codeblocks (App: CodeBlocks.app)
  • App website: http://www.codeblocks.org

Install the App

  1. Press Command+Space and type Terminal and press enter/return key.
  2. Run in Terminal app:
    ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)' < /dev/null 2> /dev/null ; brew install caskroom/cask/brew-cask 2> /dev/null
    and press enter/return key.
    If the screen prompts you to enter a password, please enter your Mac's user password to continue. When you type the password, it won't be displayed on screen, but the system would accept it. So just type your password and press ENTER/RETURN key. Then wait for the command to finish.
  3. Run:
    brew cask install codeblocks
Code::Blocks

Codeblocks For Microsoft Surface Book

Done! You can now use Code::Blocks.

Similar Software for Mac

Code

I use Code::Blocks on the Mac and wanted to be able to use it to compile an OpenFrameworks project. I hate using Xcode and the more recent version of Code::Blocks for Mac works pretty well.

Blocks

Code Blocks For Mac Os

I saw a few people asking how to make this work so I thought I’d share how I got the following configuration to compile:
Mac OSX 10.7.5
Xcode 4.6.3
CodeBlocks 12.11 SP1 (the About page shows the date Dec 27, 2012)
OpenFramework 0.8.0 (I downloaded the Mac OSX Xcode version).

All I’ve tested was getting the GraphicsExample to compile and run in Debug mode. Hopefully, this solution will be more generally helpful. The only limitation is that the Xcode version of OF is only compiled for 32-bit architectures. I’m not sure why OF has that limitation.

Step 1) Using Xcode, compile the OpenFrameworks libraries
Follow the instructions here: http://www.openframeworks.cc/setup/xcode/
I didn’t want to try and compile the OF libraries using C::B.

Step 2) Create the .cbp Code::Blocks project file.
Put the .cbp file in the directory with the example you want to compile.
For the GraphicsExample, I created the file $(OF_DIRECTORY)/examples/graphics/graphicsExample/GraphicsExample.cbp with the following contents:

Note the -m32 parameter which forces the compiler and linker to compile for 32 bit.

Step 3) Move fmodex.dylib to the executable directory
From the graphicsExample directory run the following command:

Step 4) Run the example

Hopefully this will be successful for you!

Jim