× CodeTyphon Cross-Build Development, discussions and problems

Question Ubuntu 11.04 to win32

More
10 years 3 months ago #1215 by Jacek
Ubuntu 11.04 to win32 was created by Jacek
I've got disabled cross-build possibilities on Ubuntu 11.04 x64 and x86 in CodeTyphon center.
Is this some of a my problem or it's not possible to do this on Linux ??

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

  • avra
  • Visitor
  • Visitor
10 years 3 months ago #1220 by avra
Replied by avra on topic Re: Ubuntu 11.04 to win32
Have you tried menu Cross-Build / Lazarus32 build cross elements for ALL CPUs-OSs in CodeTyphoon Center application?

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
10 years 3 months ago #1221 by Sternas Stefanos
Replied by Sternas Stefanos on topic Re: Ubuntu 11.04 to win32

I've got disabled cross-build possibilities on Ubuntu 11.04 x64 and x86 in CodeTyphon center.
Is this some of a my problem or it's not possible to do this on Linux ??


CT don't support cross for linux yet...

PilotLogic Architect and Core Programmer

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

More
10 years 3 months ago - 10 years 3 months ago #1222 by Jacek
Replied by Jacek on topic Re: Ubuntu 11.04 to win32
That's the situation:
Ubuntu 11.04 x64 - all cross-builds menu is grayed out. To see cross-builds menu I have to run CodeTyphon center from gksu.
Ubuntu 11.04 x86, but created through KVM virtualization [on this x64 Ubuntu] - don't want to even build Lazarus BigIDE - small IDE is building correctly.

Ubuntu x64 is on Unity, and virtualized x86 was on Ubuntu Classic.

See attachment.

Last edit: 10 years 3 months ago by Jacek.

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

More
10 years 3 months ago #1223 by Jacek
Replied by Jacek on topic Re: Ubuntu 11.04 to win32

I've got disabled cross-build possibilities on Ubuntu 11.04 x64 and x86 in CodeTyphon center.
Is this some of a my problem or it's not possible to do this on Linux ??


CT don't support cross for linux yet...


Is it possible to make a "fake" cross-build like: I'm creating an app on Linux64, then move all project to some Win32 station
and them compile that app again to get Win32 build ??
Do I have to use GTK2 on both machines, or can I change that to Win32 on the second PC ?

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

More
10 years 3 months ago #1236 by Rain
Replied by Rain on topic Re: Ubuntu 11.04 to win32

Is it possible to make a "fake" cross-build like: I'm creating an app on Linux64, then move all project to some Win32 station
and them compile that app again to get Win32 build ??
Do I have to use GTK2 on both machines, or can I change that to Win32 on the second PC ?


Similar things I did:
Program in Windows an LCL-Application and build for Win32 there.
Copy the whole project without modifications to Linux64 and compile there again for target Linux64. Works easiest.
Crosscompiling requires not only quite a few tools to be installed, also all the libraries for the linker to succeed must be made available, which can be tedious because of the number and versions of the libraries you need to provide. For this you need a working target sytem anyway as source for the libraries, so actually compiling there makes sense if Lazarus is installable there and the LCL components are made for that platform too. Crosscompiling is much more useful for targets which do not allow Lazarus to be installed (embedded systems).
The advantage of compiling *on* the target platform are the debugging capabilities of the IDE. If a cross-compiled build fails on the target, debugging is more guesswork than watching a nice debugger output in the IDE.
That said, a crossbuild from Win32 to Linux32 was after some time successful, only the window could not be closed by clicking the closing-cross. It just stayed open until eventually the kill command succeeded. :huh:

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
10 years 3 months ago #1238 by Sternas Stefanos
Replied by Sternas Stefanos on topic Re: Ubuntu 11.04 to win32
++1 Sir
soon we will release crossbuild and for
Linux, it's under lab test/dev

PilotLogic Architect and Core Programmer
The following user(s) said Thank You: Jacek

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

More
10 years 3 months ago #1239 by Jacek
Replied by Jacek on topic Re: Ubuntu 11.04 to win32

Is it possible to make a "fake" cross-build like: I'm creating an app on Linux64, then move all project to some Win32 station
and them compile that app again to get Win32 build ??
Do I have to use GTK2 on both machines, or can I change that to Win32 on the second PC ?


Similar things I did:
Program in Windows an LCL-Application and build for Win32 there.
Copy the whole project without modifications to Linux64 and compile there again for target Linux64. Works easiest.
Crosscompiling requires not only quite a few tools to be installed, also all the libraries for the linker to succeed must be made available, which can be tedious because of the number and versions of the libraries you need to provide. For this you need a working target sytem anyway as source for the libraries, so actually compiling there makes sense if Lazarus is installable there and the LCL components are made for that platform too. Crosscompiling is much more useful for targets which do not allow Lazarus to be installed (embedded systems).
The advantage of compiling *on* the target platform are the debugging capabilities of the IDE. If a cross-compiled build fails on the target, debugging is more guesswork than watching a nice debugger output in the IDE.
That said, a crossbuild from Win32 to Linux32 was after some time successful, only the window could not be closed by clicking the closing-cross. It just stayed open until eventually the kill command succeeded. :huh:


Yep - I've tried this with some simple App. But I'm not sure if it's fully transferable, for example when you create some bigger MSSQL database App. From the CodeTyphon Help I've read that the components has equivalents for all operating systems Win and Linux x86 and x64.

Till this time I've been using Borland C++ Builder 4 Professional.

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

More
10 years 3 months ago #1240 by Jacek
Replied by Jacek on topic Re: Ubuntu 11.04 to win32

++1 Sir
soon we will release crossbuild and for
Linux, it's under lab test/dev


It's nice to hear that. I've tried to do some cross-build on Virtual Windows 2008R2.
I think that's almost undoable.
I've spend 2 hours with copying all libraries from Ubuntu x64, creating dirs and etc.
After all of this I've received some funny message from linker and thats all about it.

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