Recent

Author Topic: Compiling Lazarus application in pbuilder  (Read 858 times)

PetrHlozek

  • Newbie
  • Posts: 4
Compiling Lazarus application in pbuilder
« on: May 29, 2022, 06:24:32 pm »
Hi,

I'd like to release new version of my application and when creating deb packages on my machine using pbuilder-dist, I get this error message:

Code: Pascal  [Select][+][-]
  1. 100 263.474/272.544 Kb Used
  2. 200 264.532/273.056 Kb Used
  3. (3104) Compiling fNewQSO.pas
  4. Fatal: (10022) Can't find unit IDEOptionsIntf used by IDEWindowIntf
  5. Fatal: (1018) Compilation aborted
  6. Error: /usr/bin/ppcx64 returned an error exitcode
  7. Error: (lazarus) Compile Project, Target: cqrlog: stopped with exit code 1
  8. Error: (lazbuild) failed compiling of project /build/cqrlog-2.6.0/src/cqrlog.lpi
  9. make[1]: *** [Makefile:9: cqrlog] Error 2
  10. make[1]: Leaving directory '/build/cqrlog-2.6.0'
  11. dh_auto_build: error: make -j1 returned exit code 2
  12. make: *** [debian/rules:13: build] Error 25
  13. dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

The build dependencies:
Code: Pascal  [Select][+][-]
  1. lazarus-ide, lcl, fp-utils, fp-units-misc, fp-units-gfx, fp-units-gtk2, fp-units-db, fp-units-math, fp-units-net, libgtk2.0-0

The pbuilder-dist is started with:
Code: Pascal  [Select][+][-]
  1. pbuilder-dist jammy amd64 build cqrlog_2.6.0-1\~jammy.dsc

Source code of the project:
https://github.com/ok2cqr/cqrlog

Building by
Code: Pascal  [Select][+][-]
  1. lazbuild --ws=gtk2 src/cqrlog.lpi

Compiling on my own machine using make works but it always fails in pbuilder-dist environment. Do you know what could be wrong, please? I'm lost, I have no idea what could be wrong.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 10407
  • FPC developer.
Re: Compiling Lazarus application in pbuilder
« Reply #1 on: May 29, 2022, 06:28:12 pm »
If you want to create things that integrated into the lazarus IDE, you probably need a build dependency on ideintf too.

PetrHlozek

  • Newbie
  • Posts: 4
Re: Compiling Lazarus application in pbuilder
« Reply #2 on: May 29, 2022, 06:37:15 pm »
Quote
If you want to create things that integrated into the lazarus IDE, you probably need a build dependency on ideintf too.

I do not want to create anything integrated to the IDE. My application is not related to Lazarus IDE.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 10407
  • FPC developer.
Re: Compiling Lazarus application in pbuilder
« Reply #3 on: May 29, 2022, 07:10:24 pm »
Then why does it need IDEOptionsIntf, which is an interface to interact with the IDE options menu?

Maybe you accidentally included design time code in your application.

PetrHlozek

  • Newbie
  • Posts: 4
Re: Compiling Lazarus application in pbuilder
« Reply #4 on: June 04, 2022, 04:47:41 pm »
I just searched the project and whole source folder and there is no IDEOptionsIntf found. It found this string only in compiled binary. Could you help me where I should search? Thanks a lot!

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 10407
  • FPC developer.
Re: Compiling Lazarus application in pbuilder
« Reply #5 on: June 04, 2022, 06:51:51 pm »
Add -vu or -va to the compiler parameters, and search for the compiling fnewqso line, and follow the detail steps.

PetrHlozek

  • Newbie
  • Posts: 4
Re: Compiling Lazarus application in pbuilder
« Reply #6 on: June 05, 2022, 06:49:21 pm »
I tried to add -vu and got a lot of data.
The output is here: https://gist.github.com/ok2cqr/cc75a8a9801b5c579a93a282c4ce3d3f

I searched for IDEIMAGESINTF and it seems that this unit is required by frmselectprops. As far as I know, I don't use this unit anywhere in the project. Could you look at the output, please? Thanks a lot.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 10407
  • FPC developer.
Re: Compiling Lazarus application in pbuilder
« Reply #7 on: June 05, 2022, 07:18:33 pm »
As far as I can see, some of the tachart units used (tachartaxis(utils)) seem to use unit propedits which is in ideintf, pulling in more of ideintf.

But that is as far as I can follow it, to judge if this is correct or not needs somebody that is more lazarus savy than I am.


 

TinyPortal © 2005-2018