It is currently Fri May 24, 2013 1:14 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: xCode 4.3+ and NASM
PostPosted: Fri Mar 02, 2012 9:16 pm 
Offline
User
User

Joined: Thu Nov 08, 2007 7:39 pm
Posts: 10
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)


Top
 Profile  
 
 Post subject: Re: xCode 4.3+ and NASM
PostPosted: Sat Mar 03, 2012 7:54 am 
Offline
Addict
Addict

Joined: Sun Aug 08, 2004 5:21 am
Posts: 1085
Location: Netherlands
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/


Top
 Profile  
 
 Post subject: Re: xCode 4.3+ and NASM
PostPosted: Sat Mar 03, 2012 10:34 am 
Offline
User
User

Joined: Thu Nov 08, 2007 7:39 pm
Posts: 10
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 :D ).

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:
./configure
 
make
 
sudo make install


Enjoy!


Top
 Profile  
 
 Post subject: Re: xCode 4.3+ and NASM
PostPosted: Tue Mar 06, 2012 9:44 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Jun 06, 2005 2:35 pm
Posts: 578
Location: germany
To fix the missing nasm, simply download and install commandline_tools_for_xcode from apple store (free).

Kukulkan

_________________
When somebody says "Expect the unexpected" slap them in the face and say" You didn’t expect that, did you?"


Top
 Profile  
 
 Post subject: Re: xCode 4.3+ and NASM
PostPosted: Tue Mar 06, 2012 1:39 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 8876
Location: France
I will add it to the final package to ease the things.


Top
 Profile  
 
 Post subject: Re: xCode 4.3+ and NASM
PostPosted: Tue May 01, 2012 2:41 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Feb 14, 2006 9:27 pm
Posts: 370
Location: London, UK
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.

_________________
Image


Top
 Profile  
 
 Post subject: Re: xCode 4.3+ and NASM
PostPosted: Wed May 23, 2012 12:20 am 
Offline
Addict
Addict
User avatar

Joined: Tue Apr 29, 2003 9:18 pm
Posts: 1115
Location: North by Northwest
Hi,
I'm new to OSX :D

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 :P

_________________

I'm impatient with stupidity. My people have learned to live without it.
Klaatu


Last edited by fsw on Wed May 23, 2012 12:26 am, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: xCode 4.3+ and NASM
PostPosted: Wed May 23, 2012 12:24 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Feb 14, 2006 9:27 pm
Posts: 370
Location: London, UK
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.

_________________
Image


Top
 Profile  
 
 Post subject: Re: xCode 4.3+ and NASM
PostPosted: Thu Jul 26, 2012 8:07 am 
Offline
Addict
Addict
User avatar

Joined: Sun Apr 27, 2003 8:12 am
Posts: 1620
Location: USA
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.

_________________
AMD 64 4000+ / 1GB PC2700 / WIN XP Home SP3 / Nvidia GT220 x16 512MB / M-Audio Revolution 5.1
Macbook Air 11.6" - 2010 / OS X 10.8

http://www.posemotion.com
http://www.flashpulse.com


Top
 Profile  
 
 Post subject: Re: xCode 4.3+ and NASM
PostPosted: Thu Jul 26, 2012 10:02 am 
Offline
Addict
Addict

Joined: Sun Aug 08, 2004 5:21 am
Posts: 1085
Location: Netherlands
@Joe, I still don't know if I should upgrade to Mountain Lion or not.
What's your experience so far ?


Top
 Profile  
 
 Post subject: Re: xCode 4.3+ and NASM
PostPosted: Thu Jul 26, 2012 11:28 am 
Offline
Addict
Addict

Joined: Tue May 06, 2003 5:07 pm
Posts: 2258
Location: UK
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 :)


Top
 Profile  
 
 Post subject: Re: xCode 4.3+ and NASM
PostPosted: Thu Jul 26, 2012 5:19 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Aug 04, 2008 10:56 pm
Posts: 849
Location: Seattle, USA
I used the gcc-installer link on my new computer with Lion and PB works fine.

_________________
MacBook Pro/Retina, OSX 10.8.3 Mountain Lion, PB-5.11x64


Top
 Profile  
 
 Post subject: Re: xCode 4.3+ and NASM
PostPosted: Thu Jul 26, 2012 5:26 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 9870
Location: Beyond the pale...
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.

eScript
Arctic Reports
nxSoftware


Top
 Profile  
 
 Post subject: Re: xCode 4.3+ and NASM
PostPosted: Thu Jul 26, 2012 5:32 pm 
Offline
Addict
Addict

Joined: Sun Aug 08, 2004 5:21 am
Posts: 1085
Location: Netherlands
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.


Top
 Profile  
 
 Post subject: Re: xCode 4.3+ and NASM
PostPosted: Thu Jul 26, 2012 5:37 pm 
Offline
Addict
Addict
User avatar

Joined: Sun Apr 27, 2003 8:12 am
Posts: 1620
Location: USA
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. ;)

_________________
AMD 64 4000+ / 1GB PC2700 / WIN XP Home SP3 / Nvidia GT220 x16 512MB / M-Audio Revolution 5.1
Macbook Air 11.6" - 2010 / OS X 10.8

http://www.posemotion.com
http://www.flashpulse.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye