Recent

Author Topic: Error when installing new packages  (Read 16545 times)

dailton

  • New Member
  • *
  • Posts: 30
Error when installing new packages
« on: August 09, 2011, 03:49:28 pm »
Hi Everybody,

Although a long journey with Pascal / Delphi I’m starting with Lazarus. My first need was to assemble a library of routines and components that come from Delphi to be used in multiple projects in Lazarus, from now on. My question is this: I needed some time ago to prepare Lazarus 0.9.30/2.4.2 cross platform to generate a DLL X64 (StorecProc external X64 for Oracle 10g). I found an article that helped me to make and even worked (http://lazarus.freepascal.org/index.php ... 688.0; WAP2). After that, every time I try to install any package the cross compile x64 is invoked and I do not know how to turn it off because I just want to install in x32. I have already uninstalled and removed the Lazarus directory and then reinstalled but every time I try to install a new one the cross compiler package is called and gives error (compiling the package to work but does not install).

Does anyone have any idea what´s going on?

Thanks in advance

Dailton Menezes
 

dailton

  • New Member
  • *
  • Posts: 30
Re: Error when installing new packages
« Reply #1 on: August 10, 2011, 03:25:53 pm »
Hi EveryBody,

For example, I tried to install ODAC Package and the cross compiler was invoked (see yellow text).

So the point is: how to turn off the x64 compiler. I've already removed Lazurus and its Directory without success. Is there any register key? I´m using W7 Sp1 x32. At the moment, ODAC 7.20 do not handle x64 environment but I just want to install x32.

Thanks in advance

Hint: Start of reading config file c:\lazarus\fpc\2.4.2\bin\i386-win32\fpc.cfg
Hint: End of reading config file c:\lazarus\fpc\2.4.2\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 2.4.2 [2011/04/14] for x86_64
Copyright (c) 1993-2010 by Florian Klaempfl
Target OS: Win64 for x64
Compiling dac10.pas
Compiling C:\Program Files\Devart\ODAC\Source\CRAccess.pas
Compiling C:\Program Files\Devart\ODAC\Source\MemData.pas
C:\Program Files\Devart\ODAC\Source\MemData.pas(436,14) Warning: An inherited method is hidden by
"TSharedObject.GetHashCode:LongInt;"

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Error when installing new packages
« Reply #2 on: August 10, 2011, 04:59:40 pm »
Quote
So the point is: how to turn off the x64 compiler.
Check target CPU and OS everywhere, notably compiler option and configure build lazarus.
Quote
I've already removed Lazurus and its Directory without success. Is there any register key?
No use if the configuration file still exists, Lazarus installation typically writes nothing to registry.

dailton

  • New Member
  • *
  • Posts: 30
Re: Error when installing new packages
« Reply #3 on: August 11, 2011, 02:13:00 pm »
Thanks,

I made some changes in the section Configure Build Lazarus and could advance. Now a new problem arose in attempting to install the ODAC and recompiling the IDE:

C:\lazarus\components\codetools\ctxmlfixfragment.pas(1,1) Fatal: Can't find unit LazarusPackageIntf used by CodeTools

Any idea?

Regards,

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Error when installing new packages
« Reply #4 on: August 11, 2011, 03:33:51 pm »
Clean the .o and .ppu first, probably as a result of previous compilation

dailton

  • New Member
  • *
  • Posts: 30
Re: Error when installing new packages
« Reply #5 on: August 11, 2011, 04:33:55 pm »
Hi,

Sorry, I didn't understand. Which ones to delete? *.o and *.ppu

Please see the following result:

C:\lazarus>dir ctxmlfixfragment.* /s
 O volume na unidade C é OS
 O Número de Série do Volume é AEF2-3F2B

 Pasta de C:\lazarus\components\codetools

28/11/2010  13:44            13.937 ctxmlfixfragment.pas
               1 arquivo(s)         13.937 bytes

 Pasta de C:\lazarus\components\codetools\units\i386-win32

11/08/2011  09:10            39.811 ctxmlfixfragment.o
11/08/2011  09:10             4.328 ctxmlfixfragment.ppu
               2 arquivo(s)         44.139 bytes

     Total de Arquivos na Lista:
               3 arquivo(s)         58.076 bytes
               0 pasta(s)   16.528.474.112 bytes disponíveis

C:\lazarus>dir LazarusPackageIntf.* /s
 O volume na unidade C é OS
 O Número de Série do Volume é AEF2-3F2B

 Pasta de C:\lazarus\packager\registration

22/07/2008  10:48             3.194 lazaruspackageintf.pas
               1 arquivo(s)          3.194 bytes

     Total de Arquivos na Lista:
               1 arquivo(s)          3.194 bytes
               0 pasta(s)   16.528.027.648 bytes disponíveis

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Error when installing new packages
« Reply #6 on: August 11, 2011, 04:38:22 pm »
In the configure build lazarus, check clean all, but set everything to none. That would only clean without compiling anything.

dailton

  • New Member
  • *
  • Posts: 30
Re: Error when installing new packages
« Reply #7 on: August 11, 2011, 07:28:43 pm »
Hi Leledumbo,

I did the "clean all" as you mentioned but when I tried to install ODAC Package again the same error appeared:

C:\lazarus\components\codetools\ctxmlfixfragment.pas(1,1) Fatal: Can't find unit LazarusPackageIntf used by CodeTools

Any Package that I try to install the same error happens.

Thanks

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Error when installing new packages
« Reply #8 on: August 12, 2011, 12:40:09 am »
I mean, after that clean all, recompile. Try recompiling whole IDE, I'm not sure LazarusPackageIntf gets rebuild just by recompiling LCL.

dailton

  • New Member
  • *
  • Posts: 30
Re: Error when installing new packages
« Reply #9 on: August 12, 2011, 02:13:10 pm »
Hi,

Back again, i recompile the IDE and i've got the message:

"Clean Lazarus Source" completed
C:\lazarus\lcl\interfaces\win32\win32int.pp(27,26) Warning: User defined: Fix implicit pointer conversions
C:\lazarus\lcl\interfaces\win32\win32proc.pp(934,2) Note: User defined: Belongs in Win32WSForms, but is needed in windowproc
"LCL" completed

After trying to install ODAC i've got the same error too:

C:\lazarus\components\codetools\ctxmlfixfragment.pas(1,1) Fatal: Can't find unit LazarusPackageIntf used by CodeTools

What I'm about to do is:

1) Uninstall Lazarus
2) Remove the Directory manually
3) Download again.
4) Reinstall

What do you think?

Thanks a lot.


Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Error when installing new packages
« Reply #10 on: August 12, 2011, 04:28:46 pm »
What if you right click and "copy all and hidden messages"? It's too weird, unless there's a unit name conflict in the package with the one from rtl/fcl/lcl.

dailton

  • New Member
  • *
  • Posts: 30
Re: Error when installing new packages
« Reply #11 on: August 12, 2011, 04:55:07 pm »


Doing what you suggested step by step:

1) Menu Package
2) Open Package file (*.lpk)
3) I selected the file 'dclodac10.lpk'
4) Click Install

Messages including hidden ones:

Free Pascal Compiler version 2.4.2 [2011/03/08] for i386
Copyright (c) 1993-2010 by Florian Klaempfl
Target OS: Win32 for i386
Compiling codetools.pas
C:\lazarus\components\codetools\codetools.pas(1,1) Fatal: Can't find unit LazarusPackageIntf used by CodeTools

thanks a lot


dailton

  • New Member
  • *
  • Posts: 30
Re: Error when installing new packages
« Reply #12 on: August 15, 2011, 01:46:43 pm »
Leledumbo,

Solved. I removed the folder located at c:\Users\<myusername>\lazarus and reinstalled everything. The problem disappeared. Something was persisted in my profile that was causing the problem.

Thank you very much

Dailton Menezes

 

TinyPortal © 2005-2018