[Lazarus] Portable error messages
Mark Morgan Lloyd
markMLl.lazarus at telemetry.co.uk
Fri Dec 5 00:36:27 CET 2008
I copied zlib1.dll to Windows/System32 directory. I then ran Tools | Build Lazarus... and received the same error:
C:\lazarus\ide\lazarus.pp(122,1) Error: Import library not found for libz
Here's the c:\lazarus\ide\lazarus.pp file:
{ $Id: lazarus.pp 16543 2008-09-11 11:24:03Z mattias $ }
{
/***************************************************************************
Lazarus.pp
-------------------
This is the lazarus editor program.
Initial Revision : Sun Mar 28 23:15:32 CST 1999
***************************************************************************/
***************************************************************************
* *
* This source is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This code is distributed in the hope that it will be useful, but *
* WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
* General Public License for more details. *
* *
* A copy of the GNU General Public License is available on the World *
* Wide Web at <http://www.gnu.org/copyleft/gpl.html>. You can also *
* obtain it by writing to the Free Software Foundation, *
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
* *
***************************************************************************
}
program Lazarus;
{$mode objfpc}{$H+}
{$I ide.inc}
{$IFDEF WINDOWS}
{$R lazarus.rc}
{$ENDIF}
{off $DEFINE IDE_MEM_CHECK}
uses
//cmem,
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
{$IFDEF IDE_MEM_CHECK}
MemCheck,
{$ENDIF}
{$IF defined(Unix) and not defined(VER2_2_0) and not defined(VER2_2_2)}
clocale,
{$ENDIF}
Interfaces,
Forms, LCLProc,
Splash,
Main,
AboutFrm,
// use the custom IDE static packages AFTER 'main'
{$IFDEF AddStaticPkgs}
{$I staticpackages.inc}
{$ENDIF}
{$IFDEF BigIDE}
RunTimeTypeInfoControls, Printer4Lazarus, Printers4LazIDE,
CGILaz, CGILazIDE,
MemDSLaz, SDFLaz, TurboPowerIPro,
FPCUnitTestRunner, FPCUnitIDE, ProjTemplates, TAChartLazarusPkg,
{$IFDEF windows}
SQLDBLaz, DBFLaz,
{$ENDIF}
{$IFDEF Linux}
SQLDBLaz, DBFLaz,
{$ENDIF}
{$ENDIF}
MainBase;
{$I revision.inc}
begin
{$IFDEF IDE_MEM_CHECK}CheckHeapWrtMemCnt('lazarus.pp: begin');{$ENDIF}
// When quick rebuilding the IDE, FPC rebuilds only the lazarus.pp, so any
// flag that should work with quick build must be set here.
KeepInstalledPackages:={$IFDEF BigIDE}True{$ELSE}False{$ENDIF};
LazarusRevisionStr:=RevisionStr;
Application.Title:='Lazarus';
Application.Initialize;
TMainIDE.ParseCmdLineOptions;
if Application.Terminated then exit;
// Show splashform
if ShowSplashScreen then begin
SplashForm := TSplashForm.Create(nil);
SplashForm.Show;
Application.ProcessMessages; // process splash paint message
end;
MainIDE:=TMainIDE.Create(Application);
MainIDE.CreateOftenUsedForms;
MainIDE.StartIDE;
{$IFDEF IDE_MEM_CHECK}CheckHeapWrtMemCnt('lazarus.pp: TMainIDE created');{$ENDIF}
try
Application.Run;
except
debugln('lazarus.pp - unhandled exception');
Halt;
end;
if (SplashForm<>nil) then begin
SplashForm.Free;
SplashForm:=nil;
end;
debugln('LAZARUS END - cleaning up ...');
// free the IDE, so everything is freed before the finalization sections
MainIDE.Free;
MainIDE:=nil;
end.
--------------------------------------------------
From: "zeljko" <zeljko at holobit.net>
Sent: Thursday, December 04, 2008 11:32
To: "General mailing list" <lazarus at lazarus.freepascal.org>
Subject: Re: [Lazarus] Import library not found for libz
> On Thursday 04 December 2008 16:59, Bob K. wrote:
>> I've uninstalled Lazarus, and re-installed. I checked all the environment
>> options and everything seems fine. I ran some Lazarus example projects and
>> they all work.
>>
>> Version #: 0.9.26 beta
>> Date: 2008-10-05
>> FPC Version: 2.2.2
>> SVN Revision: 16885
>> i386-win32-win32/win64
>>
>> Windows Vista
>>
>> I've compiled FlexCel.lpk and FlexCel_DESIGN.lpk successfully. When I
>> attempt to install FlexCel_DESIGN.lpk I'm getting the following error:
>>
>> C:\lazarus\ide\lazarus.pp(122,1) Error: Import library not found for libz
>> C:\lazarus\ide\lazarus.pp(122,1) Fatal: There were 1 errors compiling
>> module, stopping
>
> hm...I've installed FlexCel w/o any problem (winXP), but I've copied zlib1.dll
> into ..Windows\System32 dir. I cannot remember of any error with "libz" it
> sound me like UNIX is declared somewhere ;)
>
>>
>>
>> I updated the Compiler Options | Library (-Fl) to include the folder that
>> contains zlib1.dll, but I'm still getting the same error.
>>
>> Please help,
>> bob k.
> _______________________________________________
> Lazarus mailing list
> Lazarus at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20081204/d3c12948/attachment-0007.html>
More information about the Lazarus
mailing list