× General discussions, feature requests for CodeTyphon Project and discussions that don't fit in any of the other specific CodeTyphon forum categories.

Solved Crosscompile win32 - linux386/x86-64

  • Void
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 years 4 weeks ago - 4 years 4 weeks ago #9977 by Void
Hi, i need help with porting my windows project to desktop linux. I have 3 targets (crosscompiling from win32):
- win32 (desktop) - successful
- linux arm (raspberry) - successful
- linux i386 or x86-64 (desktop) - failed with errors:

target i386:
C:\codetyphon\binLibraries\x86_64-linux\crti.o: file not recognized: File format not recognized

target x86-64:
c:\codetyphon\fpc\fpc32\bin\i386-win32\x86_64-linux-ld.exe: cannot find -lrt

I'm not sure where to find -lrt ... I tried to move project to linux machine and compile it there but codetyphon on Linux has serious problem with TIdTCPServer (After placing on form blank error displayed and most of component properties are inaccessible). I need to find a way how to execute my app on linux systems with x86 processors. Thanks for suggestions.

Win64 crossbuild element i386 and x86-64 fails with error:

Could Not Find C:\codetyphon\fpcsrc\compiler\*.exe
Could Not Find C:\codetyphon\fpcsrc\compiler\utils\*.exe
Could Not Find c:\codetyphon\fpcsrc\utils\*.exe
Could Not Find c:\codetyphon\fpcsrc\fpcmade.*
Could Not Find c:\codetyphon\fpcsrc\Package.fpc
Could Not Find c:\codetyphon\fpcsrc\*.ppu
Could Not Find c:\codetyphon\fpcsrc\compiler\*.o
Could Not Find c:\codetyphon\fpcsrc\packages\*.o
Could Not Find c:\codetyphon\fpcsrc\ide\*.o
Could Not Find c:\codetyphon\fpcsrc\installer\*.o
Could Not Find c:\codetyphon\fpcsrc\utils\*.o
Could Not Find c:\codetyphon\fpcsrc\packages\xforms\fd2pascal*

A subdirectory or file ..\..\fpc\fpc64 already exists.
File not found - *.*
0 File(s) copied

???????????????????????????????????????????????????????????
[ERROR]: win64 Cross Element for i386-linux Param:xxxx NOT Exists
sorry, Cross Build procedure STOP
???????????????????????????????????????????????????????????

Environment:
Win10 64bit
CT 5.8
Last edit: 4 years 4 weeks ago by Void.

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
4 years 4 weeks ago #9980 by Sternas Stefanos
Replied by Sternas Stefanos on topic Crosscompile win32 - linux386/x86-64
Thanks Sir
1) We will check and fix pl_Indy problem with TIdTCPServer on Linux
2)C:\codetyphon\binLibraries\x86_64-linux\ OS libraries are for Linux64 target

3) On windows FPC64 has cross-build problems, use FPC32

PilotLogic Architect and Core Programmer

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

  • Void
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 years 4 weeks ago #9982 by Void
Replied by Void on topic Crosscompile win32 - linux386/x86-64
Hi thanks for answer I checked it one more time and rebuilded x86-64 packaged. Tested clean project - ok.

With indy TidTCPserver again target x86-64:
c:\codetyphon\fpc\fpc32\bin\i386-win32\x86_64-linux-ld.exe: cannot find -lrt

So i think lrt is something related to indy.

(btw more indy server are problematic on linux)

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
4 years 4 weeks ago #9983 by Sternas Stefanos
Replied by Sternas Stefanos on topic Crosscompile win32 - linux386/x86-64
"(btw more indy server are problematic on linux)"

Yes and this is the main problem...

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

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

  • Void
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 years 4 weeks ago - 4 years 4 weeks ago #9984 by Void
Replied by Void on topic Crosscompile win32 - linux386/x86-64
Ok I´m sorry i found in my recents, that angelo solved that before with renaming library librt.so.1 To librt.so. ( www.pilotlogic.com/sitejoom/index.php/fo...indy-crossbuild#9480 )

After renaming library was compilation successful :) Thank you for help and time.
Last edit: 4 years 4 weeks ago by Void.

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
4 years 4 weeks ago - 4 years 4 weeks ago #9985 by Sternas Stefanos
Replied by Sternas Stefanos on topic Crosscompile win32 - linux386/x86-64
Please Sir
Download OS libraries again and test...

-lrt =librt.so Not exist in old OS libraries

so we add a renamed librt.so.1 => librt.so

and have fun....:)

PilotLogic Architect and Core Programmer
Last edit: 4 years 4 weeks ago by Sternas Stefanos.
The following user(s) said Thank You: Void

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

  • Void
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 years 4 weeks ago - 4 years 4 weeks ago #9986 by Void
Replied by Void on topic Crosscompile win32 - linux386/x86-64
Yes working now (after renaming).

Sternas Stefanos wrote: Please Sir
Download OS libraries again and test...

-lrt =librt.so Not exist in old OS libraries

so we add a renamed librt.so.1 => librt.so

I am waiting for the results

Last edit: 4 years 4 weeks ago by Void.

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