Lazarus

Programming => Operating Systems => Topic started by: brudjuz on February 02, 2013, 08:58:02 am

Title: Is cross compiling just a theory ?
Post by: brudjuz on February 02, 2013, 08:58:02 am
I work on Ubuntu 12.10 64bit OS and Lazarus 1.0.5 64bit from http://ppa.launchpad.net/prof7bit/lazarus-1.0-latest/ubuntu.

I have been read many topics from this forum about cross compiling and Lazarus Wiki - but without successfull implementation.

I'm trying to compile project for Win32 or Win64. In meantime, I use VirtualBox with Windows 7 Professional 32bit for generating 32bit exe.

Does anybody have real Linux solution or cross compiling is just a theory ?
Title: Re: Is cross compiling just a theory ?
Post by: BigChimp on February 02, 2013, 09:12:17 am
Try CodeTyphon; don't know if it is available for linux but it apparently has cross-compiling set up out of the box.

Apart from that, yes many people cross-compile. It might help if you say what article exactly you read and where it went wrong. No crystal balls here.
Title: Re: Is cross compiling just a theory ?
Post by: brudjuz on February 02, 2013, 09:24:07 am
I'm trying to compile project for Win32 (or Win64) from official Lazarus 1.0.5 64bit in Ubuntu 12.10 64bit environment...

Error message from Lazarus is :
Compiler "/usr/bin/fpc" does not support target x86_64-win32.

What else I have to setup ?
Title: Re: Is cross compiling just a theory ?
Post by: Leledumbo on February 02, 2013, 09:32:58 am
Quote
Does anybody have real Linux solution or cross compiling is just a theory ?
Of course not, how do you think FPC gets ported in the first place if not by cross compiling? What you have to understand is that it doesn't work out of the box, you have to understand some things.
For my own needs, I've built a bash script to help me building all cross targets I need. Search the forum for another cross compiling topics, I've attached the script there (my current script is different from the last one I attach due to partition management change on my machine, and the change would cause it not to work on typical machine).
Quote
What else I have to setup ?
Clearly you skim too much on the topics you've seen and the wiki article. What I said above is more or less already mentioned there.
Title: Re: Is cross compiling just a theory ?
Post by: brudjuz on February 02, 2013, 09:36:50 am
Thank you.

If I understand, I must build Lazarus from SVN trunk with make directives that you suggested...
Title: Re: Is cross compiling just a theory ?
Post by: Leledumbo on February 02, 2013, 09:50:39 am
Quote
If I understand, I must build Lazarus from SVN trunk with make directives that you suggested...
Not Lazarus, but FPC
TinyPortal © 2005-2018