Sign in Join

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

Mailing lists / lazarus / 2008-12

Import library not found for libz

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Bob K.

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

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20081204/82165888/attachment.html

Reply by email

zeljko
to Bob K.
Bob K. wrote 18 lines
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 ;)

Show quoted text 7 lines
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.

Reply by email

Bob K.
to zeljko

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 (SplashFormnil) 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.

--------------------------------------------------

Earlier message 43 lines
From: "zeljko" Sent: Thursday, December 04, 2008 11:32 To: "General mailing list" 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 > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20081204/d3c12948/attachment.html

Reply by email

Bob K.
to Bob K.

I received the following message from Adrian Gallero at tmssoftware:

Hi Bob,

This is actually a bug in Lazarus, in that it can't find zlib1.dll. I don't remember the exact steps, but you can try to:
1) copy zlib1.dll as zlib.dll.
2) copy both zlib1 and zlib2 to a folder where the ide can find them. for example c:\windows.

This should fix it.

I've moved the files to the Windows, Windows/System32, c:/lasarus, and c:/lib (which is listed in the libraries path in Lazarus) folders and I'm still getting the same error.

Earlier message 182 lines
From: Bob K. Sent: Thursday, December 04, 2008 13:03 To: General mailing list Subject: Re: [Lazarus] Import library not found for libz 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 (SplashFormnil) 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" Sent: Thursday, December 04, 2008 11:32 To: "General mailing list" 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 > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus --------------------------------------------------------------------------------

Reply by email