Code::Blocks Forums

User forums => Help => Topic started by: Boomba on February 28, 2007, 01:20:43 am

Title: OS X Installation help
Post by: Boomba on February 28, 2007, 01:20:43 am
hi i'm on mac OS X (tiger)

I tried the wiki instruction for installing from source but I ran into so many problems that I quit. I di some searching and found these mac binaries were available at http://developer.berlios.de/projects/codeblocks/. I have X11 and Xcode installed

but when i try to run it I get this error
Quote
Cannot find resources...
Code::Blocks was configured to be installed in '/Users/kareem/CodeBlocks.app/Contents/Resources/share/codeblocks'.
Please use the command-line switch '--prefix' or set the CODEBLOCKS_DATA_DIR environment variable to point where Code::Blocks is installed,
or try re-installing the application...

I tried running this from xterm changing the prefix to where the executable is as an argument and I still get the same type of error

any idea what i'm doing wrong?

thanx in advance,
Boomba
Title: Re: OS X Installation help
Post by: Auria on February 28, 2007, 01:40:16 am
Did you go there http://developer.berlios.de/project/showfiles.php?group_id=5358 and downlaod the latest? (3402)

Works all fine for me [well not fine since mac OS X is not supported but at least opens]
Title: Re: OS X Installation help
Post by: Boomba on February 28, 2007, 04:03:33 pm
yes thats exactly where I got it from. Same error :) any idea what I may have missed?

Title: Re: OS X Installation help
Post by: afb on March 02, 2007, 11:07:24 am
Does CodeBlocks.app/Contents/Resources/share/codeblocks/resources.zip exist ?

Otherwise you might try downloading the new build and see if that works better...
Title: Re: OS X Installation help
Post by: nchaumont on March 02, 2007, 07:03:51 pm
Hello guys,

I am new to CB and I apologize in advance if I'm asking a stupid question, but I haven't found any information about my problem, and this post seems to be the most appropriate one.

I am also trying to use CB on my PPC power book with OS X tiger runnig on it. I downloaded the OS X binaries that Auria pointed (both Mac PPC and x86). I had no problem compilling with GCC the "hello world" sample code that comes with the console application template, but when I try to execute the program, it systematically exits with the error code 255.

What is the problem and what can I do about it?

Thanks in advance,


Nic
Title: Re: OS X Installation help
Post by: afb on March 04, 2007, 10:25:47 pm
Running programs with Terminal.app (instead of xterm) is not patched in yet.

Bug #8987: http://developer.berlios.de/bugs/?func=detailbug&bug_id=8987&group_id=5358
Patch: http://developer.berlios.de/patch/?func=detailpatch&patch_id=1667&group_id=5358
Title: Re: OS X Installation help
Post by: BCCISProf on March 08, 2007, 09:25:38 pm
Does this help?

http://www.sci.brooklyn.cuny.edu/~goetz/codeblocks/
 (http://www.sci.brooklyn.cuny.edu/~goetz/codeblocks/)
See about half way down the page.
Title: Re: OS X Installation help
Post by: afb on March 21, 2007, 03:27:18 pm
It helps, but is a workaround...

The wxMac version of Code::Blocks should run Terminal.app (by default),
but the wxGTK version will continue to run xterm just like on Linux etc.
Title: Re: OS X Installation help
Post by: afb on March 26, 2007, 01:00:23 am
Latest SVN version (>3750) should now run with Terminal.app instead of xterm.
You might need to update your preferences, though (or even delete/reset them?)
Title: Re: OS X Installation help
Post by: nchaumont on May 02, 2007, 07:42:23 am
Thank you BBCISProf and afb for your help