Recent

Author Topic: Cross build from Windows to Linux32  (Read 528 times)

lainz

  • Hero Member
  • *****
  • Posts: 4714
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Cross build from Windows to Linux32
« on: April 04, 2025, 03:30:05 pm »
Quote
Debug: C:\fpcupdeluxe\cross\bin\i386-linux\i386-linux-gnu-ld.exe: C:\fpcupdeluxe\cross\lib\i386-linux\\libXtst.a(XTest.o): undefined reference to symbol 'XextAddDisplay'
C:\fpcupdeluxe\cross\bin\i386-linux\i386-linux-gnu-ld.exe: C:\fpcupdeluxe\cross\lib\i386-linux\/libXext.so.6: error adding symbols: DSO missing from command line
POSBerry.lpr(102,1) Error: Error while linking
POSBerry.lpr(102,1) Verbose: There were 1 errors compiling module, stopping
Verbose: Compilation aborted
Verbose: C:\fpcupdeluxe\fpc\bin\i386-win32\ppc386.exe returned an error exitcode

First it tell me that libxtst was missing, so I copy from Linux Mint 32. That error is gone. Now I get another error...

I'm using Lazarus 3.4 FPC 3.2.2, cross compiler made with FPCUpDeluxe.

TRon

  • Hero Member
  • *****
  • Posts: 4377
Re: Cross build from Windows to Linux32
« Reply #1 on: April 04, 2025, 04:14:04 pm »
In case you are not doing something exotic like manually linking objects and shared files (where order matters) then use ldd on the libXext.so file to list the dependencies that it relies on. One of those dependencies is probably missing (which usually accounts for such an error).
Today is tomorrow's yesterday.

rca

  • Full Member
  • ***
  • Posts: 102
Re: Cross build from Windows to Linux32
« Reply #2 on: April 04, 2025, 08:20:35 pm »
@lainz
What version of fpcupdeluxe are you using?

The library is already included in "cross\lib\i386-linux": "libXtst.so.6"
Perhaps you just needed to copy and paste it again with the name "libXtst.so"

You can get the libraries again from fpcupdeluxe:
https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/download/crosslibs_all/Linux_i386_Ubuntu_1804.zip

 

TinyPortal © 2005-2018