Sign in Join

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

Mailing lists / lazarus / 2010-10

registersqldb.pas Cannot find "LResources"

9 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Andrew Brunner

I can't rebuild Lazarus from within the IDE b/c I keep getting errors with regard to units it can't find because I'm on Linux. This problem recently started happening. What can I do to get the IDE to recompile or resolve this issue?

I can checkout and "make clean all" from command prompt with no problems but cannot build my project from Lazaris IDE.

Reply by email

Andrew Brunner
to Andrew Brunner

I deleted my sandbox copy of Lazarus and my exported copy of Lazarus and now I can rebuild Lazarus from inside the IDE but I still get cannot find LResources used by registersqldb

I know that LResources is all lowercase on Ubuntu 10.10 x64.

I was wondering how to get FPC to be case insensitive when resolving unit names.

Reply by email

Andrew Brunner
to Andrew Brunner: I can't rebuild Lazarus from within the IDE b/c I keep getting errors with regard to…

I'm stummped b/c when I get into the IDE I can see the SQLdb components tab with buttons for the typical SQL DBMS components. I was able to rebuild Lazarus with the SQL DBLAZ components just fine.

But looking at the console on startup...
" TLazPackageGraph.CheckIfPackageNeedsCompilation Compile was incomplete for SQLDBLaz 1.0.1" <<<

TLazarusManager.Run starting /Developer/Lazarus/lazarus ... TMainIDE.ParseCmdLineOptions:
PrimaryConfigPath="/home/atbrunner/.lazarus"
SecondaryConfigPath="/etc/lazarus"
TFPCTargetConfigCache.NeedsUpdate real compiler file changed "/usr/lib/fpc/2.5.1/ppcx64"
TFPCTargetConfigCache.Update /usr/local/bin/fpc TargetOS=linux TargetCPU=x86_64 CompilerOptions=
ExtraOptions=-Fr/Developer/Lazarus/components/codetools/fpc.errore.msg PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin RunTool /usr/local/bin/fpc -iTOTP -Px86_64 -Tlinux -Fr/Developer/Lazarus/components/codetools/fpc.errore.msg RunTool /usr/local/bin/fpc -va -Px86_64 -Tlinux
-Fr/Developer/Lazarus/components/codetools/fpc.errore.msg compilertest.pas
TFPCTargetConfigCache.Update: has changed
TLazPackageGraph.CheckIfPackageNeedsCompilation Compile was incomplete for SQLDBLaz 1.0.1
[TExternalToolList.Run] CmdLine="/usr/local/bin/fpc -MObjFPC -Scgi -O1 -TLinux -Px86_64 -gl -vewnhi -l
-Fu/Developer/Lazarus/components/synedit/units/x86_64-Linux -Fu/Developer/Lazarus/ideintf/units/x86_64-Linux
-Fu/Developer/Lazarus/lcl/units/x86_64-Linux
-Fu/Developer/Lazarus/lcl/units/x86_64-Linux/gtk2
-Fu/Developer/Lazarus/packager/units/x86_64-Linux
-Fu/Developer/Lazarus/components/sqldb/ -Fu.
-FU/Developer/Lazarus/components/sqldb/lib/x86_64-Linux/gtk2/ -dLCL -dLCLgtk2 sqldblaz.pas" WorkDir="/Developer/Lazarus/components/sqldb/" Hint: Start of reading config file /etc/fpc.cfg
Hint: End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 2.5.1 [2010/10/24] for x86_64 Copyright (c) 1993-2010 by Florian Klaempfl
Target OS: Linux for x86-64
Compiling sqldblaz.pas
Compiling registersqldb.pas
Fatal: Can't find unit LResources used by registersqldb TExternalToolList.Run Exception:
/Developer/Lazarus/components/sqldb/registersqldb.pas(1,1) Fatal: Can't find unit LResources used by registersqldb

Reply by email

Michael Van Canneyt
to Andrew Brunner: I deleted my sandbox copy of Lazarus and my exported copy of Lazarus and now I can…
Andrew Brunner wrote 7 lines
I deleted my sandbox copy of Lazarus and my exported copy of Lazarus and now I can rebuild Lazarus from inside the IDE but I still get cannot find LResources used by registersqldb I know that LResources is all lowercase on Ubuntu 10.10 x64. I was wondering how to get FPC to be case insensitive when resolving unit names.

You can't. The filesystem is case sensitive, so one of the following must be true:
- filename is unit name - exact casing
- filename is unit name - all lowercase
And I think the following as well:
- filename is unit name - all uppercase.

The FPC documentation contains the exact rules.

Michael.

Reply by email

Mattias Gaertner
to Andrew Brunner: I'm stummped b/c when I get into the IDE I can see the SQLdb components tab with buttons…
Show quoted text 30 lines
I'm stummped b/c when I get into the IDE I can see the SQLdb components tab with buttons for the typical SQL DBMS components. I was able to rebuild Lazarus with the SQL DBLAZ components just fine. But looking at the console on startup... " TLazPackageGraph.CheckIfPackageNeedsCompilation Compile was incomplete for SQLDBLaz 1.0.1" <<< TLazarusManager.Run starting /Developer/Lazarus/lazarus ... TMainIDE.ParseCmdLineOptions: PrimaryConfigPath="/home/atbrunner/.lazarus" SecondaryConfigPath="/etc/lazarus" TFPCTargetConfigCache.NeedsUpdate real compiler file changed "/usr/lib/fpc/2.5.1/ppcx64" TFPCTargetConfigCache.Update /usr/local/bin/fpc TargetOS=linux TargetCPU=x86_64 CompilerOptions= ExtraOptions=-Fr/Developer/Lazarus/components/codetools/fpc.errore.msg PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin RunTool /usr/local/bin/fpc -iTOTP -Px86_64 -Tlinux -Fr/Developer/Lazarus/components/codetools/fpc.errore.msg RunTool /usr/local/bin/fpc -va -Px86_64 -Tlinux -Fr/Developer/Lazarus/components/codetools/fpc.errore.msg compilertest.pas TFPCTargetConfigCache.Update: has changed TLazPackageGraph.CheckIfPackageNeedsCompilation Compile was incomplete for SQLDBLaz 1.0.1 [TExternalToolList.Run] CmdLine="/usr/local/bin/fpc -MObjFPC -Scgi -O1 -TLinux -Px86_64 -gl -vewnhi -l

It must be linux, not Linux.

Please check your project's compiler options.

Mattias

Reply by email

Mattias Gaertner
to Mattias Gaertner
Show quoted text 37 lines
On Sun, 24 Oct 2010 20:22:47 -0500 Andrew Brunner wrote: > I'm stummped b/c when I get into the IDE I can see the SQLdb > components tab with buttons for the typical SQL DBMS components. I > was able to rebuild Lazarus with the SQL DBLAZ components just fine. > > But looking at the console on startup... > " TLazPackageGraph.CheckIfPackageNeedsCompilation Compile was > incomplete for SQLDBLaz 1.0.1" <<< > > > > TLazarusManager.Run starting /Developer/Lazarus/lazarus ... > TMainIDE.ParseCmdLineOptions: > PrimaryConfigPath="/home/atbrunner/.lazarus" > SecondaryConfigPath="/etc/lazarus" > TFPCTargetConfigCache.NeedsUpdate real compiler file changed > "/usr/lib/fpc/2.5.1/ppcx64" > TFPCTargetConfigCache.Update /usr/local/bin/fpc TargetOS=linux > TargetCPU=x86_64 CompilerOptions= > ExtraOptions=-Fr/Developer/Lazarus/components/codetools/fpc.errore.msg > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin > RunTool /usr/local/bin/fpc -iTOTP -Px86_64 -Tlinux > -Fr/Developer/Lazarus/components/codetools/fpc.errore.msg > RunTool /usr/local/bin/fpc -va -Px86_64 -Tlinux > -Fr/Developer/Lazarus/components/codetools/fpc.errore.msg > compilertest.pas > TFPCTargetConfigCache.Update: has changed > TLazPackageGraph.CheckIfPackageNeedsCompilation Compile was > incomplete for SQLDBLaz 1.0.1 > [TExternalToolList.Run] CmdLine="/usr/local/bin/fpc -MObjFPC -Scgi > -O1 -TLinux -Px86_64 -gl -vewnhi -l It must be linux, not Linux. Please check your project's compiler options.

The IDE now automatically fixes the case for TargetOS and TargetCPU. AFAIK all currently available targets are lowercase. Is this correct?

Mattias

Reply by email

John vd Waeter
to Mattias Gaertner
The IDE now automatically fixes the case for TargetOS and TargetCPU. AFAIK all currently available targets are lowercase. Is this correct?

Not sure about that. I downloaded Windows snapshot 27884 this morning, installed, immediately installed crosscompiler wince. All ok.

After starting, I installed lNet-package. Rebuild, all ok, no errors.

Then I openend my project, and the ide complained about not finding wince-arm units:
-----------------------
The project uses target OS=wince and CPU=arm
The system.ppu for this target was not found in the FPC-binary directories Make sure fpc is installed correctly for this target and the fpc.cfg contains the right directories.
-----------------------

The files are there. Building my projectworks ok. Codetools work ok. So somewhere the IDE thinks it cannot find the files? Happens only on loading a wince/arm project. Win32 projects load ok.

John

Reply by email

Andrew Brunner
to Andrew Brunner
It must be linux, not Linux.

In the Build options dialog for Lazarus I did set the Target OS to "linux" and the Target CPU to "x86_64" and that's how I got Lazarus to start rebuilding.

Lazarus is able to compile itself and my projects with no problems.

Reply by email