Welcome, Guest
Username: Password: Remember me
CodeTyphon MS Windows (Win7, Win8.x, Win10 and Win11) OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

cannot compile for linux 9 years 6 months ago #6139

  • Angelo Mangiaracina
  • Angelo Mangiaracina's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 64
  • Thank you received: 0
Hi. somebody may explain to me the exact sequence preparation steps that I must do to cross complie from Windows 7 64 for linux 32 and 64?
I did this:

libraries download.
fcp compiler 32 and 64 generation.
tool chain build using i386 host and x86_64.

compiling from typhon 32 for linux 32 target linux cpu i386 get the following error:
Fatal: Cannot find unit system used by fcllaz of package FCL.

Thank you

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

cannot compile for linux 9 years 6 months ago #6144

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4512
  • Thank you received: 1101
Sir My Suggestions:
-Update and build Lab CT 5.10 Revision: 005021 (has a lot of cross build fixes)
-Use Typhon32 (Win FPC64 has some problems with 32 cross targets)
and test again
PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

cannot compile for linux 9 years 6 months ago #6146

  • Angelo Mangiaracina
  • Angelo Mangiaracina's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 64
  • Thank you received: 0
Hi, I have done as you said but now I get c:\codetyphon\fpc\fpc32\bin\i386-win32\i386-linux-ld.exe: cannot find -lc.
Maybe must I build the toolchain for i386-linux?

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

cannot compile for linux 9 years 6 months ago #6147

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4512
  • Thank you received: 1101
Build i386-linux FPC32 Element
and Download and OS-Library (i386-linux)
PilotLogic Architect and Core Programmer

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

cannot compile for linux 9 years 5 months ago #6158

  • Angelo Mangiaracina
  • Angelo Mangiaracina's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 64
  • Thank you received: 0
Hi I have done it. But this is what I get:

Compila il progetto, OS: linux, Target: project1: Codice di uscita 1, Errori: 1, avvertimenti: 4
project1.lpr(20,1) Warning: "crti.o" not found, this will probably cause a linking failure
project1.lpr(20,1) Warning: "crtbegin.o" not found, this will probably cause a linking failure
project1.lpr(20,1) Warning: "crtend.o" not found, this will probably cause a linking failure
project1.lpr(20,1) Warning: "crtn.o" not found, this will probably cause a linking failure
C:\ProveWinCE\ProvaLinux\project1.lpr(20,1) Warning: (9034) "crti.o" not found, this will probably cause a linking failure
C:\ProveWinCE\ProvaLinux\project1.lpr(20,1) Warning: (9034) "crtbegin.o" not found, this will probably cause a linking failure
C:\ProveWinCE\ProvaLinux\project1.lpr(20,1) Warning: (9034) "crtend.o" not found, this will probably cause a linking failure
C:\ProveWinCE\ProvaLinux\project1.lpr(20,1) Warning: (9034) "crtn.o" not found, this will probably cause a linking failure
c:\codetyphon\fpc\fpc32\bin\i386-win32\i386-linux-ld.exe: warning: link.res contains output sections; did you forget -T?
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 -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 -lgdk-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 -lc
project1.lpr(20,1) Error: Error while linking

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

cannot compile for linux 9 years 5 months ago #6159

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4512
  • Thank you received: 1101
Sir
you must download OS-Libraries for i386-Linux
-from our Download Web Session here OR
-from CTCenter info

On Unix systems the "linker" want OS libraries to link (write) the used by you application procedures address in to your Executable ...

CT cross-build procedure is the same for all target OSes like this
PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

cannot compile for linux 9 years 5 months ago #6160

  • Angelo Mangiaracina
  • Angelo Mangiaracina's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 64
  • Thank you received: 0
Hi I upload a file that shows the overall picture and the exact senquence of actions that i have done. Please let me know if there is something wrong with this.

Thank you

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

  • Page:
  • 1