Recent

Author Topic: [SOLVED] Lazarus3.0 XMLPropStorage component not work.  (Read 795 times)

SWM1

  • New Member
  • *
  • Posts: 21
[SOLVED] Lazarus3.0 XMLPropStorage component not work.
« on: February 26, 2024, 09:41:28 pm »
Hello! I installed Lazarus3.0 and tried to compile the working program project into Lazarus 2.2.6. And I faced the problem :( of accessing the files stored by the XMLPropStorage component.
The File field in the component is ' ./folder_name/filename'. And it works in the latest version of Lazarus, but on 3.0 it gives an error about the impossibility of creating such a file. Any advice please!
And a similar problem occurs when rebuilding the IDE, if you include the LCL widget type - gtk3. Also, Error: /usr/bin/mkdir: cannot create directory '../units/x86_64-linux/gtk3': Permission denied.
OS Linux Mint 21.1.
« Last Edit: March 11, 2024, 07:17:27 am by SWM1 »

jamie

  • Hero Member
  • *****
  • Posts: 6128
Re: Lazarus3.0 XMLPropStorage component not work.
« Reply #1 on: February 26, 2024, 11:54:50 pm »
I am not a linux expert however, something tells me if you run things from SUDO you may have a better chance.

or boot in as root ? or simply give some folders open access.
The only true wisdom is knowing you know nothing

TRon

  • Hero Member
  • *****
  • Posts: 2491
Re: Lazarus3.0 XMLPropStorage component not work.
« Reply #2 on: February 27, 2024, 12:33:31 am »
I am not a linux expert however, something tells me if you run things from SUDO you may have a better chance.
For sure you then would have a better chance but... on Linux that is not the way to go (or any other operating system for that matter).

Quote
or boot in as root ? or simply give some folders open access.
The former is also a very bad idea from a safety standpoint the latter is a better suggestion but will also lead to the same insecurities.

I would probably advise to remove both Lazarus installations and re-install with FPCUpDeluxe, making sure that you do not install Lazarus in your system directories but rather at a location where you have full read and write access. FPCUpDeluxe is able to install Lazarus (for example) in your home directory.

cdbc

  • Hero Member
  • *****
  • Posts: 1071
    • http://www.cdbc.dk
Re: Lazarus3.0 XMLPropStorage component not work.
« Reply #3 on: February 27, 2024, 02:13:14 am »
Hi
From personal experience, this is the one to go with:
Quote
I would probably advise to remove both Lazarus installations and re-install with FPCUpDeluxe, making sure that you do not install Lazarus in your system directories but rather at a location where you have full read and write access. FPCUpDeluxe is able to install Lazarus (for example) in your home directory.
from @TRon
I installed in my "/home/{mylogin}/laz_3/" and it works like a charm  :)
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

SWM1

  • New Member
  • *
  • Posts: 21
Re: Lazarus3.0 XMLPropStorage component not work.
« Reply #4 on: February 27, 2024, 12:54:12 pm »
I myself understood that compilation in gtk3 is not possible due to access rights to Lazarus RAD, but Lazarus is to blame for the XMLPropStorage component. Or something changed in 3.0 with the parsing of local file paths. Because the compiled project works on relative paths in the source directory, but does not work in the RAD.

SWM1

  • New Member
  • *
  • Posts: 21
Re: Lazarus3.0 XMLPropStorage component not work.
« Reply #5 on: February 27, 2024, 01:03:00 pm »
Solved!
There was no folder in the run options. When selecting the execution folder, everything worked. And changing the owner of the lazarus folder to the user solved the problem of layout with gtk3.

 

TinyPortal © 2005-2018