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

TOPIC:

Problem:cross-Build on Windows(7) to Linux(Ubuntu) 10 years 11 months ago #4866

  • JFTWIT
  • JFTWIT's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
Hello,
I try to compile a windows application for linux i386.
I have 2 problems:
First:
when I give the path to the Library (-Fl) "C:\codetyphon\binLibraries\i386-linux\" and I left the window "Project/Option" I have the following warning:
The library search path contient a missing path:
C:\codetyphon\typhon\lcl\interfaces\opt\gnome\lib

Second:
I have the following link error:
EasyFPC.dpr(106,1) Warning: "crti.o" not found, this will probably cause a linking failure
EasyFPC.dpr(106,1) Warning: "crtbegin.o" not found, this will probably cause a linking failure
EasyFPC.dpr(106,1) Warning: "crtend.o" not found, this will probably cause a linking failure
EasyFPC.dpr(106,1) Warning: "crtn.o" not found, this will probably cause a linking failure
c:\codetyphon\fpc\bin\i386-win32\i386-linux-ld.exe: warning: C:\K2\Exe\ObjFPC\link.res contains output sections; did you forget -T?
c:\codetyphon\fpc\bin\i386-win32\i386-linux-ld.exe: cannot find -liphlpapi.dll
EasyFPC.dpr(106,1) Error: Error while linking
EasyFPC.dpr(106,1) Fatal: There were 1 errors compiling module, stopping

I think, I'm missing the installation of a library in link with Ubuntu, but what and how?

Thank you for your help
Best regards

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

Problem:cross-Build on Windows(7) to Linux(Ubuntu) 10 years 11 months ago #4868

  • JFTWIT
  • JFTWIT's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
I found this similar topic to my problem
www.pilotlogic.com/sitejoom/index.php/fo...x-missing-files#4453

but, the files are not found !

for linux32
www.pilotlogic.com/codetyphon/crosslibraries/i386-linux.7z
and linux64
www.pilotlogic.com/codetyphon/crosslibraries/x86_64-linux.7z


Thank you for your help

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

Problem:cross-Build on Windows(7) to Linux(Ubuntu) 10 years 11 months ago #4869

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Open CTC
1-Click "Download Libraries" icon
2-"Get Server list Files"
3-Select Libraries and click "Start Download"

PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

Problem:cross-Build on Windows(7) to Linux(Ubuntu) 10 years 11 months ago #4871

  • JFTWIT
  • JFTWIT's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
Hello Sternas,
thank you for your reply, but this solves part of the problem.

I still have the following error:
c:\codetyphon\fpc\bin\i386-win32\i386-linux-ld.exe: cannot find -liphlpapi.dll
EasyFPC.dpr(106,1) Error: Error while linking
EasyFPC.dpr(106,1) Fatal: There were 1 errors compiling module, stopping

Thank you for your help

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

Problem:cross-Build on Windows(7) to Linux(Ubuntu) 10 years 11 months ago #4872

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
What Components libraries use your project ?
PilotLogic Architect and Core Programmer

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

Problem:cross-Build on Windows(7) to Linux(Ubuntu) 10 years 11 months ago #4881

  • JFTWIT
  • JFTWIT's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
I did not exactly understand your question, so here are the different parts of my project:

In the field (-Fl):
C:\codetyphon\binLibraries\i386-linux\;
C:\codetyphon\fpc\units\i386-linux\

The Typhon Center is:


And the Components libraries:


For OS target Win32, the compilation and link are correct.

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

Problem:cross-Build on Windows(7) to Linux(Ubuntu) 10 years 11 months ago #4884

  • avra
  • avra's Avatar
  • Visitor
  • Visitor

Tyrrell wrote: c:\codetyphon\fpc\bin\i386-win32\i386-linux-ld.exe: cannot find -liphlpapi.dll


According to this page , "iphlpapi.dll is a module containing the functions used by the Windows IP Helper API". If that is correct, then you can hardly link against it to create linux application and you must find a way to replace it's features with something known to linux. In other words find what functionality it provides that you use, and try to use something else with similar functionality in linux version (or even better try to find something that is cross platform and replace it also in your windows version.

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

Last edit: by avra.

Problem:cross-Build on Windows(7) to Linux(Ubuntu) 10 years 11 months ago #4886

  • JFTWIT
  • JFTWIT's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
Hello Avra,

I understand that this dll is specific to Windows, but I do not call in my project.
I think it's the library that does, but I do not know which.
In my "net" unit, I use "Sockets" and I think it's common linux/Win32 !

If you have an idea

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

Problem:cross-Build on Windows(7) to Linux(Ubuntu) 10 years 11 months ago #4891

  • JFTWIT
  • JFTWIT's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
I find my problem :)
a function in an include file called this DLL !!!

sorry for the inconvenience
Best regards

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

Problem:cross-Build on Windows(7) to Linux(Ubuntu) 10 years 11 months ago #4892

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Thanks Sir
PilotLogic Architect and Core Programmer

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

  • Page:
  • 1