Latest version and Mac OS X Lion

BlitzMax Forums/BlitzMax Programming/Latest version and Mac OS X Lion

Leo Santos(Posted 2011) [#1]
Hi,

I've downloaded and installed BMax's 1.44 and Xcode 4.2, but when I try to build anything I get this:

Building untitled1
Compiling:untitled1.bmx
Linking:untitled1
sh: g++-4.2: command not found
Build Error: Failed to link /Applications/BlitzMax/tmp/untitled1.app/Contents/MacOS/untitled1
Process complete

It used to work before I upgraded. What am I forgetting? Is there an OS specific FAQ somewhere?
Thanks!
Leo.


richardc(Posted 2011) [#2]
Hi Leo,

I have / had the same problem as you. I'm sure there is a better way of doing this but for the time being I created a symbolic link:

sudo ln -s /usr/bin/g++ /usr/bin/g++-4.2

Which works for me.

Cheers,

Richard


ima747(Posted 2011) [#3]
I had the same issue, I updated the bmk files in the bin folder as needed to, the problem is there isn't a space between g++ and -4.2. Spotlight should show the files, just add in a space.


Leo Santos(Posted 2011) [#4]
Thanks! I'll try to fix it when I get back home tonight.

Shouldn't this be something to be fixed by Mark, in case it's happening to more people?

Cheers,
Leo.


Nigel Brown(Posted 2011) [#5]
I have had to make two symbolic links to get any modules to build:

sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2
sudo ln -s /usr/bin/g++ /usr/bin/g++-4.2

my modules are build as I type so fingers crossed.


Grey Alien(Posted 2011) [#6]
When I run those in Terminal I get:

ln: /usr/bin/gcc-4.2: File exists

and

ln: /usr/bin/g++-4.2: File exists

I found this thread after upgrading to xcode 4.2 and finding my modules don't compile any more. Any ideas? Running BMax 1.44 on OSX 10.7.2. Both GCC and G++ are 4.2.1

Errors:



Last edited 2011


joasia36(Posted 2011) [#7]
same issue here.

Root cause is the 10.6 SDK, which is not included with latest Xcode?

How to fix that?


Grey Alien(Posted 2011) [#8]
I wish I knew. This is a pretty big problem for me right now. Any experts out there who can chime in? Thanks loads!