Recent

Author Topic: MAC OSX 10.8 arm-iphonesim Issues with Install  (Read 6827 times)

kevin.black

  • Full Member
  • ***
  • Posts: 121
MAC OSX 10.8 arm-iphonesim Issues with Install
« on: February 15, 2013, 12:22:21 am »
Hi,

More issues with Lazarus on MAC OSX. 

I'm trying to use the arm-iphonesim (having now got i386-Darwin working).  I'm using FPC and FPCSRC v2.6.0.  I assumed that the arm-iphonesim stuff would have been included in the install.  Apparently this is not the case.  I've looked at the paths below and cannot see anything remotely resembling iphonesim (but then I am no expert WRT MACs and/or lazarus).

I am obviously missing something, anyone have any ideas what I need to do.  Sure, I can see there are a pile of directories/files missing, but I have no idea where to find them.  I struggled through the OSX install and (finally) got that working. 

I see the HINT, but I cannot even find an /etc directory.  Regardless, since I cannot find any of the arm-iphonesim directories or files I wouldn't know what to put in the cfg file.

And I have NO IDEA where it came up with Users/Kevin/Dropbox/MAC TEST/lib/arm-iphonesim.  This path just doesn't make any sense?

Any help greatly appreciated....

WARNING: include search path does not exists: /Users/Kevin/Dropbox/MAC TEST/lib/arm-iphonesim
WARNING: unit search path does not exists: /Developer/lazarus/lcl/units/arm-iphonesim/carbon
WARNING: unit search path does not exists: /Developer/lazarus/lcl/units/arm-iphonesim
WARNING: unit search path does not exists: /Developer/lazarus/components/lazutils/lib/arm-iphonesim
HINT: using config file /etc/fpc.cfg
ERROR: compiled FPC unit not found: system.ppu
ERROR: compiled FPC unit not found: sysutils.ppu
ERROR: compiled FPC unit not found: classes.ppu
ERROR: compiled FPC unit not found: avl_tree.ppu
ERROR: compiled FPC unit not found: zstream.ppu


Thanks,
Kevin
« Last Edit: February 15, 2013, 01:21:07 am by kevin.black »

jwdietrich

  • Hero Member
  • *****
  • Posts: 1232
    • formatio reticularis
Re: MAC OSX 4.8 arm-iphonesim Issues with Install
« Reply #1 on: February 15, 2013, 12:40:55 am »
What is MAC OSX 4.8? Mac OS X 10.4.8 or Mac OS X 10.8?
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

kevin.black

  • Full Member
  • ***
  • Posts: 121
Re: MAC OSX 10.8 arm-iphonesim Issues with Install
« Reply #2 on: February 15, 2013, 01:19:04 am »
Sorry, OSX 10.8.2 to be exact....

JdeHaan

  • Full Member
  • ***
  • Posts: 118
Re: MAC OSX 10.8 arm-iphonesim Issues with Install
« Reply #3 on: February 15, 2013, 10:27:58 am »
Did you install XCode and from there (Preferences / Downloads) the Command Line tools?

lff

  • New Member
  • *
  • Posts: 13
Re: MAC OSX 10.8 arm-iphonesim Issues with Install
« Reply #4 on: February 15, 2013, 11:57:24 am »
What you will do with the "arm-iphonesim"?
Do you want the application on a IOS device?

kevin.black

  • Full Member
  • ***
  • Posts: 121
Re: MAC OSX 10.8 arm-iphonesim Issues with Install
« Reply #5 on: February 16, 2013, 03:41:13 am »
Did you install XCode and from there (Preferences / Downloads) the Command Line tools?

Hi,

Yes I installed XCODE and the Command Line Tool.  I can compile for i386-Darwin which also (IIRC) requires XCODE and the Command Line Tool installed.

Quote
you will do with the "arm-iphonesim"?
Do you want the application on a IOS device?Thanks,

Well, yes.  The plan is to initially run it on the iPhone Simulator which I have downloaded and installed.  We may have an iPhone app to write and I'm just getting prepared. I like Lazarus...

Thanks,
Kevin

lff

  • New Member
  • *
  • Posts: 13
Re: MAC OSX 10.8 arm-iphonesim Issues with Install
« Reply #6 on: February 16, 2013, 11:17:18 am »
if you want to develop IOS apps with Lazarus, you must first compile FPC correctly.
Here you find a description:
http://blog.naver.com/simonsayz/120180987773

then you can use this:
http://wiki.freepascal.org/iPhone_Laz_Extension

iPhone Laz extension you will have to adapt to the newer versions of lazarus.

If that's too much, you can watch my project:
http://www.lazarus.freepascal.org/index.php/topic,19532.0.html

Meli

kevin.black

  • Full Member
  • ***
  • Posts: 121
Re: MAC OSX 10.8 arm-iphonesim Issues with Install
« Reply #7 on: February 16, 2013, 11:37:10 am »
Iff,

Hey, thanks for that and the extremely detailed step by step guide.  I had no idea it was going to be as complex.  BUT I'll give it a go.  Appreciate your help and I'll post progress (or not) :)

Cheers,
Kevin

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1059
Re: MAC OSX 10.8 arm-iphonesim Issues with Install
« Reply #8 on: March 08, 2013, 03:19:45 pm »
For the record: the reason no units for the arm-iphonesim target were found is simply because that target does not exist. The simulator runs i386 code, not arm code. So it's i386-iphonesim.

 

TinyPortal © 2005-2018