Recent

Author Topic: Lazarus Cross?  (Read 12445 times)

stocki

  • Full Member
  • ***
  • Posts: 144
Lazarus Cross?
« on: September 02, 2012, 09:39:22 am »
Is it planned to develope a Cross IDE which means e.g. running Lazarus IDE on Win32 and compile project to Win32/Win64/OSX etc. according to Delphi IDE.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Lazarus Cross?
« Reply #1 on: September 02, 2012, 09:46:24 am »
Search the wiki for cross compiling/cross compiler. You might be pleasantly surprised.
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

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Lazarus Cross?
« Reply #2 on: September 02, 2012, 10:28:18 am »
Quote
Is it planned to develope a Cross IDE which means e.g. running Lazarus IDE on Win32 and compile project to Win32/Win64/OSX etc. according to Delphi IDE.
It's already possible for years, it's just not packaged so by default. What do you think the Code Generator part in Compiler Options for? ;)

CodeTyphon distro which packages windows and linux target, both 32 and 64 bit is already 500 MB in size (zipped!), Lazarus 1.0 for win32 only is 100 MB. It's a big waste of bandwidth instead of downloading just the source code and build everything on your machine. Nevertheless, IF somebody here is willing to create such a package, it should be OK. That big IF thing is one of the show stoppers.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Lazarus Cross?
« Reply #3 on: September 02, 2012, 10:49:33 am »
It's a big waste of bandwidth instead of downloading just the source code and build everything on your machine. Nevertheless, IF somebody here is willing to create such a package, it should be OK. That big IF thing is one of the show stoppers.
<advertisement>Patches/additions to fpcup welcome.

FPCup currently has a working Win32->Win64 cross compiler module, a Win64->Win32 module waiting for FPC floating point support to improve, and allows writing other plugins (e.g. Linux->Win32).

See fpcup.html in the source for what you need to do (IIRC: 1. Make sure all required binutils are there 2. Write some commands that insert the proper cpu/os options in the build options).</advertisement>

Especially a Linux->Win32 cross compiler might be nice as you can then test the result using Wine....
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

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Lazarus Cross?
« Reply #4 on: September 02, 2012, 11:47:33 am »
Quote
Especially a Linux->Win32 cross compiler might be nice as you can then test the result using Wine....
This is what I already setup in my lovely Kubuntu 12.04 :D
Much better than when I was on Win32, no way to test the Linux version except through VM / reboot.

stocki

  • Full Member
  • ***
  • Posts: 144
Re: Lazarus Cross?
« Reply #5 on: September 02, 2012, 12:23:34 pm »
Very nice! Shouldn't that be included into the standard Lazarus distro?

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Lazarus Cross?
« Reply #6 on: September 02, 2012, 01:11:32 pm »
I wouldn't think so as I think this is definitely for everyone - but perhaps an add on .deb and .rpm lazarus_windows_crosscompiler that pulls in the required dependencies, adds the crosscompiler etc. could be nice.
I'm sure the Lazarus team will appreciate a patch for that ;)
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

stocki

  • Full Member
  • ***
  • Posts: 144
Re: Lazarus Cross?
« Reply #7 on: September 02, 2012, 03:44:19 pm »
I have downloded that monster pack, but in the CodeTyphon Center there is no cross element for Mac. ???

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Lazarus Cross?
« Reply #8 on: September 02, 2012, 04:20:35 pm »
That's probably because you need OSX files which CT cannot legally distribute.

See e.g.
http://wiki.lazarus.freepascal.org/Cross_compiling_OSX_on_Linux
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

Sternas Stefanos

  • Full Member
  • ***
  • Posts: 170
  • Ex Pilot, M.Sc, Ph.D
    • http://www.pilotlogic.com
Re: Lazarus Cross?
« Reply #9 on: September 02, 2012, 06:58:04 pm »
I have downloded that monster pack, but in the CodeTyphon Center there is no cross element for Mac. ???

It's in our To-Do list and the MAC OS...
CodeTyphon Architect and Programmer

stocki

  • Full Member
  • ***
  • Posts: 144
Re: Lazarus Cross?
« Reply #10 on: September 02, 2012, 11:28:15 pm »
I found menu entries for FPC cross build but nothing for building Lazarus e.g. HostWin32_TargetWin64. How is this done?

jack_

  • New Member
  • *
  • Posts: 23
  • Poland
Re: Lazarus Cross?
« Reply #11 on: September 03, 2012, 01:33:54 am »
Choose Project -> Options -> Code generation and choose other settings as needed.
Click Build - that's all.
Next time Cross compile elements will be shown in the CodeTyphon center.

I can compile to Win32 or Win64 on my Linux x64 with CodeTyphon v2.80

stocki

  • Full Member
  • ***
  • Posts: 144
Re: Lazarus Cross?
« Reply #12 on: September 03, 2012, 08:32:13 am »
Thank you. I understand the handling now.

Neverthless FPC32 build cross element x86_64-win64 gives a "can not find FPC32 binCross files for x86_64-win64"

Are there missing some files in the pack?

jack_

  • New Member
  • *
  • Posts: 23
  • Poland
Re: Lazarus Cross?
« Reply #13 on: September 03, 2012, 10:14:51 am »
On what system you have installed CodeTyphon.

I think that you cannot compile from 32-bit system to 64-bit.

stocki

  • Full Member
  • ***
  • Posts: 144
Re: Lazarus Cross?
« Reply #14 on: September 03, 2012, 11:04:16 am »
On what system you have installed CodeTyphon.

I think that you cannot compile from 32-bit system to 64-bit.

-WinXP 32
-??? Why? Delphi can too. Thats the aim of cross compiling!


 

TinyPortal © 2005-2018