Recent

Author Topic: [SOLVED] ??? I don't even know who or how to ask -Fu  (Read 1718 times)

What I can do

  • Full Member
  • ***
  • Posts: 193
Re: [SOLVED] ??? I don't even know who or how to ask -Fu
« Reply #15 on: February 20, 2026, 05:41:06 pm »
Thausand
Gets this one,
Only I am sorry if it ok but I used ChatGPT instead of wiki stuff, but yes it was not that big a deal Chat got all the menus wrong but the general path was correct. Odd thing Chat has never got the exact menu paths as in 100% always wrong on the exactly correct in over 8 months. no big deal. I use chat because a lot of the seniors in here dedicate some free time to help but with me its a lot of what i do is like asking a Liberian where's the alphabet.
I would like to thank everyone very much.

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1225
Re: [SOLVED] ??? I don't even know who or how to ask -Fu
« Reply #16 on: March 08, 2026, 04:55:16 pm »
OS: Windows 10
FPC: FPC 3.2.2 Lazarus 4.4
What am I doing wrong? I have set the -Fu paths with '\' or '/' makes no difference. Why is ever version of Lazarus get harder and harder to use my external units?


Hi Thausand thank you for the links and both are very technical and in-depth but it seams like one is a install package. I have had massive destruction with packages but you guys have never steered me wrong.
this one Fppkg just a package but this one "https://wiki.freepascal.org/Lazarus_Packages" feel like the package description and Lazarus interacts with it
so i am guessing that Fppkg is the package I need to install to get my external units to be used. Is that what you are suggesting?


Thanks Thausand
 "unit that have many dependency "
i only have three and they are very simple
1. globalrecords (7 records)
2. uToolKit  (14 small unitlities)
3. DBSRDUnit (all DB tree tools)
and Lazarus stops on 1 with "can't find"
This has never been an issue with 4.0 or less


Thausand
I have edited the fpc.cfg file and its -Fu section in these formats but all still have no effect
-FuG:\t\apps\LazarusPrj\projectsessions
-FuG:/t/apps/LazarusPrj/projectsessions
-Fu"G:\t\apps\LazarusPrj\projectsessions"
but Lazarus can not find them
i even used the [Project] Options>path and added it there but still nothing
I tried to use "[Project] Add Editor file to Project " but it is grayed out


Thausand
reading through the fppkg package wiki and it reads to be very heavy for most mapping paths, I would rather drop 4.4 and go back to 4.0 if its not gonna work I will accept that.


Zvoni
Exactly correct procedure but that does not work with my v4.4 it did with 4.0. It will not give me access to those paths but in 4.0 it would and in 4.0 fpc.cfg worked perfectly until 4.4


marcov
yes absolutely, I have a laptop with a SSR main 250M solid state drive which is fast and perfect but just enough room for just the OS. I have a USB3,   3TB that I install Lazarus on and do all my project there. I have to, there is not enough room any where else.


marcov
"Actually I have all the paths to reusable units (including code packages like VST, Indy and dcpcrypt that I don't use designtime) stuffed in a dummy package that I add as a dependency to in all my projects."
What are you doing here is this an add on package, is this some form of config file, is this part of [Project]  / [Tools] or what?


Thanks marcov
no "It sounds a bit complicated," this was very detailed and simple to follow you did good work here
this part "will work on machines that have those dirs in another location." i don't quite understand what you mean...
do I choose a Lazarus default path of some sort
does the package hold the name references and finds what it needs
do the units get bundled with the package and just work
does the package need to be install or just referenced


Thausand
Gets this one,
Only I am sorry if it ok but I used ChatGPT instead of wiki stuff, but yes it was not that big a deal Chat got all the menus wrong but the general path was correct. Odd thing Chat has never got the exact menu paths as in 100% always wrong on the exactly correct in over 8 months. no big deal. I use chat because a lot of the seniors in here dedicate some free time to help but with me its a lot of what i do is like asking a Liberian where's the alphabet.
I would like to thank everyone very much.

@What I can do

Your way of expressing yourself and understanding what is being explained seems to indicate that you are on the autism spectrum (ASD).

If this is the case, don't be ashamed and identify yourself as having ASD.

This will facilitate communication.

We are a community without prejudice and we have other people with ASD here, both asking and answering questions.

Be welcome.

n7800

  • Hero Member
  • *****
  • Posts: 672
  • Lazarus IDE contributor
    • GitLab profile
Re: ??? I don't even know who or how to ask -Fu
« Reply #17 on: March 08, 2026, 07:16:04 pm »
@"What you can do", if I understand correctly, you previously used "fpc.cfg" to add paths to your units, but it doesn't work in the new version of Lazarus? It should work as before, and shouldn't differ between versions.

How exactly did you install the new version? I suspect you have two compilers with different "fpc.cfg" files, and you're editing the wrong one. Make sure you only have one on your system.

n7800

  • Hero Member
  • *****
  • Posts: 672
  • Lazarus IDE contributor
    • GitLab profile
Re: [SOLVED] ??? I don't even know who or how to ask -Fu
« Reply #18 on: March 08, 2026, 07:29:19 pm »
Also make sure that the paths you add are not inside a conditional branching block like this:

Code: [Select]
#IFDEF RELEASE
  -O2
  -Xs
  #WRITE Compiling Release Version
#ENDIF

In the example above, the "-O2"/"-Xs" options will be used only if the "RELEASE" definition is set.

 

TinyPortal © 2005-2018