[SOLVED] Laz 1.2, interfaces failure. lazarus / 1-Linux ---------------------------------------------------------------------- iru · 2014-03-20 23:01 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. ---------------------------------------------------------------------- marcov · 2014-03-21 05:34 Probably you didn't clean out the old install entirely first. It probably finds ppu's from the RC2 or so. ---------------------------------------------------------------------- iru · 2014-03-22 06:00 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 · 2014-03-22 14:53 Please try compiling with -vut It'll take some time but it'll tell you what ppu fpc is trying to load. Bart ---------------------------------------------------------------------- iru · 2014-03-23 07:41 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 · 2014-03-24 10:12 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/la zarus/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 · 2014-03-24 11:00 You need to copy the example project to a writable directory before compiling it. ---------------------------------------------------------------------- iru · 2014-03-24 22:42 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 · 2014-03-25 11:50 Quote from: iru on March 24, 2014, 11:42:23 pmWhat 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 · 2014-03-26 03:22 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 · 2014-03-26 07:43 Quote from: iru on March 26, 2014, 04:22:26 amPS: 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.