[Resolved] Anchor Docking lazarus / 1-Linux ---------------------------------------------------------------------- anark10n · 2017-08-09 13:09 Hey there. So I'm new to Lazarus and I'm trying to install Anchor Docking, but haven't met with success with any of the few tutorials that I've found. And most are dealing with older versions. I'm using the version 1.6.4 of Lazarus and V0.6 of Anchor Docking. It fails at the installation stage after I have selected the package from the install folder. There is no installation option whether I compile or not. Any help with this would be much appreciated. ---------------------------------------------------------------------- Pascal · 2017-08-09 13:30 Have look: ---------------------------------------------------------------------- anark10n · 2017-08-09 15:56 Ah, I forgot to mention I'm on Arch Linux, not Windows. Sorry. ---------------------------------------------------------------------- Martin_fr · 2017-08-09 17:14 You don't install "AnchorDocking". You install "AnchorDockingDsgn". Many package are split, and have a *Dsgn that is for installation into the IDE. ---------------------------------------------------------------------- Pascal · 2017-08-10 05:53 Quote from: anark10n on August 09, 2017, 05:56:56 pmAh, I forgot to mention I'm on Arch Linux, not Windows. Sorry. It's the same on other operating systems, though it does not exactly look the same! And as Martin wrote: Use "AnchorDockingDsgn". ---------------------------------------------------------------------- anark10n · 2017-08-11 17:24 Guess it's problem with the software package itself then, because there's no AnchorDockingDsgn in the "components/anchordocking" directory, only AnchorDocking. Thanks for the assistance. ---------------------------------------------------------------------- munair · 2017-11-02 08:56 Quote from: anark10n on August 11, 2017, 07:24:38 pmGuess it's problem with the software package itself then, because there's no AnchorDockingDsgn in the "components/anchordocking" directory, only AnchorDocking. Thanks for the assistance. No, there is: /usr/lib/lazarus/1.6.2/components/anchordocking/design However, I also get an error when trying to compile the package into the IDE. When trying to install from the package list I get the following message after hitting the recompile IDE button: lazarus.pp(1,1) Fatal: Cannot find anchordockingdsgn used by Lazarus. Check if package AnchorDockingDsgn creates anchordockingdsgn.ppu, check nothing deletes this file and check that no two packages have access to the unit source. So I tried to load the package manually Package -> Open Package File... and install it from there. After being prompted to rebuild the IDE I get the same error. Indeed the ppu file does not seem to be created. One reason I could think of is that compilation is against Qt4 on KDE. Could that be the problem? The error occurs on a default Lazarus installation. ---------------------------------------------------------------------- JuhaManninen · 2017-11-02 09:45 Quote from: Munair on November 02, 2017, 09:56:30 amHowever, I also get an error when trying to compile the package into the IDE. When trying to install from the package list I get the following message after hitting the recompile IDE button: lazarus.pp(1,1) Fatal: Cannot find anchordockingdsgn used by Lazarus. Check if package AnchorDockingDsgn creates anchordockingdsgn.ppu, check nothing deletes this file and check that no two packages have access to the unit source. You may have mixed sources. The error message is misleading. It finds the file but it is wrong version. You should start with a single Lazarus version. Later when you know what you are doing you can have more. QuoteSo I tried to load the package manually Package -> Open Package File... and install it from there. After being prompted to rebuild the IDE I get the same error. Does the package compile? QuoteIndeed the ppu file does not seem to be created. One reason I could think of is that compilation is against Qt4 on KDE. Could that be the problem? Yes it is created but into a local config dir under your home dir, normally ~/.lazarus. That's because the original source dir is write- protected. Qt4 has no effect here. It could only cause a linker error later if the QtPas libs are not found. BTW, remember to use "startlazarus" for starting once you get the compilation right. ---------------------------------------------------------------------- munair · 2017-11-02 10:58 Quote from: JuhaManninen on November 02, 2017, 10:45:17 amYou may have mixed sources. The error message is misleading. It finds the file but it is wrong version. You should start with a single Lazarus version. Later when you know what you are doing you can have more. I don't think I mixed sources. This is from a fresh install. I went directly to the package list and tried to install the package. Quote from: JuhaManninen on November 02, 2017, 10:45:17 amDoes the package compile? The only file I see is AnchorDockingDsgn.compiled in the home directory under /home/frank/.lazarus/lib/AnchorDockingDsgn/lib/x86_64-linux. It's a XML file with the following content: Code: XML  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i       Quote from: JuhaManninen on November 02, 2017, 10:45:17 amYes it is created but into a local config dir under your home dir, normally ~/.lazarus. That's because the original source dir is write-protected. Yes I know, see the location I just pointed to. Quote from: JuhaManninen on November 02, 2017, 10:45:17 amQt4 has no effect here. It could only cause a linker error later if the QtPas libs are not found. BTW, remember to use "startlazarus" for starting once you get the compilation right. OK, so we can rule out that possibility then. ---------------------------------------------------------------------- munair · 2017-11-02 11:19 I tried to manually compile the file in the console with the same arguments as provided by the xml file. It says cannot open the file, even though the correct path is in the parameter list. See screenshot. ---------------------------------------------------------------------- munair · 2017-11-02 12:23 Because this issue isn't solved for me, I created a new thread: https://forum.lazarus.freepascal.org/index.php/topic,38790.0.html ---------------------------------------------------------------------- JuhaManninen · 2017-11-02 12:54 Quote from: Munair on November 02, 2017, 01:23:21 pmBecause this issue isn't solved for me, I created a new thread: Why a new thread? As you mentioned this is not solved yet. ---------------------------------------------------------------------- munair · 2017-11-02 12:59 Quote from: JuhaManninen on November 02, 2017, 01:54:52 pmQuote from: Munair on November 02, 2017, 01:23:21 pmBecause this issue isn't solved for me, I created a new thread: Why a new thread? As you mentioned this is not solved yet. Because the title says "RESOLVED" and I cannot change that. ---------------------------------------------------------------------- JuhaManninen · 2017-11-02 13:02 Ok, right, the thread was not started by you. 😀