Welcome, Guest
Username: Password: Remember me
CodeTyphon Cross-Build Development, discussions and problems
  • Page:
  • 1

TOPIC:

cross-compile from Linux to Win32 12 years 10 months ago #1488

  • tatamata
  • tatamata's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 37
  • Thank you received: 3
I have successfully installed CodeTyphon on Puppy Linux, but cross-compile options are disabled. I thought CodeTyphon had preconfigured cross-compile option...
Am I doing something wrong in installation?

Please Log in or Create an account to join the conversation.

Re: cross-compile from Linux to Win32 12 years 10 months ago #1489

  • Rain
  • Rain's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 71
  • Thank you received: 8
Win32 Layer is Cross-Build Center with Cross Elements for:
...
* x86_64-Win64
...

from: www.pilotlogic.com/sitejoom/index.php/codetyphon

In other words: CodeTyphon Linux is not a Cross-Build center, it has not the required Cross Elements.

Dev -> Target
Win -> Linux = yes
Linux -> Win = no

Please Log in or Create an account to join the conversation.

Re: cross-compile from Linux to Win32 12 years 10 months ago #1490

  • tatamata
  • tatamata's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 37
  • Thank you received: 3
Will cross-compilation from Linux to Windows will be possible in near future?

Please Log in or Create an account to join the conversation.

Re: cross-compile from Linux to Win32 12 years 10 months ago #1491

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Yes Sir
We plan cross-compilation for all CodeTyphon
host OS layers (Windows, Linux, FreeBSD, Solaris, etc)
but we want time for this...
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Re: cross-compile from Linux to Win32 12 years 10 months ago #1492

  • tatamata
  • tatamata's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 37
  • Thank you received: 3
OK, fair enough.
I'm looking forward.

Please Log in or Create an account to join the conversation.

Re: cross-compile from Linux to Win32 12 years 6 months ago #1977

  • Aleksandar
  • Aleksandar's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 150
  • Thank you received: 31
@sternas

While we wait to get official cross compile support for Windows on Linux, I will try to make some workaround myself, but I will need a little help from you.

In normal FPC/Lazarus installation in Mandriva I used this to compile and install cross compilers for win32 and win64:
# manually compile and install win32 cross

make clean all OS_TARGET=win32 CPU_TARGET=i386 FPC=ppc386
su -c "make crossinstall OS_TARGET=win32 CPU_TARGET=i386 FPC=ppc386"

# manually compile and install win64 cross

make clean all OS_TARGET=win64 CPU_TARGET=x86_64 FPC=ppcx64
su -c "make crossinstall OS_TARGET=win64 CPU_TARGET=x86_64 FPC=ppcx64"

After I installed FPC (both 32bit and 64bit) using CT install scripts (with my changes for Mandriva support) I tried to do same thing.

I only had to add path to fpcmake before each make crossinstall ...

Everything compiled just fine.

Now I need to manually copy compiled files, but I do not know where to put them.

I would probably also need to change some config files, but question is which.

That's why I need your help.

It probably also would be good if you can explain what is needed to make official support. Maybe I can help a little.

Please Log in or Create an account to join the conversation.

Last edit: by Aleksandar. Reason: fixed some typos

Re: cross-compile from Linux to Win32 12 years 6 months ago #1979

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Thanks Sir
yes it's simple
my suggestion is to copy files to FPC bin directory
in the same directory with fpc.exe
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Re: cross-compile from Linux to Win32 12 years 6 months ago #1988

  • Aleksandar
  • Aleksandar's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 150
  • Thank you received: 31
It's not a problem to copy file to any location. Problem is how to get it shown in CodeTyphon Center as Cross element. I guess some config file should be changed also?

Please Log in or Create an account to join the conversation.

Re: cross-compile from Linux to Win32 11 years 10 months ago #3017

  • tatamata
  • tatamata's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 37
  • Thank you received: 3
Is there any progress regarding cross-compilation from Linux to other targets?
Does v 3.10 support cross-compilation?

Regards

Please Log in or Create an account to join the conversation.

cross-compile from Linux to Win32 11 years 10 months ago #3028

  • fredvs
  • fredvs's Avatar
  • Visitor
  • Visitor
Hello.
I have CodeTyphon 3.1 installed on Ubuntu 32 bits and can, without problems, cross-compil from linux 32 > linux 64, linux32 > Win32, linux32 > Win64... ;)

Please Log in or Create an account to join the conversation.

cross-compile from Linux to Win32 11 years 10 months ago #3076

  • tatamata
  • tatamata's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 37
  • Thank you received: 3

fredvs wrote: Hello.
I have CodeTyphon 3.1 installed on Ubuntu 32 bits and can, without problems, cross-compil from linux 32 > linux 64, linux32 > Win32, linux32 > Win64... ;)

Lucky you! I have installed and tried to enable cross-compilation on these systems and failed:
1. Puppy linux --> could not install any cross element
2. Linux Mint (Mate) ---> most cross elements succeeded, but linux to win 32 not!
3. Linux Mint (Xfce)---> most cross elements succeeded, but linux to win 32 not!
4. Lubuntu ---> most cross elements succeeded, but linux to win 32 not!

What drives me crazy is that, for instance, cross-element for X86_64_win64 is installed with no problem, but, I can't get win32....
Is there a catch?

Please Log in or Create an account to join the conversation.

  • Page:
  • 1