Recent

Author Topic: Cross compiling question intel and powerpc  (Read 24379 times)

freddynerk

  • Jr. Member
  • **
  • Posts: 96
Re: Cross compiling question intel and powerpc
« Reply #15 on: August 19, 2009, 12:32:15 am »
Thanks for that.
I will give it a test tonight.

Tom

freddynerk

  • Jr. Member
  • **
  • Posts: 96
Re: Cross compiling question intel and powerpc
« Reply #16 on: August 19, 2009, 05:54:47 am »
I have just tested your suggestions.

It comes up with a Fatal error: Can't find unit Forms used by PrinterDlgs

Any Ideas.

Tom

freddynerk

  • Jr. Member
  • **
  • Posts: 96
Re: Cross compiling question intel and powerpc
« Reply #17 on: August 20, 2009, 01:55:58 pm »
Still can't compile a powerpc version on my Intel Mac.

I have just
1. Built Lazarus with Powerpc as the Target CPU.
2. Deleted all *.ppu and *.o files in my project
3. Deleted the compiled version
4. Did a Build All

Result lipo - Info Theory
Non-fat file: Theory is architecture: i386

Bugger

Tom

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2515
    • havefunsoft.com
Re: Cross compiling question intel and powerpc
« Reply #18 on: August 20, 2009, 10:13:29 pm »
please check the following:

open Environment->Files
check out compiler's path. It MUST BE fpc, not ppc386
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

freddynerk

  • Jr. Member
  • **
  • Posts: 96
Re: Cross compiling question intel and powerpc
« Reply #19 on: August 21, 2009, 12:40:52 am »
Might be onto something.

When I selected from
/usr/local/bin/ppc386

to

/usr/local/bin/fpc I got an error

target OS=Error: ppcppc can't be executed
The system/ppu for this target could not be found.

I tried to find this on Finder but I am assuming that it in a hidden system folder.
I am new to the Mac so I don't know how to find it OR if is there.

Tom

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2515
    • havefunsoft.com
Re: Cross compiling question intel and powerpc
« Reply #20 on: August 21, 2009, 09:14:20 am »
open terminal and type command there:
Code: [Select]
find /usr -iname ppc*

if you find no ppccrossppc or ppcppc files in "/usr/local/bin" dir, you need to create symbolic links for this, if you binaries located in another dir.
If there're no such binaries at all, you'd better install newer MacOSX fpc snapshot from here: http://www.hu.freepascal.org/lazarus/
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

freddynerk

  • Jr. Member
  • **
  • Posts: 96
Re: Cross compiling question intel and powerpc
« Reply #21 on: August 21, 2009, 09:54:46 am »
I did find
/usr/local/lib/fpc/2.2.4/ppcrossppc with the find in terminal.

I then put in /usr/local/lib/fpc/2.2.4/fpc in the compiler path.
Still an error.

How do I set a symbolic link to this.

Tom

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2515
    • havefunsoft.com
Re: Cross compiling question intel and powerpc
« Reply #22 on: August 21, 2009, 09:56:42 am »
open terminal
Code: [Select]
cd /usr/bin
sudo ln -s /usr/local/lib/fpc/2.2.4/ppcrossppc

any ppcppc files found?
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

freddynerk

  • Jr. Member
  • **
  • Posts: 96
Re: Cross compiling question intel and powerpc
« Reply #23 on: August 21, 2009, 09:59:42 am »
no non of them around.
Does this mean that I need to get a new version of fpc from the link you gave me.

freddynerk

  • Jr. Member
  • **
  • Posts: 96
Re: Cross compiling question intel and powerpc
« Reply #24 on: August 21, 2009, 10:01:39 am »
do I need the powerpc binaries or the Intel version

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 757
Re: Cross compiling question intel and powerpc
« Reply #25 on: August 21, 2009, 10:07:57 am »
no non of them around.
Does this mean that I need to get a new version of fpc from the link you gave me.

Please install the official FPC 2.2.4 release from http://www.freepascal.org/download.var . That one does include the proper symbolic links.

Install the Mac OS X/i386 one, it includes a powerpc cross-compiler.

freddynerk

  • Jr. Member
  • **
  • Posts: 96
Re: Cross compiling question intel and powerpc
« Reply #26 on: August 21, 2009, 11:56:28 am »
Gentlemen, I thank you very much.
With lipo it now says ppc

I can now test it on my clients PowerPC machine.

Thanks again

Tom

Sylvain M

  • New Member
  • *
  • Posts: 12
Re: Cross compiling question intel and powerpc
« Reply #27 on: September 29, 2009, 10:48:43 am »
please check the following:

open Environment->Files
check out compiler's path. It MUST BE fpc, not ppc386


Hello, sorry to start the conversation again, I couldn't work on my project for a month.

My project was compiling and working fine with ppc386, then I changed the Environment  / Files / Compiler path (for cross compiling), as you wrote, (/usr/local/bin/fpc instead of /usr/local/bin/ppc386) and I tried to build the source, and had an error message : "Can't find unit LResources used by RegisterDBF".

Do somebody have any idea where does that come from ?

alter

  • Full Member
  • ***
  • Posts: 151
    • KSP website
Re: Cross compiling question intel and powerpc
« Reply #28 on: September 29, 2009, 03:18:41 pm »
LCL must be separately compiled for each platform I guess. Such error can occur when you have for instance i386 Linux LCL compiled while it is required amd64 Linux compilation. Not to mention units for other systems

 

TinyPortal © 2005-2018