[lazarus] Problem compiling lazarus under new install of 1.0.7
acjgenius at earthlink.net
Thu Nov 7 10:22:23 EST 2002
Umm according to current CVS, those lines are the lines which set the
Pen style parameters. Based on this I can only assume you have an older
version, or incorrect version of the gdk unit. Certain versions of GDK
had gdk_gc_set_dashes dash parameters in array of Char instead of Byte,
I believe up until 1.0.4. This was actually a problem I had noticed in
Win32 more than Linux. I would suggest getting the 1.0.7 gtk nightly. If
it is still an issue it is likely that something else is wrong. BTW
there is an older 1.0.7 version(september) available as a RPM from the
Lazarus FTP site, it should include all necessary units.
To test and see If I am right about the problems, change the problem
lines from :
PS_DASH: gdk_gc_set_dashes(GC, 0, [4,4], 2);
PS_DOT: gdk_gc_set_dashes(GC, 0, [2,2], 2);
PS_DASHDOT: gdk_gc_set_dashes(GC, 0, [4,2,2,2,0], 4);
PS_DASHDOTDOT: gdk_gc_set_dashes(GC, 0, [4,2,2,2,2,2], 6);
PS_DASH: gdk_gc_set_dashes(GC, 0, [#4,#4], 2);
PS_DOT: gdk_gc_set_dashes(GC, 0, [#2,#2], 2);
PS_DASHDOT: gdk_gc_set_dashes(GC, 0, [#4,#2,#2,#2,#0],4);
PS_DASHDOTDOT: gdk_gc_set_dashes(GC, 0, [#4,#2,#2,#2,#2,#2],6);
On Thu, 2002-11-07 at 04:49, David Creelman wrote:
> Hi Tony,
> Thanks for that. However, that didn't fix the problem. I put the file
> that was missing into the search path, but now I get this error...
> Is there an RPM with all of this setup for 1.0.7 ?
> /bin/rm -f ../../units/gtk/interfaces.ppu ../../units/interfaces.ppu
> /usr/local/bin/ppc386 -gl -Fu../../units -Fu.
> -Fu/usr/local/lib/fpc/1.0.7/units/linux/x11 -FU../../units/gtk
> -Fl/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96 -Fl/usr/X11R6/lib
> -Fl/usr/lib/qt2/lib -Fl/usr/local/lib/wine -Fl/usr/local/lib -di386
> Free Pascal Compiler version 1.0.7 [2002/11/05] for i386
> Copyright (c) 1993-2002 by Florian Klaempfl
> Target OS: Linux for i386
> Compiling interfaces.pp
> Compiling gtkint.pp
> gtkobject.inc(5760,28) Error: illegal call by reference parameters
> gtkobject.inc(5759,28) Error: illegal call by reference parameters
> gtkobject.inc(5758,28) Error: illegal call by reference parameters
> gtkobject.inc(5757,28) Error: illegal call by reference parameters
> gtkint.pp(628) Fatal: There were 4 errors compiling module, stopping
> make: *** [interfaces.ppu] Error 1
> make: Leaving directory
> make: *** [gtk_all] Error 2
> make: Leaving directory `/home/davidc/develop/lazarus/lcl/interfaces'
> make: *** [interfaces] Error 2
> make: Leaving directory `/home/davidc/develop/lazarus/lcl'
> make: *** [lcl] Error 2
> [davidc at gauss lazarus]$
> On Wed, 2002-11-06 at 05:58, Tony Maro wrote:
> > On Tue, 2002-11-05 at 06:58, David Creelman wrote:
> > > Hi,
> > >
> > > I followed Tony Maro's instructions for installing fpc 1.0.7 and at
> > Well there's your first problem - I obviously don't know what I'm doing.
> > ;-D
> > > first had a problem getting gtkproc to compile. So then I downloaded
> > > unitsx11.tar.gz and got further, but now I get the following error.
> > I have never seen that one but I would lean towards that you might be
> > missing another unit maybe? Or the fpc.conf file is not right somehow.
> > Did you download and extract ALL the FPC units, or just the few I noted
> > that I had learned were required? Things have changed a bit since I
> > specified those few. Last time I did an install I just automatically
> > grabbed all the FPC units and installed them all. Part of the problem
> > of guessing just which units to install is that FPC 1.0.7 has still
> > changed some, and I think they moved some things around or something...
> > If you figure out that my possible required units list is missing one or
> > more specific units, let me know which ones and I'll update it.
> > I installed a fresh copy about 1 week ago, and installed ALL the units
> > and it worked fine. I didn't try to piecemeal it because I knew sooner
> > or later I would need them anyway...
> > Oh, you don't happen to still have some 1.0.6 files still installed do
> > you? I got weird problems when I accidentally mismatched some things
> > once.
> > Thanks,
> > Tony
More information about the Lazarus