Recent

Author Topic: Changes in fppkg. What's next?  (Read 3674 times)

zoltanleo

  • Sr. Member
  • ****
  • Posts: 488
Changes in fppkg. What's next?
« on: January 13, 2019, 12:00:10 pm »
I use:
  • trunk Lazarus r60063 located here <my_dir>\lazarus_21_r60063\ (primary-config-path=<my_dir>\lazarus_21_r60063\_config)
  • trunk fpc r40849 located here <my_dir>\fpc_r40849
  • Win7 x64 Ultim

My fppkg.cfg is here <my_dir>\fpc_r40849\utils\fpcmkcfg and has such content

Code: Pascal  [Select][+][-]
  1. [Defaults]
  2. ConfigVersion=5
  3. LocalRepository=%LocalRepository%
  4. BuildDir={LocalRepository}build/
  5. ArchivesDir={LocalRepository}archives/
  6. CompilerConfigDir=%CompilerConfigDir%
  7. RemoteMirrors=https://www.freepascal.org/repository/mirrors.xml
  8. RemoteRepository=auto
  9. CompilerConfig=default
  10. FPMakeCompilerConfig=default
  11. Downloader=FPC
  12. InstallRepository=user
  13.  
  14. [Repository]
  15. Name=fpc
  16. Description=Packages which are installed along with the Free Pascal Compiler
  17. Path=%GlobalPath%/{CompilerVersion}/
  18. Prefix=%GlobalPrefix%
  19.  
  20. [IncludeFiles]
  21. FileMask=%CompilerConfigDir%/conf.d/*.conf
  22.  
  23. [Repository]
  24. Name=user
  25. Description=User-installed packages
  26. Path={LocalRepository}lib/fpc/{CompilerVersion}/
  27. Prefix={LocalRepository}

Obviously there have been some changes in the use of fppkg, because when I initialize Lazarus I get this warning:

Quote
"An error occurred during the initialization of Fppkg: Could not find a fpc executable in the PATH. Check your Fppkg configuration and restart Lazarus to be able to use Fppkg's functionality."

What should I change to avoid such a warning? I will be very grateful for the detailed and patient explanations.

Win10 LTSC x64/Deb 11 amd64(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

zoltanleo

  • Sr. Member
  • ****
  • Posts: 488
Re: Changes in fppkg. What's next?
« Reply #1 on: January 14, 2019, 11:07:35 am »
Up
Win10 LTSC x64/Deb 11 amd64(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

Zoran

  • Hero Member
  • *****
  • Posts: 1830
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Changes in fppkg. What's next?
« Reply #2 on: February 19, 2019, 01:25:42 pm »
I have the similar problem.
I updated fpc 3.2-fixes (rev. 4138) and lazarus trunk (rev. 60458) and now I get "Error: the Fppkg configuration is corrupt."
Please see the attached picture.

Even more strange is that:
Lazarus 2.0-fixes does not have this problem when compiled with this fpc 3.2-fixes.
Lazarus trunk does not have this problem with fpc 3.0.4
Only the combination of Lazarus trunk and fpc 3.2-fixes.  :o

Might be important to say that I do not have .fpc.cfg in my user folder, but each fpc version has its own in <fpc_install_folder>/lib/fpc/etc/fpc.cfg.

My system - Linux Mint 19.1 xfce 64-bit.

Cyrax

  • Hero Member
  • *****
  • Posts: 836
Re: Changes in fppkg. What's next?
« Reply #3 on: February 19, 2019, 02:19:11 pm »
To solve the fppkg problem, find the hidden .fppkg directory under at the users directory and inside that directory delete default file under config directory. Then at the dialog screen, which pops up when starting the Lazarus IDE first time or there is problem with not founding the FPC source directory or other things etc, tell fppkg to create a new configuration file.

Zoran

  • Hero Member
  • *****
  • Posts: 1830
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Changes in fppkg. What's next?
« Reply #4 on: February 19, 2019, 10:11:11 pm »
To solve the fppkg problem, find the hidden .fppkg directory under at the users directory and inside that directory delete default file under config directory. Then at the dialog screen, which pops up when starting the Lazarus IDE first time or there is problem with not founding the FPC source directory or other things etc, tell fppkg to create a new configuration file.

Hello, Cyrax, thank you for answering, but...
Although' it seems to work for fpc trunk, it does not for fpc-3.2-fixes :(
But, much more important is that even this fpc-trunk "solution" actually write fppkg.cfg directly under my user folder, outside its fpc installation folder. I cannot accept this as a solution, as I would not want fpc instances to interact with each other. They must not have common cfg files. As I said in my previous post:

Might be important to say that I do not have .fpc.cfg in my user folder, but each fpc version has its own in <fpc_install_folder>/lib/fpc/etc/fpc.cfg.
I guess the same must be with fppkg.cfg.

Thank you again for trying to help.

 

TinyPortal © 2005-2018