Recent

Author Topic: Crosscompiling error from Windows towards Linux  (Read 2775 times)

nakisen

  • Newbie
  • Posts: 5
Crosscompiling error from Windows towards Linux
« on: November 04, 2020, 12:07:21 pm »
Hi,

I installed, lazarus64 and "cross compile for Linux" via FPCUPdeluxe. The installation was completed without any errors. I can create a new project and do it in linux cross compilation.

However, if I use the indylaz package, I get an "Error while linking" error.  How can I fix this problem?

OS: Win7 x64
FPC version: 3.3.1
Lazarus version: 2.1.0
Indy version: 10.6.2.0
« Last Edit: November 04, 2020, 12:16:51 pm by nakisen »

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Crosscompiling error from Windows towards Linux
« Reply #1 on: November 04, 2020, 01:20:54 pm »
Most probable cause: you are missing a library to link against.
You must make a few changes to make this visible. See included screenshot of Lazarus filter positions.
Summary:
Switch of filter for messages without source position.
Switch of filter for message urgency.
Compile again.

nakisen

  • Newbie
  • Posts: 5
Re: Crosscompiling error from Windows towards Linux
« Reply #2 on: November 04, 2020, 02:08:36 pm »
Message content is attached. However, there is no detailed error.

nakisen

  • Newbie
  • Posts: 5
Re: Crosscompiling error from Windows towards Linux
« Reply #3 on: November 04, 2020, 02:33:23 pm »
This project is a linux service application. There should be no visual components in the service application. But the message section contains the compilation information of the LCL components. I think the indy is referring to LCL components. Is this true?

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Crosscompiling error from Windows towards Linux
« Reply #4 on: November 04, 2020, 03:13:05 pm »
You use indylaz. That pulls LCL !!

nakisen

  • Newbie
  • Posts: 5
Re: Crosscompiling error from Windows towards Linux
« Reply #5 on: November 04, 2020, 03:30:09 pm »
Two packs were using LCL. From these I removed the LCL dependency. But still the compilation could not be done.

I want to use indy components in linux daemon application. How do I do this?

nakisen

  • Newbie
  • Posts: 5
Re: Crosscompiling error from Windows towards Linux
« Reply #6 on: November 04, 2020, 03:54:37 pm »
I didn't add it, but it worked when I removed the "indylaz" definition from the uses section. Thank you for answering.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Crosscompiling error from Windows towards Linux
« Reply #7 on: November 05, 2020, 08:36:58 pm »
As long as the error is about undefined reference to WSRegisterblablabla, there's still an LCL dependency in your project. I don't use Indy so I don't know if it has non-visual package alongside visual one, but one thing for sure, removing the dependency from the package if it originally depends on it won't solve your problem. At the very least keep the LCL dependency but use nogui widgetset.

 

TinyPortal © 2005-2018