Page 1 of 2
xCode 4.3+ and NASM
Posted: Fri Mar 02, 2012 9:16 pm
by rodego
Hello guys,
I just get computer with OS X Lion, install from appStore last xCode (4.3) version and found, that PureBasic didn't work. On compilation it takes error about unknown command 'sh nasm'. Well, this is obliviously, becouse xCode 4.3 use LLVM instead of gcc+nasm.
So, any ideas, how fix this?
(PureBasic 4.61 Beta 1, MacOS X Lion 10.7, XCode 4.3)
Re: xCode 4.3+ and NASM
Posted: Sat Mar 03, 2012 7:54 am
by wilbert
I'm still using XCode 4.2 so I don't know if nasm is included or not with XCode 4.3 .
You should be able to install nasm yourself
http://www.nasm.us/
Re: xCode 4.3+ and NASM
Posted: Sat Mar 03, 2012 10:34 am
by rodego
Okey, here small workaround for MacOSX Lion:
Way #1 (Simple):
Go to
https://github.com/kennethreitz/osx-gcc-installer and download package for your MacOS. It's contain everithyng you need: GCC, CLang, NASM, headers, etc.
Package size ~700 mb. If you use this package, than XCode
not required for PureBasic (You do not need to download a huge XCode package of almost 2 gigabytes

).
Way #2 (For those who have nothing to do):
First of all, you will need GCC:
http://opensource.apple.com/ and XCode.
Than, get last
stable NASM sources and comile it:
Code: Select all
./configure
make
sudo make install
Enjoy!
Re: xCode 4.3+ and NASM
Posted: Tue Mar 06, 2012 9:44 am
by Kukulkan
To fix the missing nasm, simply download and install commandline_tools_for_xcode from apple store (free).
Kukulkan
Re: xCode 4.3+ and NASM
Posted: Tue Mar 06, 2012 1:39 pm
by Fred
I will add it to the final package to ease the things.
Re: xCode 4.3+ and NASM
Posted: Tue May 01, 2012 2:41 pm
by moogle
This is quickest way to fix this, if you've got XCode 4.3.
Open XCode then go to preferences and click the Download tab. Right at the bottom is Command Line Tools 180MB and click install.
After that PB will run fine and you can run programs.
Re: xCode 4.3+ and NASM
Posted: Wed May 23, 2012 12:20 am
by fsw
Hi,
I'm new to OSX
Downloaded the latest Purebasic beta and have a dumb question:
The Purebasic install readme file says XCode is needed, but according to this thread I do not need XCode but either download and install:
the installer at:
https://github.com/kennethreitz/osx-gcc-installer
or
the commandline_tools_for_xcode from apple store
Is this correct?
So if I want to stay away from the Apple store the only solution would be the installer on github...
Really hope that future PureBasic versions come with all it's needed

Re: xCode 4.3+ and NASM
Posted: Wed May 23, 2012 12:24 am
by moogle
I've not tried the gcc-installer but I suppose if you don't have an app store account (you need to put in a credit card to verify your info) then I suppose that would be the way to do it.
Hopefully it should work.
Re: xCode 4.3+ and NASM
Posted: Thu Jul 26, 2012 8:07 am
by J. Baker
One thing I noticed after installing the new Mountain Lion and xCode 4.4 tonight is that it's an all-in-one app now, located in the Applications folder. There was also no Application Loader in the normal spot/folder. It appears it's now built into xCode itself. I guess it could be removed and used if you want to uninstall xCode but haven't tried yet.
Re: xCode 4.3+ and NASM
Posted: Thu Jul 26, 2012 10:02 am
by wilbert
@Joe, I still don't know if I should upgrade to Mountain Lion or not.
What's your experience so far ?
Re: xCode 4.3+ and NASM
Posted: Thu Jul 26, 2012 11:28 am
by Polo
wilbert wrote:@Joe, I still don't know if I should upgrade to Mountain Lion or not.
What's your experience so far ?
Haven't updated yet but people say it's a bit faster than Lion. The notification center seems nice, too!
I'll update in a few days

Re: xCode 4.3+ and NASM
Posted: Thu Jul 26, 2012 5:19 pm
by WilliamL
I used the gcc-installer link on my new computer with Lion and PB works fine.
Re: xCode 4.3+ and NASM
Posted: Thu Jul 26, 2012 5:26 pm
by srod
How much is the update from Lion? Can't imagine it's going to be free knowing Apple!
Re: xCode 4.3+ and NASM
Posted: Thu Jul 26, 2012 5:32 pm
by wilbert
The update is $19.99 .
What worries me a bit is that I read somewhere that XCode doesn't support the gcc compiler anymore, only llvm .
One of my iOS apps didn't compile properly using llvm on Lion.
Re: xCode 4.3+ and NASM
Posted: Thu Jul 26, 2012 5:37 pm
by J. Baker
wilbert wrote:@Joe, I still don't know if I should upgrade to Mountain Lion or not.
What's your experience so far ?
So far it's been good. I only upgraded mainly for Game Center. Unless there was a feature you were waiting for, no need to upgrade right away.
