Sign in Join

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

Mailing lists / lazarus / 2009-01

Error when compiling for GTK2 (on Linux)

8 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Bart

Hi,

Since today, when I want to compile any (even a new and empty project (just 1 form, no controls on it)) I get the following error:

Free Pascal Compiler version 2.2.2 [2008/07/29] for i386 Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Linux for i386
Compiling /tmp/project1.lpr
PPU Loading /usr/lib/lazarus/lcl/units/i386-linux/gtk2/gtkwsgrids.ppu PPU Source: gtkwsgrids.pp not found
Recompiling GtkWSGrids, checksum changed for Grids gtkwsgrids.pp(11,42) Fatal: Can't find unit GtkWSGrids used by GtkInt

The file gtkwsgrids.pp is actually there (the IDE opens it for me on the error).

What did I do before this happened?

I did a make clean all (because I altered maskedit.pp in lcl directory). This seemed to go well, no error were issued.
(I have done this before (make clean all) and AFAIK after that I still was able to swict between compiling for GTK1 and GTK2)

Any help?

Bart

Reply by email

Mattias Gaertner
to Bart
Show quoted text 25 lines
Hi, Since today, when I want to compile any (even a new and empty project (just 1 form, no controls on it)) I get the following error: Free Pascal Compiler version 2.2.2 [2008/07/29] for i386 Copyright (c) 1993-2008 by Florian Klaempfl Target OS: Linux for i386 Compiling /tmp/project1.lpr PPU Loading /usr/lib/lazarus/lcl/units/i386-linux/gtk2/gtkwsgrids.ppu PPU Source: gtkwsgrids.pp not found Recompiling GtkWSGrids, checksum changed for Grids gtkwsgrids.pp(11,42) Fatal: Can't find unit GtkWSGrids used by GtkInt The file gtkwsgrids.pp is actually there (the IDE opens it for me on the error). What did I do before this happened? I did a make clean all (because I altered maskedit.pp in lcl directory). This seemed to go well, no error were issued. (I have done this before (make clean all) and AFAIK after that I still was able to swict between compiling for GTK1 and GTK2) Any help?

Have you tried compiling lazarus clean?

Mattias

Reply by email

Mattias Gaertner
to Bart
Show quoted text 5 lines
> Have you tried compiling lazarus clean? Yeah, this all happened after a make clean all. I noticed that it rebuilds the gtk1 ppu's but not the gtk2 ppu's (the gtk2 ppu's have dates from > 3 days before)

Yes, gtk1 is the default for 0.9.26.
If you want to build the gtk2 ppu with 0.9.26, then you need

make LCL_PLATFORM=gtk2

Mattias

Reply by email

Bart
to Mattias Gaertner
Yes, gtk1 is the default for 0.9.26. If you want to build the gtk2 ppu with 0.9.26, then you need make LCL_PLATFORM=gtk2

That would build the IDE as GTK2 also (which might be a little slow on my old harware)?

And would I still be able to compile for both GTK1 and GTK2 (I need that for checking my bugfixes), or would I have to rebuild then with make LCL_PLATFORM=gtk1?
(That would be rather cumbersome, especially since Lazarus-out-of-the-box, can compile for both without any problem)

Bart

Reply by email

Marc Weustink
to Mattias Gärtner
Mattias G?rtner wrote 13 lines
Zitat von Bart : >> Yes, gtk1 is the default for 0.9.26. >> If you want to build the gtk2 ppu with 0.9.26, then you need >> >> make LCL_PLATFORM=gtk2 > That would build the IDE as GTK2 also (which might be a little slow on > my old harware)? yes. To rebuild only lcl and special packages: make lcl synedit codetools ideintf LCL_PLATFORM=gtk2

In theory only make lcl LCL_PLATFORM=gtk2 should be enough. The other packages should not have a dependency on widgetset type.

Marc

Reply by email