Recent

Author Topic: SOLVED: Unable to build from "View Example Projects"  (Read 3243 times)

Richard

  • New Member
  • *
  • Posts: 12
SOLVED: Unable to build from "View Example Projects"
« on: March 11, 2017, 06:10:28 am »
Running Lazarus-1.6-0.1 & FPC-3.0.0 for x86_64,
from Debian Jessie repo, rebuilt Lazarus OK.

I get the following error when building
{ $Id: testlpi.pas 50159 2015-10-24 21:47:10Z mattias $}
Quote
Unable to read state file /usr/lib/lazarus/1.6/test/units/x86_64-linux/runtests.compiled of project Project
Error: In 'file:///usr/lib/lazarus/1.6/test/units/x86_64-linux/runtests.compiled' (line 1 pos 1): Root element is missing
or any other of several example projects I have tried.

I created the directories it claimed were missing: .../test/units/x86_64-linux/ but still seem to be missing other needed files.

Is this a known problem? I searched but didn't find anything apropos. Should I set everything in  /usr/lib/lazarus to 777 read/write/execute?
Will that create other problems?
Or is there something else missing.

Thanks for your assistance and ideas.
Richard.
« Last Edit: March 13, 2017, 04:24:23 pm by Richard »
MX-16_x64 Xfce, sysvinit via systemd-shim.
Lazarus 1.6-0.1 & FPC 3.0.0.
=Louisiana en Venezuela=

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9864
  • Debugger - SynEdit - and more
    • wiki
Re: Unable to build from "View Example Projects"
« Reply #1 on: March 11, 2017, 07:17:00 am »
I dont know that error.

But the error message is not about a missing directory.

There are files *.compiled and they contain some xml.
"root element is missing" may mean that the xml is broken (or maybe some utf8 bom that is not recognized)

Try deleting the *.compiled file(s). The IDE should recreate them (after building the files).


Richard

  • New Member
  • *
  • Posts: 12
Re: Unable to build from "View Example Projects"
« Reply #2 on: March 11, 2017, 09:33:13 pm »
OK, I'll look for them. I installed from Debian debs, but maybe they didn't compile the help projects?

The directories links are not found in this route:
/usr/lib/lazarus/1.6/test
but are found in the symlinks, as below:
/usr/lib/lazarus/default/test/units/x86_64-linux/runtests.compiled

I added them, /units/x86_64-linux/runtests.compiled,
but Laz just reminded that they don't exist, :)
there is no xml nor anything compiled in either.

Could they be in another directory?
Or, point me to a download of the content for these directories?

Regards.
« Last Edit: March 12, 2017, 06:33:49 am by Richard »
MX-16_x64 Xfce, sysvinit via systemd-shim.
Lazarus 1.6-0.1 & FPC 3.0.0.
=Louisiana en Venezuela=

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4467
  • I like bugs.
Re: Unable to build from "View Example Projects"
« Reply #3 on: March 12, 2017, 09:53:29 am »
A project cannot be compiled in a write protected directory. This bug report is about the same thing:
 http://bugs.freepascal.org/view.php?id=27590
Somebody should improve the "Example Projects" window so that it copies write protected projects elsewhere before compiling them.
« Last Edit: March 13, 2017, 09:09:29 am by JuhaManninen »
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Richard

  • New Member
  • *
  • Posts: 12
Re: Unable to build from "View Example Projects"
« Reply #4 on: March 13, 2017, 04:23:25 pm »
Great, thanks.

Should have thought of that. Another example of assuming that since it installed as root the examples were writable for me. I'll change the permissions which should allow them to build. :)

I tried and failed with fpcupdeluxe, and with several combinations from http://sourceforge.net/projectshowfiles.php?group_id=89339 although I could always install the older version from Debian. Going to setup another partition with 32 bit MX Linux and avoid having to install for cross-compile, yet.
« Last Edit: March 13, 2017, 04:29:13 pm by Richard »
MX-16_x64 Xfce, sysvinit via systemd-shim.
Lazarus 1.6-0.1 & FPC 3.0.0.
=Louisiana en Venezuela=

 

TinyPortal © 2005-2018