xCode 4.3+ and NASM
xCode 4.3+ and NASM
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)
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
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/
You should be able to install nasm yourself
http://www.nasm.us/
Re: xCode 4.3+ and NASM
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:
Enjoy!
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
Re: xCode 4.3+ and NASM
To fix the missing nasm, simply download and install commandline_tools_for_xcode from apple store (free).
Kukulkan
Kukulkan
Re: xCode 4.3+ and NASM
I will add it to the final package to ease the things.
Re: xCode 4.3+ and NASM
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.
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
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
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

Last edited by fsw on Wed May 23, 2012 12:26 am, edited 2 times in total.
I am to provide the public with beneficial shocks.
Alfred Hitshock
Re: xCode 4.3+ and NASM
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.
Hopefully it should work.

Re: xCode 4.3+ and NASM
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.
www.posemotion.com
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
Re: xCode 4.3+ and NASM
@Joe, I still don't know if I should upgrade to Mountain Lion or not.
What's your experience so far ?
What's your experience so far ?
Re: xCode 4.3+ and NASM
Haven't updated yet but people say it's a bit faster than Lion. The notification center seems nice, too!wilbert wrote:@Joe, I still don't know if I should upgrade to Mountain Lion or not.
What's your experience so far ?
I'll update in a few days

Re: xCode 4.3+ and NASM
I used the gcc-installer link on my new computer with Lion and PB works fine.
MacBook Pro-M1 (2021), Sequoia 15.4, PB 6.20
Re: xCode 4.3+ and NASM
How much is the update from Lion? Can't imagine it's going to be free knowing Apple!
I may look like a mule, but I'm not a complete ass.
Re: xCode 4.3+ and NASM
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.
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
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.wilbert wrote:@Joe, I still don't know if I should upgrade to Mountain Lion or not.
What's your experience so far ?

www.posemotion.com
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.