Recent

Author Topic: Ubuntu 10.04 cross compile to mac os  (Read 10002 times)

braximo

  • Jr. Member
  • **
  • Posts: 79
Ubuntu 10.04 cross compile to mac os
« on: August 09, 2011, 11:02:58 am »
Hello community!

I would like to ask how to do this? Ive installed the cross compiler of linux to windows and it works. but when i tried to cross compile it to macos, it fails. The error message is the same when the cross compiler for windows was NOT installed.

Info:
 LCL widget type : Carbon (as stated on forums)
TARGET OS : macos

Or is my settings wrong?
Ubuntu 16.04 Lazarus 1.6

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Ubuntu 10.04 cross compile to mac os
« Reply #1 on: August 09, 2011, 11:28:32 am »
See http://wiki.lazarus.freepascal.org/Cross_compiling_OSX_on_Linux here for a description on how to do it.

It was taken from the fpc mailinglist; I haven't fully tried it yet.

By the way, it might help next time if you specify some more details: e.g. what error message, what steps did you use to install the cross compiler (i.e. what guide/documentation did you use), do you use a 32 or 64 bit compiler, what version of the compiler/Lazarus (stable? SVN?)
Unfortunately, my cross compiling experience is almost 0 (I think I had it working next time) so this information will benefit other people trying to help you...

Good luck,
BigChimp
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

braximo

  • Jr. Member
  • **
  • Posts: 79
Re: Ubuntu 10.04 cross compile to mac os
« Reply #2 on: August 10, 2011, 02:46:13 am »
Seen that link already but the link requires the programmer to have a mac pc with a leopard or a lion. I was kind of hoping to do cross compiling same with Linux to Windows (ala style).

Its 32 bit and manually downloaded and installed the cross compiler (Linux to windows)

Using 09.30

the error could be seen when you try to cross compile but NOT installed a cross compiler (its kind of long)

is there another way without me having to do the link aforementioned?


Ubuntu 16.04 Lazarus 1.6

tatamata

  • Hero Member
  • *****
  • Posts: 787
    • ZMSQL - SQL enhanced in-memory database
Re: Ubuntu 10.04 cross compile to mac os
« Reply #3 on: August 10, 2011, 06:35:45 am »
Maybe you could try CodeTyphon distribution of Lazarus instead.
 It is suitable for installation on Ubuntu and has many components and cross-compiling features preconfigured, maybe also what are you trying to do...
In my Linux distribution (Puppy Linux) I haven't been able to install it though...

braximo

  • Jr. Member
  • **
  • Posts: 79
Re: Ubuntu 10.04 cross compile to mac os
« Reply #4 on: August 10, 2011, 07:20:12 am »
thanks for the input. Ill try to look at CodeTyphon. 

maybe also what are you trying to do...


Im a computer programmer by profession and one of our client wants our application to run on mac. This is the primary reason why i shifted from vb to Lazarus because of its cross compiling ability and its stream handling capabilities.

... and i believe that its far superior than MS!  >:D
« Last Edit: August 10, 2011, 07:24:30 am by braximo »
Ubuntu 16.04 Lazarus 1.6

Fred vS

  • Hero Member
  • *****
  • Posts: 3168
    • StrumPract is the musicians best friend
Re: Ubuntu 10.04 cross compile to mac os
« Reply #5 on: August 10, 2011, 05:48:43 pm »
Install Hackintoch on a USB stick for PC  :-X, then install Lazarus for OSX on USB-Hackintoch...  :-X
« Last Edit: August 10, 2011, 05:51:58 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

braximo

  • Jr. Member
  • **
  • Posts: 79
Re: Ubuntu 10.04 cross compile to mac os
« Reply #6 on: August 11, 2011, 02:33:48 am »
I've researched on codetyphon but its mac cross compiling capability is limited to the power PC ONLY. :'( If only power PC and Intel would go hand-in-hand... Thanks for the hackintosh fred... (Install Lazarus on the Mac... - been thinking of this as well)

So, does this mean that there is NO out of the box installer for the cross compiling for the Linux to mac (like Linux to Windows)? :-\
Ubuntu 16.04 Lazarus 1.6

 

TinyPortal © 2005-2018