Recent

Author Topic: Command line building application with external package (fpspreadsheet)  (Read 707 times)

martinrame

  • Full Member
  • ***
  • Posts: 119
Hi, I usually build a CGI application on a headless Linux server using "lazbuild -B myapp.lpi". Now I want to add an Excel export feature, and I'm trying to use laz_fpspreadsheet.lpk for this.

Until now I can build the lpk with: lazbuild laz_fpspreadsheet.lpk, this compiles without issues.

Then I added it to the RequiredPackages section or myapp.lpi:

Code: Pascal  [Select][+][-]
  1.     <RequiredPackages Count="2">                                                                                                                                                                
  2.       <Item1>                                                                                                                                                                                  
  3.         <PackageName Value="LazUtils"/>                                                                                                                                                        
  4.       </Item1>                                                                                                                                                                                  
  5.       <Item2>                                                                                                                                                                                  
  6.         <PackageName Value="BrookRT"/>                                                                                                                                                          
  7.       </Item2>                                                                                                                                                                                  
  8.       <Item3>                                                                                                                                                                                  
  9.         <PackageName Value="laz_fpspreadsheet"/>                                                                                                                                                
  10.       </Item3>                                                                                                                                                                                  
  11.     </RequiredPackages>
  12.  

But when I build my app with: lazbuild -B myapp.lpi I get "Fatal: (10022) Can't find unit fpspreadsheet used by ....".

Can someone help me adding the package so I can build my app?.

bytebites

  • Hero Member
  • *****
  • Posts: 639
Re: Command line building application with external package (fpspreadsheet)
« Reply #1 on: December 01, 2020, 02:57:34 pm »
Does it have any effect if you change
RequiredPackages Count="3"

martinrame

  • Full Member
  • ***
  • Posts: 119
Re: Command line building application with external package (fpspreadsheet)
« Reply #2 on: December 01, 2020, 03:02:46 pm »
Yes!, that worked.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5469
  • Compiler Developer
Re: Command line building application with external package (fpspreadsheet)
« Reply #3 on: December 02, 2020, 09:18:13 am »
Yes!, that worked.

Maybe best change project requirements from within the IDE. This way the project file is changed consistently.

 

TinyPortal © 2005-2018