I am trying to automate the installation of my package in the IDE from the command line using ( this ).
When using the IDE, the package installs correctly, and my components are displayed in the Lazarus palette.
To check the steps of the article, after installation using the IDE, I copied the idemake.cfg , packagefiles.xml and staticpackages.inc from C:\Users\<user_name>\AppData\Local\lazarus to a temporary folder, so I have my package registered there .
Then I tried without success:
1. removed my package from the IDE
2. called make clean all from c:\Lazarus
3. called lazbuild and built my package
4. copied all saved files ( idemake.cfg , packagefiles.xml and staticpackages.inc ) to C:\Users\<user_name>\AppData\Local\lazarus
5. copied idemake.cfg to c:\Lazarus
6. Created a .lpl file for my package and placed it in C:\Lazarus\packager\globallinks
7. finally named make idepkg from c:\Lazarus
8. alternatively tried make bigide and lazbuild --build-ide= with the same result
When the Lazarus IDE was created and launched, I could see my package among the installed packages, but green "+" marked. The palette also skipped my components.
If I select Tool -> Build Lazarus with profile: Build IDE with Packages , it will make my package correctly installed after the IDE is restored a second time.
Version Information:
Lazarus: 0.9.30.2
FPC: 2.4.4
OS: Win 7
Am I missing something? Is there an alternative for registering packages from the command line without an IDE?
Thanks in advance.
source share