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

TOPIC:

Cross compiling from win32 to linux32 fails 8 years 1 month ago #9280

  • tatamata
  • tatamata's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 37
  • Thank you received: 3
CT 5.70 on Windows.
I have downloaded CrossBuild/Download Libraries
then CorssBuild/FreePascal 32Bits/FPC32 build cross element ALL.

But, when I try to build executable for linux, I get error:
c:\codetyphon\fpc\fpc32\bin\i386-win32\i386-linux-ld.exe: cannot find -ldl
c:\codetyphon\fpc\fpc32\bin\i386-win32\i386-linux-ld.exe: cannot find -lpthread
c:\codetyphon\fpc\fpc32\bin\i386-win32\i386-linux-ld.exe: cannot find -lgdk-x11-2.0
c:\codetyphon\fpc\fpc32\bin\i386-win32\i386-linux-ld.exe: cannot find -lX11
c:\codetyphon\fpc\fpc32\bin\i386-win32\i386-linux-ld.exe: cannot find -lgdk_pixbuf-2.0
c:\codetyphon\fpc\fpc32\bin\i386-win32\i386-linux-ld.exe: cannot find -lgtk-x11-2.0
c:\codetyphon\fpc\fpc32\bin\i386-win32\i386-linux-ld.exe: cannot find -lgobject-2.0
c:\codetyphon\fpc\fpc32\bin\i386-win32\i386-linux-ld.exe: cannot find -lglib-2.0
c:\codetyphon\fpc\fpc32\bin\i386-win32\i386-linux-ld.exe: cannot find -lgthread-2.0
c:\codetyphon\fpc\fpc32\bin\i386-win32\i386-linux-ld.exe: cannot find -lgmodule-2.0
c:\codetyphon\fpc\fpc32\bin\i386-win32\i386-linux-ld.exe: cannot find -lpango-1.0
c:\codetyphon\fpc\fpc32\bin\i386-win32\i386-linux-ld.exe: cannot find -lcairo
c:\codetyphon\fpc\fpc32\bin\i386-win32\i386-linux-ld.exe: cannot find -latk-1.0
c:\codetyphon\fpc\fpc32\bin\i386-win32\i386-linux-ld.exe: cannot find -lpangocairo-1.0
c:\codetyphon\fpc\fpc32\bin\i386-win32\i386-linux-ld.exe: cannot find -lc
project_Rr(23,1) Error: Error while linking

What should I do? Thanks.

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

Last edit: by tatamata.

Cross compiling from win32 to linux32 fails 8 years 1 month ago #9282

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4508
  • Thank you received: 1100
Simple Sir
Setup your Project Libraries info
PilotLogic Architect and Core Programmer

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

Cross compiling from win32 to linux32 fails 8 years 1 month ago #9284

  • tatamata
  • tatamata's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 37
  • Thank you received: 3
Thanks. Now I can compile to Linux 32, but it didn't help for Linux 64...

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

Cross compiling from win32 to linux32 fails 7 years 11 months ago #9491

  • user01
  • user01's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 29
  • Thank you received: 3
take linux x64 distro and copy all files from there

make sure you copying files, not symlinks. there could be something like gdk-x11-2.0.so.2.0.1. copy it and rename as linker wants.
c:\codetyphon\fpc\fpc32\bin\i386-win32\i386-linux-ld.exe: cannot find -lpthread -> pthread.so
c:\codetyphon\fpc\fpc32\bin\i386-win32\i386-linux-ld.exe: cannot find -lgdk-x11-2.0 -> gdk-x11-2.0.so
c:\codetyphon\fpc\fpc32\bin\i386-win32\i386-linux-ld.exe: cannot find -lX11 -> X11.so
c:\codetyphon\fpc\fpc32\bin\i386-win32\i386-linux-ld.exe: cannot find -lgdk_pixbuf-2.0 -> gdk_pixbuf-2.0.so
etc etc

this will take a good hour. but you only need it once. save them somewhere and point build mode option libraries in




But. linux x86_64 linker is broken since CT 5.70.

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

  • Page:
  • 1