I just installed Code::Blocks on my Macbook Air that runs OS X Lion and I can’t get it to work.
At first, the problem was that I didn’t have a C compiler installed, so I downloaded the developer tools, but now I’m encountering another problem: whenever I try to “Run and build” my test application, I get the following message: “Information: It seems that this project has not been built yet. Do you want to build it now?”.
I can then press “Yes”, “No” or “Cancel”. I obviously press “Yes”, but that window keeps popping up over and over asking me the same question.
Also, when I try to quit Code::Blocks by using the Codeblocks menu and selecting “Quit and close all windows”, it says the application has closed unexpectedly (and then I can either reopen, ignore or report).
I’m using version 10.05 of Code::Blocks.
I just want Code::Blocks to work like it does on my Linux system.
I too had a similar problem. Mac OS X Lion developer tools doesn’t install the command line tools to /usr/bin or any of the other typical system folders by default, which I believe Code::Blocks probably searches for programs such as make, g++, and other important tools. If it couldn’t find make, than that might explain why the project wasn’t built.
In order to properly install these, go to the preferences pane on XCode. From here select “Downloads” and then “Components.” One of these items should be Command Line Tools. Just click “install and enter an apple ID.”
You might have to register your apple ID as a developer. In order to do this go to:
http://developer.apple.com
Alternatively, you could use
lnto link the developer commands to the /usr/local/bin directory, but you’d have to dig around in /Developer to find them.