Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-03

Unable to find file "staticpackages.inc"

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Norbert Crettol

Hello Lazarus community,

This is my first post to this mailing-list. Let me first introduce myself: my name is Norbert Crettol, from Switzerland.

I'm a former Turbo Pascal user. My first version was Turbo Pascal v.1.0 for CP/M (on Z80 processor). ;-) I've not been doing any Pascal development for many years now. I've no experience with Lazarus.

Now, my problem:

On a fresh Debian Jessie installation, I've installed Lazarus and fpc (see the list of installed packages below).

Now, I'm trying to install a new package: lazdatadict. I went to Package->Install/Uninstall Packages and moved lazdatadict from "Available..." to "Installed" and clicked on "Save and rebuild IDE". It compiles for a while and then displays an error message:
----------------------------------------------------- Unable to find file "staticpackages.inc".
If it belongs to your project, check search path in Project -> Compiler Options -> Search Paths -> Other Unit Files. If this file belongs to a package, check the appropriate package compiler options. If this file belongs to Lazarus, make sure compiling clean. If the file belongs to FPC then check fpc.cfg. If unsure, check Project -> CompilerOptions -> Test -----------------------------------------------------

I've checked the newly created ~/.lazarus folder and a file called "staticpackages.inc" exists there. I've tried to add /path/to/my/home/.lazarus in "Other Unit Files" as suggested by the error message but this leads to other errors.

I'm lost. Is that an purely Debian error? I've googled a little but found nothing satisfying.

Here are some data from Lazarus:
================================
Lazarus version: 1.2.4+dfsg2-1
Lazarus svn revision: 43696
Lazarus build date: 2015/02/17
Lazarus was compiled for x86_64-linux
Lazarus was compiled with fpc 2.6.4

Here is a list of installed packages:
=====================================
~$ dpkg -l | grep lazarus
ii lazarus
ii lazarus-1.2.4
ii lazarus-doc-1.2.4
ii lazarus-ide-1.2.4
ii lazarus-ide-gtk2-1.2.4
ii lazarus-ide-qt4
ii lazarus-ide-qt4-1.2.4
ii lazarus-src-1.2.4
~$ dpkg -l | grep fpc
ii fpc
ii fpc-2.6.4
ii fpc-source
ii fpc-source-2.6.4
~$ dpkg -l | grep fp-
ii fp-compiler
ii fp-compiler-2.6.4
ii fp-ide-2.6.4
ii fp-units-base
ii fp-units-base-2.6.4
ii fp-units-db
ii fp-units-db-2.6.4
ii fp-units-fcl
ii fp-units-fcl-2.6.4
ii fp-units-fv-2.6.4
ii fp-units-gfx
ii fp-units-gfx-2.6.4
ii fp-units-gnome1-2.6.4
ii fp-units-gtk-2.6.4
ii fp-units-gtk2
ii fp-units-gtk2-2.6.4
ii fp-units-math
ii fp-units-math-2.6.4
ii fp-units-misc
ii fp-units-misc-2.6.4
ii fp-units-multimedia-2.6.4
ii fp-units-net-2.6.4
ii fp-units-rtl-2.6.4
ii fp-utils
ii fp-utils-2.6.4

Can someone help?

Best regards
Norbert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150313/92d2c180/attachment-0001.html>

Reply by email

Mattias Gaertner
to Norbert Crettol
Show quoted text 7 lines
[...] This is my first post to this mailing-list. Let me first introduce myself: my name is Norbert Crettol, from Switzerland. I'm a former Turbo Pascal user. My first version was Turbo Pascal v.1.0 for CP/M (on Z80 processor). ;-) I've not been doing any Pascal development for many years now.

Welcome to Open Source.

Show quoted text 14 lines
I've no experience with Lazarus. Now, my problem: On a fresh Debian Jessie installation, I've installed Lazarus and fpc (see the list of installed packages below). [...] Unable to find file "staticpackages.inc". If it belongs to your project, check search path in Project -> Compiler Options -> Search Paths -> Other Unit Files. If this file belongs to a package, check the appropriate package compiler options. If this file belongs to Lazarus, make sure compiling clean. If the file belongs to FPC then check fpc.cfg. If unsure, check Project -> CompilerOptions -> Test

That message is misleading. The file is auto created by the IDE in ~/.lazarus.

----------------------------------------------------- I've checked the newly created ~/.lazarus folder and a file called "staticpackages.inc" exists there.

Yes.

I've tried to add /path/to/my/home/.lazarus in "Other Unit Files" as suggested by the error message but this leads to other errors.

The message was "If it belongs to your project". The file does not belong to your project. Please remove the path from "Other Unit Files".

I'm lost. Is that an purely Debian error?

That might be.
You can try our debian packages from
http://sourceforge.net/projects/lazarus/?source=directory Since you already have FPC 2.6.4 you only need to uninstall the lazarus* packages and install our lazarus package.

Show quoted text 15 lines
[...] Here are some data from Lazarus: ================================ Lazarus version: 1.2.4+dfsg2-1 [...] Lazarus was compiled for x86_64-linux Lazarus was compiled with fpc 2.6.4 [...] ii lazarus-1.2.4 ii lazarus-doc-1.2.4 ii lazarus-ide-1.2.4 ii lazarus-ide-gtk2-1.2.4 ii lazarus-ide-qt4 ii lazarus-ide-qt4-1.2.4 ii lazarus-src-1.2.4

Uninstall the above.

Show quoted text 31 lines
~$ dpkg -l | grep fpc ii fpc ii fpc-2.6.4 ii fpc-source ii fpc-source-2.6.4 ~$ dpkg -l | grep fp- ii fp-compiler ii fp-compiler-2.6.4 ii fp-ide-2.6.4 ii fp-units-base ii fp-units-base-2.6.4 ii fp-units-db ii fp-units-db-2.6.4 ii fp-units-fcl ii fp-units-fcl-2.6.4 ii fp-units-fv-2.6.4 ii fp-units-gfx ii fp-units-gfx-2.6.4 ii fp-units-gnome1-2.6.4 ii fp-units-gtk-2.6.4 ii fp-units-gtk2 ii fp-units-gtk2-2.6.4 ii fp-units-math ii fp-units-math-2.6.4 ii fp-units-misc ii fp-units-misc-2.6.4 ii fp-units-multimedia-2.6.4 ii fp-units-net-2.6.4 ii fp-units-rtl-2.6.4 ii fp-utils ii fp-utils-2.6.4

Keep those.

Can someone help?

Mattias

Reply by email

Norbert Crettol
to Mattias Gaertner
Mattias Gaertner wrote
On Fri, 13 Mar 2015 15:48:16 +0100 Norbert Crettol wrote:

[...]

Show quoted text 8 lines
> I'm lost. Is that an purely Debian error? That might be. You can try our debian packages from http://sourceforge.net/projects/lazarus/?source=directory Since you already have FPC 2.6.4 you only need to uninstall the lazarus* packages and install our lazarus package.

Thanks for the help.

I've done it. Removed the Lazarus packages, kept back the fpc packages and installed the one you pointed me to.

I've tried the same operation: installed new package lazdatadict and rebuild the IDE.

After a while of compilation I got:

"Compiling package lazdatadict 0.0" completed
components/lazutils/masks.pas(23,22)Fatal: Can't find unit contnrs used by Masks

This sounds familiar to me. I think I got the same some years ago as I played with Lazarus for the first time.

Anyway, I've to leave now. I'll keep tweaking with Lazarus next week.

Best regards
Norbert

Reply by email

Norbert Crettol
to Norbert Crettol
Norbert Crettol wrote 13 lines
On 13/03/15 16:50, Mattias Gaertner wrote: > On Fri, 13 Mar 2015 15:48:16 +0100 > Norbert Crettol wrote: > [...] > >> I'm lost. Is that an purely Debian error? > > That might be. > You can try our debian packages from > http://sourceforge.net/projects/lazarus/?source=directory > Since you already have FPC 2.6.4 you only need to uninstall the lazarus* > packages and install our lazarus package.

[...]

Show quoted text 10 lines
I've done it. Removed the Lazarus packages, kept back the fpc packages and installed the one you pointed me to. I've tried the same operation: installed new package lazdatadict and rebuild the IDE. After a while of compilation I got: "Compiling package lazdatadict 0.0" completed components/lazutils/masks.pas(23,22)Fatal: Can't find unit contnrs used by Masks

I just removed directory ~/.lazarus, restarted lazarus, added the package lazdatadict, rebuild the IDE and that's it! "Can't find unit contnrs" error was gone.

Thanks for the help.

Best regards
Norbert

Reply by email