Recent

Author Topic: Packages compiles while compiling project  (Read 813 times)

BSaidus

  • Hero Member
  • *****
  • Posts: 545
  • lazarus 1.8.4 Win8.1 / cross FreeBSD
Packages compiles while compiling project
« on: November 23, 2020, 09:50:34 am »
Hello.
How to disable Compiling packages associated with project,
Every time I compile a project, the packages compiles before.
Code: Pascal  [Select][+][-]
  1. Compile checks, Hints: 15
  2. Compile package FCL 1.0.1: Success
  3. Compile package LazUtils 1.0: Success, Warnings: 47, Hints: 379
  4. Compile package LCLBase 2.0.10: Success, Warnings: 94, Hints: 59
  5. Compile package LCL 2.0.10: Success, Warnings: 30, Hints: 509
  6. Compile package LazControls 1.0.1: Success, Warnings: 2, Hints: 89
  7. Compile package JvCoreLazR 1.0.7: Success, Warnings: 9, Hints: 23
  8. Compile package atflatcontrols_package 2.0: Success, Warnings: 8, Hints: 142
  9. Compile package JvStdCtrlsLazR 1.0.7: Success, Warnings: 1, Hints: 2
  10. Compile package IDEIntf 1.0: Success, Warnings: 10, Hints: 124
  11. Compile package JvPageCompsR 1.0.7: Success, Hints: 7
  12. Compile package SpkToolbarPackage 0.1.7: Success, Warnings: 2, Hints: 34
  13. umain.pas(45,46) Hint: Parameter "CloseAction" not used
  14. umain.pas(154,1) Error: Illegal expression
  15. umain.pas(168,26) Hint: Local variable "MenuItemInfo" does not seem to be initialized
  16.  
  17.  

Thanks.
lazarus 1.8.4 Win8.1 / cross FreeBSD
dhukmucmur vernadh!

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4467
  • I like bugs.
Re: Packages compiles while compiling project
« Reply #1 on: November 23, 2020, 11:17:34 am »
How to disable Compiling packages associated with project,
Every time I compile a project, the packages compiles before.
A dependent package should compile only if something changed in it, or compiler flags differ from previous time, or another package which this package depends on has changed.
Something is wrong if all of them are compiled every time again.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Bart

  • Hero Member
  • *****
  • Posts: 5288
    • Bart en Mariska's Webstek
Re: Packages compiles while compiling project
« Reply #2 on: November 23, 2020, 11:51:18 am »
Similar, but nos as bad:
I build Lazarus from commandline, using make clean bigide OPT="-g -gl"
Then when I immediately after that do a rebuild from with in te IDE, using the same options, it does a complete rebuild of everything.

Bart

wp

  • Hero Member
  • *****
  • Posts: 11906
Re: Packages compiles while compiling project
« Reply #3 on: November 23, 2020, 12:24:32 pm »
Every time I compile a project, the packages compiles before.
I get this when I use "-gw2" as option in "Additions and overrides" of the project options in order to be able to debug packages - this compiles all packages of the project with this debugging parameter. When I then open another project without this option everything is compiled again. This is quite reasonable and to be expected when working with the "master switches" in "Additions and overrides".

Another possibility comes to my mind. Did you manually change the configuration of packages? Under "IDE options" of the package options there are "Update/rebuild" options: "Automatically rebuild as needed", "Autorebuild when rebuilding all", "Manual compilation (never automatically)" -- I could imagine that when you switch from the default ("Automatically rebuild..") to the "Autorebuild when rebuilding all" you might have to recompile a lot of dependent packages, at least when you do "Run" > "Build" or "Run" > "Cleanup and build".

BSaidus

  • Hero Member
  • *****
  • Posts: 545
  • lazarus 1.8.4 Win8.1 / cross FreeBSD
Re: Packages compiles while compiling project
« Reply #4 on: November 23, 2020, 01:24:23 pm »
No, I do not change anything in packager options.
When I install packages in the IDE, I build the IDE with Option "optimised". thats all.

When I Create a project and compile it or Close lazarus and open it and compile project closed, It compile all packages linked to it, even LCL package.

lazarus 1.8.4 Win8.1 / cross FreeBSD
dhukmucmur vernadh!

 

TinyPortal © 2005-2018