Recent

Author Topic: [solve] What does this warning mean? - ExCtrlsPkg  (Read 3645 times)

Nicole

  • Hero Member
  • *****
  • Posts: 1281
[solve] What does this warning mean? - ExCtrlsPkg
« on: January 07, 2023, 12:12:48 pm »
Warning: other unit files search path (aka unit path) of "ExCtrlsPkg 0.0" contains "C:\lazarus\myKomponenten\exctrls_lazarus-ccr-svn-r8670-components\source", which belongs to package "ExCtrlsPkg_dsgn"

And what to do about?
Thanks
« Last Edit: January 11, 2023, 07:06:24 pm by Nicole »

Thaddy

  • Hero Member
  • *****
  • Posts: 18529
  • Here stood a man who saw the Elbe and jumped it.
Re: What does this warning mean? - ExCtrlsPkg
« Reply #1 on: January 07, 2023, 12:16:02 pm »
Make sure the runtime package and the design package use the same paths for shared code. There is duplicate code in the paths.. Not a good idea....
1. Make sure the design package is dependent on the runtime package, not the other way around. That is a big mistake. A runtime package should NEVER be dependent on the design package, EVER.
2. Make sure both are dependent on the same source code. The EXACT same, paths and all, not a copy anywhere else.
« Last Edit: January 07, 2023, 12:48:29 pm by Thaddy »
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

wp

  • Hero Member
  • *****
  • Posts: 13275
Re: What does this warning mean? - ExCtrlsPkg
« Reply #2 on: January 07, 2023, 02:49:17 pm »
The problem was that runtime and designtime units were contained in the same source folder. Now the registration unit (the only one needed by the designtime package) was moved into a split-off directory which hopefully removes the warning.

Nicole

  • Hero Member
  • *****
  • Posts: 1281
Re: What does this warning mean? - ExCtrlsPkg
« Reply #3 on: January 07, 2023, 04:19:32 pm »
I am afraid, I do not know, what to do.
The file, which I needed I found here:

https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tarball?path=/components/exctrls

I copied it into an own directory. Sooner or later I lost my command. The online package manager had sometimes older versions as online. Sometimes it chose a directory by itself.

Which steps do you recommend to clean up?
Probably Thaddy told me the answer already, but I understood only half of it.
"Make sure the design package is dependent on the runtime package".... aeh, how?

Can you please tell a dummy what to do that the above mentioned component is integrated properly. Thanks.

jcmontherock

  • Sr. Member
  • ****
  • Posts: 322
Re: What does this warning mean? - ExCtrlsPkg
« Reply #4 on: January 07, 2023, 04:56:23 pm »
You are right. I have the same message for another package. Practically, what we have to do ?
Windows 11 UTF8-64 - Lazarus 4.4-64 - FPC 3.2.2

wp

  • Hero Member
  • *****
  • Posts: 13275
Re: What does this warning mean? - ExCtrlsPkg
« Reply #5 on: January 07, 2023, 05:37:19 pm »
Can you please tell a dummy what to do that the above mentioned component is integrated properly. Thanks.

I have the same message for another package. Practically, what we have to do ?

You can't do anything except to contact the author and ask him to fix this. He must fix the search path for the package files, or rearrange the files into separate directories.

I did the latter for the ExCtrls package in the ccr repository, and it should be fine now. ExCtrls has not yet been submitted for inclusion in OPM, but you can use svn to get the latest version from ccr (https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/exctrls/) or download the snapshot of the current revision from this site. Follow the installation instruction at https://wiki.freepascal.org/ExCtrls#Installation.

Nicole

  • Hero Member
  • *****
  • Posts: 1281
Re: What does this warning mean? - ExCtrlsPkg
« Reply #6 on: January 07, 2023, 07:08:58 pm »
Thank you, it is downloading at the moment.

About the installation:
Must I uninstall anything before?
I seem to have 2 versions or only 2 paths?

Or will it just work, if I do this:
- put the unzipped files into c:\Lazarus\myKomponenten\
- open the lpk
- re-compile the IDE

wp

  • Hero Member
  • *****
  • Posts: 13275
Re: What does this warning mean? - ExCtrlsPkg
« Reply #7 on: January 07, 2023, 07:25:22 pm »
About the installation:
Must I uninstall anything before?
No.

Or will it just work, if I do this:
- put the unzipped files into c:\Lazarus\myKomponenten\
Yes, but make sure that the package is in its own directory. And when unzipping keep the folder structure of the files in the zip.

- open the lpk
- re-compile the IDE
Yes. You'll notice that there are two lpk files: exctrlspkg.lpk is the runtime package - it's enough to open it so that the IDE can store where the package is. And exctrls_dsgn.lpi which is the designtime package: open it, then click "Use" > "Install" to install it by rebuilding the IDE.

Nicole

  • Hero Member
  • *****
  • Posts: 1281
Re: What does this warning mean? - ExCtrlsPkg
« Reply #8 on: January 09, 2023, 04:04:36 pm »
Completely stuck.
I cannot use Lazarus any more. The compilitation is stuck, the error comes again and I cannot even delete or uninstall the component.

WooBean

  • Sr. Member
  • ****
  • Posts: 301
Re: What does this warning mean? - ExCtrlsPkg
« Reply #9 on: January 09, 2023, 04:12:09 pm »
Well, the rescue is to find file "lazarus.old.exe" located in the directory where lazarus.exe is present and rename lazarus.old.exe to lazarus.exe.
Platforms: Win7/64, Linux Mint 22.1 Xia

Nicole

  • Hero Member
  • *****
  • Posts: 1281
Re: What does this warning mean? - ExCtrlsPkg
« Reply #10 on: January 09, 2023, 04:46:13 pm »
Thank you so much! You saved my day to work on.



So my Lazarus starts again, these 2 problems remain.

1) I do not have compiling files for Lazarus any more (see screenshot), any attempts ends up by with the error-message at the screenshot. "remove component" did not work.

2) the installation of the package is still not solved

Handoko

  • Hero Member
  • *****
  • Posts: 5508
  • My goal: build my own game engine using Lazarus
Re: What does this warning mean? - ExCtrlsPkg
« Reply #11 on: January 09, 2023, 04:55:47 pm »
Maybe can be solved by editing packagefiles.xml.

I had bad days, a component could not be uninstalled nor reinstalled. Rebuilding the IDE would fail and reinstalling Lazarus could not fix the problem.

I found that the installed component was 'registered' in packagefiles.xml. So I manually removed the component from the file. It worked. Also if I remember correctly, simply deleting the packagefiles.xml will cause Lazarus to populate the file back to the default.

Make backup before editing/removing the file.
You should rebuild the IDE after altering the file.

WooBean

  • Sr. Member
  • ****
  • Posts: 301
Re: What does this warning mean? - ExCtrlsPkg
« Reply #12 on: January 09, 2023, 05:09:34 pm »
If I were you I would try to get a stable Lazarus IDE - first try to start a new project and compile the simpliest program. If this trial was OK then start from IDE main menu Package /<Install/uninstall packages> option and then remove last problematic packages.
« Last Edit: January 09, 2023, 05:33:19 pm by WooBean »
Platforms: Win7/64, Linux Mint 22.1 Xia

wp

  • Hero Member
  • *****
  • Posts: 13275
Re: What does this warning mean? - ExCtrlsPkg
« Reply #13 on: January 09, 2023, 07:04:41 pm »
While I normally work with Laz/main+FPC-3.2.2, I now compiled and installed the ExCtrls packages with Laz 2.2.4+fpc3.2.2, both on Windows. No problem.

Nicole, what are you doing? Which Laz version? Which OS?

When such strange errors happen it is usually best to try a clean rebuild of the IDE with the new package. At first delete the lazarus.exe which failed to build. Make a copy of lazarus.old.exe and rename the copy to lazarus.exe -- now you have the IDE back from which you started all this. You must repeat the steps for the installation, but now do some more intermediate steps:

Go to "Package" > "Open package file" and load ExCtrlsPkg.lpk. Then load the design package ExtCtrlsPkg_Design.lpk, click "Use" > "Install", but do not allow to rebuild the IDE. Rather than that, exit the package editor and go to "Tools" > "Configure Build Lazarus": in the "Cleanup" box check "Clean all" and "Switch after building to automatically". "Build" starts the compilation which takes a bit longer now and should be successful.

Nicole

  • Hero Member
  • *****
  • Posts: 1281
Re: What does this warning mean? - ExCtrlsPkg
« Reply #14 on: January 09, 2023, 07:55:32 pm »
I did - my main project does not start any more

Lazarus 2.2.4 (the lastest)
Win 7

And: Sorry: I do not have a clean installation. The installation I use was 1 full day work to set up.
« Last Edit: January 09, 2023, 07:57:24 pm by Nicole »

 

TinyPortal © 2005-2018