Recent

Author Topic: [SOLVED] Laz 1.2, interfaces failure.  (Read 10336 times)

iru

  • Sr. Member
  • ****
  • Posts: 331
[SOLVED] Laz 1.2, interfaces failure.
« on: March 21, 2014, 12:01:10 am »
Gentlefolk,

Environment: Linux mint 16 (new install, all updates), LAZ 1.2, FPC 2.62 (all from DEB download), all install with no errors.

LAZ will compile and execute the default "form".

I open  a project I have been working on, install (to the project) a couple of packages.

In the project inspector update the "paths" and "includes" to correct some issues with not finding files.

I am stopped with the following error mesage:

Code: [Select]
PPU Loading /usr/share/lazarus/1.2.0/lcl/units/x86_64-linux/gtk2/interfaces.ppu
PPU Source: interfaces.pas not found
Recompiling Interfaces, checksum changed for InterfaceBase
TrackAll1.lpr(9,13) Fatal: Can not find Interfaces used by TrackAll1, ppu=/usr/share/lazarus/1.2.0/lcl/units/x86_64-linux/gtk2/interfaces.ppu, package LCL

This project compiled and executed correctly on LAZ 1.2 RC2.

Any help appreciated,  Ian.
« Last Edit: March 26, 2014, 04:24:49 am by iru »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12715
  • FPC developer.
Re: Laz 1.2, interfaces failure.
« Reply #1 on: March 21, 2014, 06:34:02 am »
Probably you didn't clean out the old install entirely first. It probably finds ppu's from the RC2 or so.

iru

  • Sr. Member
  • ****
  • Posts: 331
Re: Laz 1.2, interfaces failure.
« Reply #2 on: March 22, 2014, 07:00:56 am »
Gentlefolk,

No, it is a new install of Linux Mint and then an install of LAZ 1.2. No 1.2RC at all.

Ian

Bart

  • Hero Member
  • *****
  • Posts: 5706
    • Bart en Mariska's Webstek
Re: Laz 1.2, interfaces failure.
« Reply #3 on: March 22, 2014, 03:53:09 pm »
Please try compiling with -vut
It'll take some time but it'll tell you what ppu fpc is trying to load.

Bart

iru

  • Sr. Member
  • ****
  • Posts: 331
Re: Laz 1.2, interfaces failure.
« Reply #4 on: March 23, 2014, 08:41:38 am »
Bart,

I have had several goes at replying but have had problems with attachments.

I used the project-options>compiler>verbose flag to get a lot of error messages. There were 6.5MBytes of error messages.

The following is an example.

Code: [Select]
Unitsearch: /usr/lib/fpc/2.6.2/units/x86_64-linux/pasjpeg/Interfaces.pp
Searching file /usr/lib/fpc/2.6.2/units/x86_64-linux/pasjpeg/Interfaces.pp... not found
Searching file /usr/lib/fpc/2.6.2/units/x86_64-linux/pasjpeg/interfaces.pp... not found
Searching file /usr/lib/fpc/2.6.2/units/x86_64-linux/pasjpeg/INTERFACES.PP... not found
Unitsearch: /usr/lib/fpc/2.6.2/units/x86_64-linux/pasjpeg/Interfaces.pas
Searching file /usr/lib/fpc/2.6.2/units/x86_64-linux/pasjpeg/Interfaces.pas... not found
Searching file /usr/lib/fpc/2.6.2/units/x86_64-linux/pasjpeg/interfaces.pas... not found
Searching file /usr/lib/fpc/2.6.2/units/x86_64-linux/pasjpeg/INTERFACES.PAS... not found
Unitsearch: /usr/lib/fpc/2.6.2/units/x86_64-linux/aspell/Interfaces.pp
Searching file /usr/lib/fpc/2.6.2/units/x86_64-linux/aspell/Interfaces.pp... not found
Searching file /usr/lib/fpc/2.6.2/units/x86_64-linux/aspell/interfaces.pp... not found
Searching file /usr/lib/fpc/2.6.2/units/x86_64-linux/aspell/INTERFACES.PP... not found
Unitsearch: /usr/lib/fpc/2.6.2/units/x86_64-linux/aspell/Interfaces.pas
Searching file /usr/lib/fpc/2.6.2/units/x86_64-linux/aspell/Interfaces.pas... not found
Searching file /usr/lib/fpc/2.6.2/units/x86_64-linux/aspell/interfaces.pas... not found
Searching file /usr/lib/fpc/2.6.2/units/x86_64-linux/aspell/INTERFACES.PAS... not found
Unitsearch: /usr/lib/fpc/2.6.2/units/x86_64-linux/syslog/Interfaces.pp
Searching file /usr/lib/fpc/2.6.2/units/x86_64-linux/syslog/Interfaces.pp... not found
Searching file /usr/lib/fpc/2.6.2/units/x86_64-linux/syslog/interfaces.pp... not found
Searching file /usr/lib/fpc/2.6.2/units/x86_64-linux/syslog/INTERFACE

It would appear that I have some sort of file access permissions problem.

I am an "administrative"user and a member of the "root" group.

Ian

 

iru

  • Sr. Member
  • ****
  • Posts: 331
Re: Laz 1.2, interfaces failure.
« Reply #5 on: March 24, 2014, 11:12:20 am »
Gentlefolk,

A little more on this.

My problems have surfaced when I attempt to compile a project of my own. What if I tried an example project from Lazarus.

Picked the grid/spreadsheet example and opened the project. The IDE complained about being unable to access files in \usr\share\lazarus\1.2.0\examples.

Checked permissions on examples, owner is root, group is root.
Changed the group permissions to group "iru" (me).

Clicked on compile and for some minutes the vertical and horisontal scroll bars on the object inspector flickers, everything else in the IDE was locked.
Finally this stopped and the grid form was displayed.

Tried to compile and I was greeted with Unable to write "/usr/share/lazarus/1.2.0/examples/gridexamples/spreadsheet/spreadsheet.res".

So how do I install LAZ???

My approach has been:

Install a fresh copy of Linux Mint 16.

As user "iru" (me) an administrative user:

Install FPC by simply selecting the FPC Debian version from the Laz download area.
Install FPC-SRC by simply selecting the FPC Debian version from the Laz download area.
Install Lazarus by simply selecting the FPC Debian version from the Laz download area.

All the above installed clean with no errors.

Any help appreciated, Ian.

Rails

  • Guest
Re: Laz 1.2, interfaces failure.
« Reply #6 on: March 24, 2014, 12:00:31 pm »
You need to copy the example project to a writable directory before compiling it.


iru

  • Sr. Member
  • ****
  • Posts: 331
Re: Laz 1.2, interfaces failure.
« Reply #7 on: March 24, 2014, 11:42:23 pm »
Gentlefolk,

A little more......

Copied the grid/spreadsheet example to a writeable area. Compiled and executed.

I turned on the verbose mode and had a look at the messages produced. A total of 96338 lines of output. Lots of "not found" files including interface.pas. On a good compile!!!

So why does my project crash? Tried to compare the messages files from my project and the grid/spreadsheet, they are similar but different.

My  project seems to invoke interfaces.pas via "interfacesBase" and then finally tries to find interfaces.pas where the grid/spreadsheet seems happy using interfaces.ppu/pp.

I had a look at the file structure of my project and the grid/spreadsheet using the project-inspector. The grid/spreadsheet is very simple, uses LCL only, my project has LCL, FCL and 4-5 other packages.

I will clean things up and work my way through things very slowly....

My question still need answering. How should LAZ be installed? What access/permissions should there be on the FPC and LAZ file structure? Depending on the answers to the previous what access I the user need?

Ian.

Bart

  • Hero Member
  • *****
  • Posts: 5706
    • Bart en Mariska's Webstek
Re: Laz 1.2, interfaces failure.
« Reply #8 on: March 25, 2014, 12:50:09 pm »
What access/permissions should there be on the FPC and LAZ file structure?

A standard installation (via packagemanager of your distro) should NOT require write access to either fpc or Lazarus directory structure.

Bart

iru

  • Sr. Member
  • ****
  • Posts: 331
[SOLVED] Re: Laz 1.2, interfaces failure.
« Reply #9 on: March 26, 2014, 04:22:26 am »
Gentlefolk,

I saved off my project to a separate partition.

Re-formatted the linux partition, re-installed Mint-16
Re-installed fpc, fpc-srcand Laz 1.2.0 (all from the download .deb files).

Restored my project to the Linux partition.

Worked my way through all files addressing ownership and permissions.

Added  all  required packages to the project.

Attempted to compile the project. Odd errors writing files in /lib/x86_64-linux.

Got into the project-options>compiler>paths. Used the "test" feature and chased all strange warnings, fixed things, removed some paths I had inserted address prior problems.

When things looked better I performed a "clean and build" on the project. Compiled clean and attempted to execute.

So,I have learnt a lot about permissions, groups, and once again the necessity of being very methodical and organised.

Thanks for the interest and help, Ian.

PS: Even on the successful compile I note over 65000 messages with "verbose" mode. Most of these are file "not found" messages. This is surely a large overhead during a compile.
Is there a better way of doing it? Better file structures, etc?




BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: [SOLVED] Re: Laz 1.2, interfaces failure.
« Reply #10 on: March 26, 2014, 08:43:12 am »
PS: Even on the successful compile I note over 65000 messages with "verbose" mode. Most of these are file "not found" messages. This is surely a large overhead during a compile.
Is there a better way of doing it? Better file structures, etc?
Could you please open separate forum threads on separate subjects if you want people to reply to them? This will keep the discussion clearer, allow for easier searching by others etc. Thanks.

A better way of doing it is to switch off the verbose mode (in project options). It's "verbose" for a reason - usually needed for troubleshooting. Otherwise, just enable the messages you are interested in.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

 

TinyPortal © 2005-2018