Sign in Join

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

Mailing lists / lazarus / 2014-01

Fwd: newbie

12 messages · 7 people · –

Reply by email Subscribe to this list Your subscription

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

duilio foschi

I would like to play with library graphics32 (graphics32.org).

The version of Lazarus I use is: 1.0.12

The instructions to follow are simple enough:

>

Unzip the files;
Select Package | Open Package File... on the menu bar. Set Files of type to Lazarus package (*.lpk), locate and open GR32_DSGN_L.dpk A package editor window will appear. Click Compile, then click Install; Lazarus will ask to compile itself in order to make use of the library. Choose Yes to be able to use the library from the IDE. It will take several minutes until the IDE is compiled completely. After an automatic restart you are able to use GR32 in Lazarus. <<

Ev goes as above.

Only at the last step, when Lazarus compiles itself, I get the following error message:
..\ideintf\objectinspector.pp(47,3) Fatal: Can't find unit ComponentTreeView used by ObjectInspector

A screenshot with the error message was uploaded at http://it.tinypic.com/r/v4s76w/5

I searched for file
ComponentTreeView.pas

The file is located at the following path:
C:\lazarus\ideintf

(see the screenshot uploaded at
http://it.tinypic.com/r/2962ljl/5
)

I tried to add the path to the LIBRARY section of the package (see the screenshot uploaded at
http://it.tinypic.com/r/2q8od9x/5
)
but had nop better luck.

How can I fix the problem ?

Thank you

Peppe

Reply by email

Mattias Gaertner
to duilio foschi
Show quoted text 10 lines
[...] type to Lazarus package (*.lpk), locate and open GR32_DSGN_L.dpk [...] Only at the last step, when Lazarus compiles itself, I get the following error message: ..\ideintf\objectinspector.pp(47,3) Fatal: Can't find unit ComponentTreeView used by ObjectInspector A screenshot with the error message was uploaded at http://it.tinypic.com/r/v4s76w/5

The screenshot shows that componenttreeview.ppu was found, but the compiler thinks it needs to be recompiled.

I searched for file ComponentTreeView.pas

Wrong track. The compiler has already compiled this source to a ppu file. The problem is that it wants to compile it again, which it should not.

Please compile the IDE with the compiler verbosity options "-vut", which you can add to the IDE build options (Tools / Configure build Lazarus options).
This gives lot of output, so you better start the IDE with command line parameter "--debug-log=log.txt".

Mattias

Reply by email

duilio foschi
to Mattias Gaertner

the compiler says "Can't find unit ComponentTreeView used by ObjectInspector".

This message in plain English language seems clear to me, also because I am accustomed to it (I have been working with Delphi since v. 1).

Nothing of that.

The compiler wants to mean "I found unit ComponentTreeView and want to compile it again but I should not".

As in the old joke, this clearly shows that Lazarus is female :)

I hope you are wrong, because I wont work with a tool that gives so misleading messages.

Anyway your suggestions didnt work ... or I didnt apply them in the correct way.

This is what I did

1. added switch -vut to CONFIGURE BUILD LAZARUS
http://it.tinypic.com/r/f24u83/5

2. opened the package I am interested in
http://it.tinypic.com/r/rc8tok/5

3. compiled the package
http://it.tinypic.com/r/s2fd3s/5

4. tried to install it...
http://it.tinypic.com/r/2a7bpg9/5
http://it.tinypic.com/r/qqx17l/5

5. after a few minutes, I see the same error message as before http://it.tinypic.com/r/2il24ur/5

I hope that Lazarus _really_ cant find unit ComponentTreeView and that there is a way to tell Lazarus where to search for it... :)

Thank you

Peppe

2014/1/10 Mattias Gaertner :

Show quoted text 38 lines
On Fri, 10 Jan 2014 22:49:53 +0100 duilio foschi wrote: >[...] > type to Lazarus package (*.lpk), locate and open GR32_DSGN_L.dpk >[...] > Only at the last step, when Lazarus compiles itself, I get the > following error message: > ..\ideintf\objectinspector.pp(47,3) Fatal: Can't find unit > ComponentTreeView used by ObjectInspector > > A screenshot with the error message was uploaded at > http://it.tinypic.com/r/v4s76w/5 The screenshot shows that componenttreeview.ppu was found, but the compiler thinks it needs to be recompiled. > I searched for file > ComponentTreeView.pas Wrong track. The compiler has already compiled this source to a ppu file. The problem is that it wants to compile it again, which it should not. Please compile the IDE with the compiler verbosity options "-vut", which you can add to the IDE build options (Tools / Configure build Lazarus options). This gives lot of output, so you better start the IDE with command line parameter "--debug-log=log.txt". Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gaertner
to duilio foschi
the compiler says "Can't find unit ComponentTreeView used by ObjectInspector". This message in plain English language seems clear to me, also because I am accustomed to it (I have been working with Delphi since v. 1).

Yes, I agree with you.

Nothing of that. The compiler wants to mean "I found unit ComponentTreeView and want to compile it again but I should not".

Well, that's not exactly what I wrote, but I think you got the right direction.

As in the old joke, this clearly shows that Lazarus is female :) I hope you are wrong, because I wont work with a tool that gives so misleading messages.

Well, "unit not found" is maybe the most misleading message of lazarus/fpc, because there are more than 20 different errors that can lead to this message. The error could be made by you or by one of the maintainers of one of the packages you installed or by the fpc release or there is even a compiler bug that can lead to this error.
fpc is a mighty compiler that gives the programmer a vast flexibility where to put units and how to combine them. But without limits it is hard to say when something went wrong.

Show quoted text 6 lines
Anyway your suggestions didnt work ... or I didnt apply them in the correct way. This is what I did 1. added switch -vut to CONFIGURE BUILD LAZARUS http://it.tinypic.com/r/f24u83/5

ok

Show quoted text 9 lines
2. opened the package I am interested in http://it.tinypic.com/r/rc8tok/5 3. compiled the package http://it.tinypic.com/r/s2fd3s/5 4. tried to install it... http://it.tinypic.com/r/2a7bpg9/5 http://it.tinypic.com/r/qqx17l/5

ok

5. after a few minutes, I see the same error message as before http://it.tinypic.com/r/2il24ur/5

Yes.
Now right click on the messages window and click on "Save all messages to a file", e.g. "unitnotfound.txt". Then open the file and look at the messages. Search for componenttreeview case insensitive.

I hope that Lazarus _really_ cant find unit ComponentTreeView and that there is a way to tell Lazarus where to search for it... :)

Well, usually it is not something missing, but something too much. I will try to explain:
The last message "unit not found" is a subsequent error. The real error happened earlier.
Keep in mind that there are unit sources (.pas or .pp files) and compiled units (.ppu files). When the compiler writes "can't find unit ComponentTreeView" and a line above "loading componenttreeview.ppu", it means that the *compiled* unit is outdated (or: does not fit). It would be nice if the compiler would write why the unit is outdated, but it does that only when compiling with -vut.
Usually a unit is outdated because some source has changed. Then the compiler should search the unit source and recompile the unit. The compiler searches and fails. And that's why you see the last error message.

In this case the source is not outdated. The unit was already compiled by an earlier invocation of the compiler.

Questions:
Can you compile the IDE without the package GR32_dsgn? Where did you get GR32_dsgn?
How did you install Lazarus? Via the installer from the Lazarus page on source forge?
What fpc version do you use?

Mattias

Reply by email

duilio foschi
to Mattias Gaertner

Q: can you compile the IDE without the package GR32_dsgn? A: I followed the following steps
http://it.tinypic.com/r/2ytxips/5
http://it.tinypic.com/r/rvyauq/5
and got this error
http://it.tinypic.com/r/160bxn8/5
retried with
http://it.tinypic.com/r/30iw19c/5
and got
http://it.tinypic.com/r/160bxn8/5
again!!
This seems to mean that the package GR32_dsgn plays no role with the error ?

I saved compiler messages into
http://tinyurl.com/ox7e4nc
4MB!

Q: Where did you get GR32_dsgn?
http://sourceforge.net/projects/graphics32/

Q: How did you install Lazarus? Via the installer from the Lazarus page on source forge?
A: I dont remember. I used
lazarus-1.0.12-fpc-2.6.2-win32.exe

Q: What fpc version do you use?
A: it seems to be v. 2.6.2
http://it.tinypic.com/r/j5a3js/5

Thank you
Peppe

Reply by email

Mattias Gaertner
to duilio foschi
Q: can you compile the IDE without the package GR32_dsgn? A: I followed the following steps http://it.tinypic.com/r/2ytxips/5

When you "install" a package the IDE adds it to its list and will include the package until you "uninstall" it.

Removing a package from the install list:
Main Menu -> Package -> Install/Uninstall Packages -> Installed

Select GR32_dsgn and click below on "Uninstall selection". Then click "Save and rebuild the IDE".

Show quoted text 10 lines
[...] This seems to mean that the package GR32_dsgn plays no role with the error ? Q: Where did you get GR32_dsgn? http://sourceforge.net/projects/graphics32/ Q: How did you install Lazarus? Via the installer from the Lazarus page on source forge? A: I dont remember. I used lazarus-1.0.12-fpc-2.6.2-win32.exe

Yes, that looks like the normal file from source forge.

Q: What fpc version do you use? A: it seems to be v. 2.6.2 http://it.tinypic.com/r/j5a3js/5

Yes.

I saved compiler messages into http://tinyurl.com/ox7e4nc 4MB!

Thanks. And here is the important message:

(COMPONENTTREEVIEW) File C:\lazarus\images\componenttreeview.lrs is newer than the one used for creating PPU file C:\lazarus\ideintf\units\i386-win32\win32\componenttreeview.ppu (COMPONENTTREEVIEW) PPU Source: C:\lazarus\images\componenttreeview.lrs time 2009/12/05 18:56:40 *

The date 2009/12/05 is strange. I don't have a Windows here to check, but that looks too old. Maybe Martin, the maintainer of the Windows installer knows how that could happen.

Please try the following:
Menu -> Tools -> Configure Build Lazarus.
In "Clean up" select "Clean all".
Then click at bottom "Build".

Mattias

Reply by email

duilio foschi
to Mattias Gaertner
Please try the following...Then click at bottom "Build".

the clean build worked ok.

After that, I could successfully compile and install package GR32_DSGN_L :)

I am playing with the example programs of graphics32.

Thank you
Peppe

2014/1/12 Mattias Gaertner :

Show quoted text 64 lines
On Sun, 12 Jan 2014 13:08:43 +0100 duilio foschi wrote: > Q: can you compile the IDE without the package GR32_dsgn? > A: I followed the following steps > http://it.tinypic.com/r/2ytxips/5 When you "install" a package the IDE adds it to its list and will include the package until you "uninstall" it. Removing a package from the install list: Main Menu -> Package -> Install/Uninstall Packages -> Installed Select GR32_dsgn and click below on "Uninstall selection". Then click "Save and rebuild the IDE". >[...] > This seems to mean that the package GR32_dsgn plays no role with the error ? > > Q: Where did you get GR32_dsgn? > http://sourceforge.net/projects/graphics32/ > > Q: How did you install Lazarus? Via the installer from the Lazarus > page on source forge? > A: I dont remember. I used > lazarus-1.0.12-fpc-2.6.2-win32.exe Yes, that looks like the normal file from source forge. > Q: What fpc version do you use? > A: it seems to be v. 2.6.2 > http://it.tinypic.com/r/j5a3js/5 Yes. > I saved compiler messages into > http://tinyurl.com/ox7e4nc > 4MB! Thanks. And here is the important message: (COMPONENTTREEVIEW) File C:\lazarus\images\componenttreeview.lrs is newer than the one used for creating PPU file C:\lazarus\ideintf\units\i386-win32\win32\componenttreeview.ppu (COMPONENTTREEVIEW) PPU Source: C:\lazarus\images\componenttreeview.lrs time 2009/12/05 18:56:40 * The date 2009/12/05 is strange. I don't have a Windows here to check, but that looks too old. Maybe Martin, the maintainer of the Windows installer knows how that could happen. Please try the following: Menu -> Tools -> Configure Build Lazarus. In "Clean up" select "Clean all". Then click at bottom "Build". Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Richard Mace
to Sven Barth

There is indeed and very goods it is too.
Whichever Windows version you choose, Lazarus should work well for you.

Richard

Sven Barth wrote 23 lines
On 26.01.2014 07:19, M.Zamil wrote: > Hello all, > I am new to Lazarus and I am wondering if there is a Lazarus for windows. > TIA > Mosaed > When you visit http://www.lazarus.freepascal.org/ with a Windows OS you should already see the approbiate download link in the top right. If not, take a look here: http://www.lazarus.freepascal. org/index.php?page=downloads Regards, Sven -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140126/024e5492/attachment.html>

Reply by email

Kostas Michalopoulos
to Richard Mace

Well... almost. If you go to the site with a 64bit version of Windows, you get a 64bit version of Lazarus which produces 64bit executables that do no run on 32bit systems. The only way to make it produce 32bit executables on a 64bit system is to create a special "32bit windows" build profile (which you need to keep up to date) and explicitly set the target CPU/widgetset.

IMO since most people wont care about 64bit executables, it is better to only give that download as an alternative option in 64bit Windows systems, not as the default (and only) option.

Richard Mace wrote 38 lines
There is indeed and very goods it is too. Whichever Windows version you choose, Lazarus should work well for you. Richard On 26 January 2014 08:45, Sven Barth wrote: > > On 26.01.2014 07:19, M.Zamil wrote: >> >> Hello all, >> I am new to Lazarus and I am wondering if there is a Lazarus for windows. >> TIA >> Mosaed > > > When you visit http://www.lazarus.freepascal.org/ with a Windows OS you > should already see the approbiate download link in the top right. If not, > take a look here: http://www.lazarus.freepascal.org/index.php?page=downloads > > Regards, > Sven > > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Reinier Olislagers
to Kostas Michalopoulos
Kostas Michalopoulos wrote 10 lines
Well... almost. If you go to the site with a 64bit version of Windows, you get a 64bit version of Lazarus which produces 64bit executables that do no run on 32bit systems. The only way to make it produce 32bit executables on a 64bit system is to create a special "32bit windows" build profile (which you need to keep up to date) and explicitly set the target CPU/widgetset. IMO since most people wont care about 64bit executables, it is better to only give that download as an alternative option in 64bit Windows systems, not as the default (and only) option.

Agreed, especially given the problems with FPC 2.6.x with exceptions in DLLs (e.g. database drivers, windows explorer extensions,...)

Reply by email