Recent

Author Topic: fpc in [home] folder not using any "system" files.  (Read 3690 times)

Atle

  • Newbie
  • Posts: 3
fpc in [home] folder not using any "system" files.
« on: July 15, 2025, 03:21:22 pm »
Hello folks!

I'm trying to get fpc to work from [home] folder
I have installed fpc boottrap 3.2.0
and from that i have compiled 3.2.2 it gave no errors.
(/home/Atle/Bibliotek/lazarus/fpc/3.2.2/bin/fpc -iV
3.2.2)

Then i'm forcing lazarus to use my local fpc.cfg file.
# Konfigurasjon for local FPC 3.2.2 og Lazarus
# Unit paths for FPC RTL and FCL
-Fu/home/Atle/Bibliotek/lazarus/fpc/3.2.2/lib/fpc/3.2.2/units/x86_64-linux/rtl/*
-Fu/home/Atle/Bibliotek/lazarus/fpc/3.2.2/lib/fpc/3.2.2/units/x86_64-linux/fcl-base/*
-Fu/home/Atle/Bibliotek/lazarus/fpc/3.2.2/lib/fpc/3.2.2/units/x86_64-linux/*

# Unit paths for Lazarus LCL (inkludert nonwin32 for messages.pp)
-Fu/home/Atle/Bibliotek/lazarus/lazarus/lcl/*
-Fu/home/Atle/Bibliotek/lazarus/lazarus/lcl/nonwin32/*
-Fu/home/Atle/Bibliotek/lazarus/lazarus/lcl/forms/*
-Fu/home/Atle/Bibliotek/lazarus/lazarus/lcl/widgetset/*
-Fu/home/Atle/Bibliotek/lazarus/lazarus/lcl/units/x86_64-linux/gtk2/*
-Fu/home/Atle/Bibliotek/lazarus/lazarus/components/lazutils/lib/x86_64-linux/*
-Fu/home/Atle/Bibliotek/lazarus/lazarus/components/freetype/lib/x86_64-linux/*
-Fu/home/Atle/Bibliotek/lazarus/lazarus/packager/units/x86_64-linux/*

# Include paths for LCL (inkludert nonwin32 for messages.pp)
-Fi/home/Atle/Bibliotek/lazarus/lazarus/lcl
-Fi/home/Atle/Bibliotek/lazarus/lazarus/lcl/include
-Fi/home/Atle/Bibliotek/lazarus/lazarus/lcl/nonwin32

# Compiler options
-O2
-n
-Scghi
-Cg
-g
-gl

# Avoid system configuration
-Xd

When i try to compile i get this errors.

Warning: Recompiling Gtk2Int, checksum changed for /home/Atle/Bibliotek/lazarus/fpc/3.2.2/lib/fpc/3.2.2/units/x86_64-linux/fv/dialogs.ppu
gtk2int.pas(14,44) Error: Can't find unit Gtk2Int used by Interfaces

Wich Gtk2int is not found?
I do have the following in path
/home/Atle/Bibliotek/lazarus/lazarus/lcl/units/x86_64-linux/gtk2/gtk2int.o
/home/Atle/Bibliotek/lazarus/lazarus/lcl/interfaces/gtk2/gtk2int.pas
/home/Atle/Bibliotek/lazarus/lazarus/lcl/units/x86_64-linux/gtk2/gtk2int.ppu

I tried to add Fu/home/Atle/Bibliotek/lazarus/lazarus/lcl/interfaces/gtk2/* to the cfg file hoping it would recompile.
but that was a panic solution i thing, anyway it did not work.

When i use clean up and build i can see that the files

Can anyone help me pleace?

My OS is fedora 42
« Last Edit: July 15, 2025, 03:23:41 pm by Atle »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12905
  • FPC developer.
Re: fpc in [home] folder not using any "system" files.
« Reply #1 on: July 15, 2025, 03:52:59 pm »
Try putting the lazarus -Fu's before the FPC -Fu.

Reason: both FPC and Lazarus have an unit Dialogs.    Lazarus for the VCL, and FPC for the Turbo Vision clone "Free Vision"

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1353
  • Professional amateur ;-P
Re: fpc in [home] folder not using any "system" files.
« Reply #2 on: July 15, 2025, 03:54:17 pm »
Hey Atle,

I'm not even gonna touch your question because from a quick look, it's too confusing what you're trying to do.

Here's some suggestions, please pick on that suits to you:

Option 1 will install system wide. If that's not what you want, then options 2 and 3 will install in ANY folder you specify under ${HOME} with source code cloned from GitLab.

EDIT:
If you use fpcupdeluxe and have installed trunk, updating to the most recent state of trunk is a button away.
If you want to install previous stable versions: Yeap, 1 button away and tucked in it's self contained folder. I have like 7 previous stable versions installed in my Ubuntu system :D
If you want to install cross-compilers, under fpcupdeluxe, it's 2 radio buttons plus a button away.

This will make it so you don't have to roll out your own install scripts. Someone else has already done it for you ;)

Hope this helps !!

Cheers,
Gus
« Last Edit: July 15, 2025, 04:03:40 pm by Gustavo 'Gus' Carreno »

Atle

  • Newbie
  • Posts: 3
Re: fpc in [home] folder not using any "system" files.
« Reply #3 on: July 16, 2025, 08:04:01 pm »
This is the reason i do not use fpcdeluxe on my fedora with KDE plasma and wayland.

In summary, while it is possible to install FPC and Lazarus on Fedora using fpcupdeluxe, users should be aware of potential compatibility issues with Qt5, especially when using the trunk version of Lazarus. It is recommended to either use the stable version or ensure that the necessary libraries are properly installed and configured.

If you can confirm fpcdeluxe is safe for my configuation i would be happy to use it.

I have now struggled 4 days and i finally got lazarus to use only local files. [files located in [home] and it comppiles with no errors.
It was a struggle and neded lot of twirking in fpc.cfg
And a lot of params in project.options.

Still I'm not 100% satisfied
Would happily use fpcdeluxe.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1877
Re: fpc in [home] folder not using any "system" files.
« Reply #4 on: July 16, 2025, 08:32:39 pm »
Well. Using fpcupdeluxe will not harm you or your system. Just use it, try it and delete it.
And QT[5/6] has nothing to do with fpcupdeluxe. It's a part of Lazarus and you can build it yourself.

Atle

  • Newbie
  • Posts: 3
Re: fpc in [home] folder not using any "system" files.
« Reply #5 on: July 17, 2025, 06:00:44 pm »
I send this to give you a big Thank you!.
After yours message and my answer, i decided to give FCPUPDeluxe a try.

Wow its amazing!
It isolates the different installations needed.
Now it's easily to compile WIN64 programs on my fedora.
Thank you for convincing me to give it a try,

I installed for Qt6 and after initial problems i found that i had to manually had to copy
libQt6Pas.so.6 in to the project catalog.

After that every thing worked fine.

Thanks again
« Last Edit: July 17, 2025, 06:05:44 pm by Atle »

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1353
  • Professional amateur ;-P
Re: fpc in [home] folder not using any "system" files.
« Reply #6 on: July 18, 2025, 01:23:59 am »
Hey Atle,

Wow its amazing!
It isolates the different installations needed.
Now it's easily to compile WIN64 programs on my fedora.

Not usually one to sai I told you so, but I'll indulge in some satire and say: I told'ya so :D

Nevertheless, I'm overjoyed that you entered the happy family of fpcupdeluxe customers!!!

May your updates be swift, and your cross-compilations be many !!! 🖖

Cheers,
Gus

 

TinyPortal © 2005-2018