Recent

Author Topic: AS not found error  (Read 5149 times)

taratata

  • New Member
  • *
  • Posts: 17
AS not found error
« on: January 26, 2009, 12:00:03 am »
Hi, I just got my first MAC a few days ago so I'm a total newbie on this system.

So anyway I installed FPC (source and bin) and lazarus.

When I try to compile a project I get the "Asssembler as not found" error message.

From what I read this is because FPC is looking for the as command in the /usr/bin directory.

This is not there on my computer.
The as command is in /developer/usr/bin directory.

I copied the as command in the /usr/bin directory and I then get another error (exitcode or something like that).

Should I copy the whole developer/usr/bin directory in /usr/bin ?

Is there a way to tell lazarus or fpc to look in the correct directory ?

P.S.
I don't remember if I installed the apple developer tools from the install DVD but I have installed the Iphone developer kit and it installed everything in the developer directory (xcode, usr/bin etc).


Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: AS not found error
« Reply #1 on: January 26, 2009, 12:15:26 am »
I don't even have a /developer/usr/bin folder, so I think you should install the Apple Developer Tools, as described here:

http://wiki.lazarus.freepascal.org/OS_X_Programming_Tips

Note that you can safely ignore everything in this topic about X11, GTK, fink and MacPorts, unless for some weird reason you want use the GTK widgetset. Now that Lazarus 0.9.26+ is compiled for Carbon on OS X, you don't need these things.

Thanks.

-Phil

taratata

  • New Member
  • *
  • Posts: 17
Re: AS not found error
« Reply #2 on: January 26, 2009, 02:31:48 am »
I got it to work.
The problem was that when I installed the iphone sdk I unchecked UNIX support. I reinstalled it and I checked the Unix support box and everything works fine.

Thanks

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: AS not found error
« Reply #3 on: January 28, 2009, 04:13:18 am »
Are you writing an iPhone/iPod Touch app with Xcode?

Thanks.

-Phil

taratata

  • New Member
  • *
  • Posts: 17
Re: AS not found error
« Reply #4 on: January 29, 2009, 12:54:55 am »
That was my plan before I discovered Lazarus.
I decided to convert my PC app first.


I'll work on an Iphone/Ipod app later.

 

TinyPortal © 2005-2018