Forum > Linux
fpc in [home] folder not using any "system" files.
Atle:
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
marcov:
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:
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:
* From: https://sourceforge.net/projects/lazarus/files pick a package that suits your distro
* If you're OK with using a GUI app: https://github.com/LongDirtyAnimAlf/fpcupdeluxe
* If you're NOT OK with using a GUI app: https://github.com/LongDirtyAnimAlf/Reiniero-fpcup It's what fpcupdeluxe uses underneath
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
Atle:
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:
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.
Navigation
[0] Message Index
[#] Next page