Author Topic: Cannot find StrUtils used by LazUTF8  (Read 1199 times)


  • New Member
  • *
  • Posts: 27
Re: Cannot find StrUtils used by LazUTF8
« Reply #15 on: December 20, 2022, 08:39:50 pm »
Thank you Marc
The answer why some the unit not found is in the last part of the output.  Since you have a lot of search paths, the first 4k only shows the first few units searched. Can you attach the last 4k too ?
The last 4K are attached here. I took a look at them, cannot connect them to the issue.

Thank you wp
You are on Windows where you can create a new installation within less than 10 minutes. Use a secondary installation to leave your current installation alone. Then simply test whether the problem still exists - very probably it will be solved.
This is a secondary installation with its own config folder.
Only my application code and the and my and third party packages are at same place(for both installations)
(I installed one more Lazarus copy, the packages are not yet installed. I'll try with it and will write if it is the same issue)

Thank you Martin_fr
1) Check where your primary config is. Menu: View > Ide Internals > About IDE => Search for "primary config path"

It is a secondary installation. The wrong path is not in the About IDE data

Code: Pascal  [Select][+][-]
  1. Global IDE options:
  2. Primary config directory=C:\Lazarus64Config
  3. Secondary config directory=C:\lazarus64
  4. LazarusDirectory=C:\lazarus64\
  5. Real LazarusDirectory=C:\lazarus64\
  6. Default CompilerFilename=$(Lazarusdir)\fpc\3.2.2\bin\x86_64-win64\fpc.exe
  7. Real Default CompilerFilename=C:\lazarus64\fpc\3.2.2\bin\x86_64-win64\fpc.exe
  8. Project CompilerFilename=$(CompPath)
  9. Real Project CompilerFilename=C:\lazarus64\fpc\3.2.2\bin\x86_64-win64\fpc.exe
  10. CompilerMessagesFilename=
  11. Real CompilerMessagesFilename=C:\lazarus64\components\codetools\fpc.errore.msg
  12. FPC source directory=$(LazarusDir)fpc\$(FPCVer)\source
  13. Real FPC source directory=C:\lazarus64\fpc\3.2.2\source\
  14. Test directory=C:\Users\danie\AppData\Local\Temp\
  15. Real Test directory=C:\Users\danie\AppData\Local\Temp\

I will try the approaches you wrote about. Will write what is the result.

However, it looks like there is something common between the installations which is in my application or the packages folder.

I checked also the environment variables, the wrong path is also not there. (I'm almost sure that it cannot be Windows registry).
So, for me it is on some third place.

Also, I'll be happy if someone connects to my pc with AnyDesk, to personally check the issue. (may be I'm missing something obvious)
I'll be happy to offer some money for the support (regardless if we find the problem, just for the time spend on my issue)


  • New Member
  • *
  • Posts: 27
Re: Cannot find StrUtils used by LazUTF8
« Reply #16 on: December 20, 2022, 11:24:27 pm »
I found the issue
There is fpc.cfg file in my application folder. I've just renamed it and it compiled.
The wrong path was inside this fpc.cfg.

I don't know how it appear there and what is the purpose to have it there.
Actually I don't need any special configuration for the application

Thanks all for the help. Sorry to bother you


  • Administrator
  • Hero Member
  • *
  • Posts: 2565
Re: Cannot find StrUtils used by LazUTF8
« Reply #17 on: December 21, 2022, 10:33:34 am »
Glad you found it. I somehow recall that when I had such issues, the fpc.cfg used was logged in the output. IIRC I used the -vut option (I can't remmeber if I used -va)

//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker


TinyPortal © 2005-2018