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

TOPIC:

FPC32 on Windows64 Cross Build to Linux 32 bit 8 years 11 months ago #8513

  • hanair
  • hanair's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 29
  • Thank you received: 0
I am testing cross build capability of CT. All experiments are based on Typhon32 running on Windows-10-64bit.

I could successfully cross build a simple app to Win32, Win64 and LinuxMint64, and resulting executable works fine. Pretty happy about the results so far!
But how do I cross build to the target LinuxMint32? For Linux Mint 64, there is a library x86_64-linux-gtk3 but that has no 32bit counterpart. What is the recommended way to build 32bit Linux in this situation?

Thanks!

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

Last edit: by hanair.

FPS32 on Windows64 Cross Build to Linux 32 bit 8 years 11 months ago #8514

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4523
  • Thank you received: 1108
Thanks Sir
you can use
-i386-linux.7z
-i386-linux-qt4.7z
for linux32 crossbuild target
PilotLogic Architect and Core Programmer

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

FPS32 on Windows64 Cross Build to Linux 32 bit 8 years 11 months ago #8518

  • hanair
  • hanair's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 29
  • Thank you received: 0
Thanks Sternas!

But for some reason that does not work for me! Can you take a look at some of my screen shots?

My development machine is VirtualBox running Windows-7 Pro 64bit with 4GB RAM and 100GB hard drive.

Build target is Linux Mint 17.2 32 bit



These are the installed libraries in my setup



But I see only the following options in the drop down while selecting LCL Widgets



For some reason I cannot see qt4 in the drop down. What am I missing?
(On a side note I am not sure if qt4 will work with MATE or Cinnamon.)

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

Last edit: by hanair.

FPS32 on Windows64 Cross Build to Linux 32 bit 8 years 11 months ago #8519

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4523
  • Thank you received: 1108
Sir
QT=QT4
PilotLogic Architect and Core Programmer

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

FPS32 on Windows64 Cross Build to Linux 32 bit 8 years 11 months ago #8520

  • hanair
  • hanair's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 29
  • Thank you received: 0

Sternas Stefanos wrote: Sir
QT=QT4


Thanks! That worked, in the sense that I could create 32bit Linux executable.

Looks like I have to install QT library on Linux Mint 32 in order to run this. Are there gtk2 or gtk3 cross build libraries for Typhon IDE?

When I try to execute I am getting the following error:
error while loading shared libraries: libQt4Pas.so.5: cannot open shared object file: No such file or directory

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

Last edit: by hanair.

FPS32 on Windows64 Cross Build to Linux 32 bit 8 years 11 months ago #8521

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4523
  • Thank you received: 1108
Sir
we must update our OS Libraries for QT5,
but QT5 platform is under development, has some problems (with scrolling etc)
Please use QT4 platform or help us to fix QT5 problems

Please, don't forget CodeTyphon is Free and Open Source Project
and we need help to make it better...
PilotLogic Architect and Core Programmer

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

FPS32 on Windows64 Cross Build to Linux 32 bit 8 years 11 months ago #8522

  • hanair
  • hanair's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 29
  • Thank you received: 0

Sternas Stefanos wrote: Sir
we must update our OS Libraries for QT5,
but QT5 platform is under development, has some problems (with scrolling etc)
Please use QT4 platform or help us to fix QT5 problems

Please, don't forget CodeTyphon is Free and Open Source Project
and we need help to make it better...


I was trying to use gtk2 or gtk3 instead of QT. I could do that on Linux64 but not Linux32. That is what I am trying to understand, if I it is possible to get gtk2/3 for 32bit Linux.
I am still trying to understand the whole architecture. I am happy to help with CT/Lazarus development in the future, as much as I can.

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

FPS32 on Windows64 Cross Build to Linux 32 bit 8 years 11 months ago #8523

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4523
  • Thank you received: 1108
On Windows OS
Typhon32 can build all possible CPU-OS-Platform matrix
Typhon64 has problem with all CPU-OS-Platform, because FreePascal 64 bits has problem to build all CPU-OS-Platform

For all other OSes, Typhon32 and Typhon64 have the same CrossBuild functionality.

For this reason we propose on Windows OS, to use Typhon32 and FPC32 for CrossBuild

This is the status now, in the future this can be change (I hope).

PS: CodeTyphon use NATIVE CrossBuild technology, we don't use "Virtual API" methodology.
PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

FPS32 on Windows64 Cross Build to Linux 32 bit 8 years 11 months ago #8526

  • hanair
  • hanair's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 29
  • Thank you received: 0
So far I tried only simpler projects for cross build, but including some windows message processing etc. Everything works as expected.
Why there is no support for gtk2/3 on Linux32?

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

FPS32 on Windows64 Cross Build to Linux 32 bit 8 years 10 months ago #8528

  • hanair
  • hanair's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 29
  • Thank you received: 0

hanair wrote: So far I tried only simpler projects for cross build, but including some windows message processing etc. Everything works as expected.
Why there is no support for gtk2/3 on Linux32?


Anybody, please?

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

FPS32 on Windows64 Cross Build to Linux 32 bit 8 years 10 months ago #8529

  • Reinier Romero Mir
  • Reinier Romero Mir's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 18
  • Thank you received: 1
In the past i compiled for gtk2 in windows for linux 32 successful you must configure your project for use linux-i386 with the full path in -Fu option, see the picture:
The following user(s) said Thank You: hanair

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

FPS32 on Windows64 Cross Build to Linux 32 bit 8 years 10 months ago #8537

  • hanair
  • hanair's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 29
  • Thank you received: 0

Reinier Romero Mir wrote: In the past i compiled for gtk2 in windows for linux 32 successful you must configure your project for use linux-i386 with the full path in -Fu option, see the picture:


That worked! Thank you...
Why there is no gtk3 on Linux32?

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

FPS32 on Windows64 Cross Build to Linux 32 bit 8 years 10 months ago #8539

  • Reinier Romero Mir
  • Reinier Romero Mir's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 18
  • Thank you received: 1
For gtk3 in linux32 you need to agroup all the gtk3 libraris in a folder like gtk2 and do the same thinks with the -Fu options, maybe you can extract for a gnome3 or cinamon linux32 distro.

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

  • Page:
  • 1