Recent

Author Topic: Lazarus and Gentoo  (Read 21838 times)

perico

  • Guest
Lazarus and Gentoo
« on: September 23, 2003, 01:24:05 am »
Hello. Do you know if exist a package for Lazarus in Gentoo Linux? Are the developer thinking to create it?

Thanks

Martin

  • Guest
Lazarus and Gentoo
« Reply #1 on: September 24, 2003, 01:06:03 pm »
Same here : is an "ebuild" on the road map :?:

Anonymous

  • Guest
Lazarus and Gentoo
« Reply #2 on: September 26, 2003, 05:40:07 pm »
Is there someone alive behind the forums ? :(

AJGenius

  • New Member
  • *
  • Posts: 10
Lazarus and Gentoo
« Reply #3 on: September 27, 2003, 05:43:34 pm »
Heh. kinda hard to answer a question like this. But here is my take.

As gentoo is a from source distro an e-build should normaly download a source tar and compile and install, given the nature of the freepascal requirements you would have to bootstrap with a prebuilt fpc binary first and then let it self-compile etc, under gentoo this isn't too tricky, but I certainly wouldn't want to have to maintain such an e-build, and given the overall lack/need of dependencies in lazarus itself besides that its almost pointless to bother making one.

I.E. Freepascal will work on virtually any base system, should require nothing itself, but what about all the packages? to fit properly in the gentoo scheme of dependencies you would have to have either a different ebuild per fpc package each "depending" on those libs it is the headers for, or one huge one requiring massive amounts of ridiculous depends. I can see here the sanest gentoo way of doing this is to do seperate packages for each, meaning seperate e-builds for fpc + rtl, fcl, x, gtk, gnome, xforms, zlib, .... and about 20 other packages just for fpc to maintain.

Lazarus itself would then be similar intricacies, because it can be built different for different depends, for instance base lcl  would by this scheme have to require gtk and gtk2 and gnome1.4 and win32 headers, or would have to package each interfaces sepearately, moreover the gtk interface doesn't have to have gdkpixbuf(though its strongly recomended), so that would have to be a properly balanced USE flag, gnome doesn't have to imlib, so thats another one for that....

do you see where I am going? As long as gentoo is built around the C way of handling things then any package we build will not follow gentoos way or will require ridiculous(and in the fpc method utterly pointless) amounts of work and effort to maintain(not to mention use). Since not following gentoo's design makes an e-build essentialy pointless, I think it makes most sense to simply use the normal installer for fpc, and simply grab and compile lazarus from tar or cvs manually yourself for now.

Maybe I am overcomplicating matters, but if you all want such e-builds I would recommend looking into the issue youself, as I don't use or work with gentoo a lot.

Anonymous

  • Guest
Lazarus and Gentoo
« Reply #4 on: October 11, 2003, 08:13:04 pm »
This is not quite true. FPC already exists as an ebuild. So a Lazarus ebuild should be easy to maintain, if you specify FPC as a dependency.

Anonymous

  • Guest
Lazarus and Gentoo
« Reply #5 on: December 29, 2003, 09:43:56 pm »
It is easy to have lazarus on Gentoo.
1. Just emerge fpc
2. Download the lazarus sources and put them in a directory.
3. Run "make" in lazarus directory
4. Run ./lazarus

Anonymous

  • Guest
Lazarus and Gentoo
« Reply #6 on: May 23, 2004, 05:19:27 pm »
Quote from: "Anonymous"
It is easy to have lazarus on Gentoo.
1. Just emerge fpc
2. Download the lazarus sources and put them in a directory.
3. Run "make" in lazarus directory
4. Run ./lazarus
Easy huh?  I followed your instrictions but running 'make' returns errors:

make
make -C lcl all
make[1]: Entering directory `/home/james/Desktop/lazarus/lcl'
/bin/rm -f units/i386/linux/alllclunits.ppu
/usr/bin/ppc386 -gl -Fu. -Funonwin32 -Fuwidgetset -Fu/usr/lib/fpc/1.0.10/units/linux/rtl -Fu/usr/lib/fpc/1.0.10/units/linux/paszlib -Fu/usr/lib/fpc/1.0.10/units/linux/netdb -Fu/usr/lib/fpc/1.0.10/units/linux/libasync -Fu/usr/lib/fpc/1.0.10/units/linux/pthreads -Fu/usr/lib/fpc/1.0.10/units/linux/fcl -Fu/usr/lib/fpc/1.0.10/units/linux/mysql -Fu/usr/lib/fpc/1.0.10/units/linux/ibase -Fu/usr/lib/fpc/1.0.10/units/linux/sqlite -Fu/usr/lib/fpc/1.0.10/units/linux/x11 -Fu/usr/lib/fpc/1.0.10/units/linux/opengl -Fu/usr/lib/fpc/1.0.10/units/linux/gtk -Fiinclude -FUunits/i386/linux -Fl/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2 -Fl/opt/blackdown-jdk-1.4.1/jre/lib/i386/ -Fl/opt/blackdown-jdk-1.4.1/jre/lib/i386/classic/ -Fl/opt/blackdown-jdk-1.4.1/jre/lib/i386/native_threads/ -Fl/usr/X11R6/lib -Fl/usr/games/lib -Fl/usr/kde/3.2/lib -Fl/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2 -Fl/usr/lib/opengl/nvidia/lib -Fl/usr/local/lib -Fl/usr/qt/3/lib -di386 alllclunits.pp
make -C interfaces all
make[2]: Entering directory `/home/james/Desktop/lazarus/lcl/interfaces'
make -C gtk all
make[3]: Entering directory `/home/james/Desktop/lazarus/lcl/interfaces/gtk'
/bin/rm -f ../../units/i386/linux/gtk/interfaces.ppu \
        ../../units/i386/linux/gtk/interfaces.o
/usr/bin/ppc386 -gl -dgtk1 -Fu../../units/i386/linux -Fu. -Fu/usr/lib/fpc/1.0.10/units/linux/rtl -Fu/usr/lib/fpc/1.0.10/units/linux/paszlib -Fu/usr/lib/fpc/1.0.10/units/linux/netdb -Fu/usr/lib/fpc/1.0.10/units/linux/libasync -Fu/usr/lib/fpc/1.0.10/units/linux/pthreads -Fu/usr/lib/fpc/1.0.10/units/linux/fcl -Fu/usr/lib/fpc/1.0.10/units/linux/gtk -Fu/usr/lib/fpc/1.0.10/units/linux/mysql -Fu/usr/lib/fpc/1.0.10/units/linux/ibase -Fu/usr/lib/fpc/1.0.10/units/linux/sqlite -Fu/usr/lib/fpc/1.0.10/units/linux/x11 -Fu/usr/lib/fpc/1.0.10/units/linux/opengl -FU../../units/i386/linux/gtk -Fl/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2 -Fl/opt/blackdown-jdk-1.4.1/jre/lib/i386/ -Fl/opt/blackdown-jdk-1.4.1/jre/lib/i386/classic/ -Fl/opt/blackdown-jdk-1.4.1/jre/lib/i386/native_threads/ -Fl/usr/X11R6/lib -Fl/usr/games/lib -Fl/usr/kde/3.2/lib -Fl/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2 -Fl/usr/lib/opengl/nvidia/lib -Fl/usr/local/lib -Fl/usr/qt/3/lib -di386 interfaces.pp
gtkwscomctrls.pp(211,33) Error: Cannot access a protected field of an object here
gtkwscomctrls.pp(213,51) Error: Cannot access a protected field of an object here
gtkwscomctrls.pp(216,29) Error: Cannot access a protected field of an object here
gtkwscomctrls.pp(338) Fatal: There were 3 errors compiling module, stopping
make[3]: *** [interfaces.ppu] Error 1
make[3]: Leaving directory `/home/james/Desktop/lazarus/lcl/interfaces/gtk'
make[2]: *** [gtk_all] Error 2
make[2]: Leaving directory `/home/james/Desktop/lazarus/lcl/interfaces'
make[1]: *** [interfaces] Error 2
make[1]: Leaving directory `/home/james/Desktop/lazarus/lcl'
make: *** [lcl] Error 2

Anonymous

  • Guest
Lazarus and Gentoo
« Reply #7 on: June 18, 2004, 03:01:34 pm »
Some months ago (12/2003) fpc 1.0.10 was able to compile Lazarus.
Now lazarus requires newer fpc from CVS. You have to build manually the updated version of fpc and then Lazarus...

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Lazarus and Gentoo
« Reply #8 on: June 18, 2004, 03:32:55 pm »
Quote from: "Anonymous"
Some months ago (12/2003) fpc 1.0.10 was able to compile Lazarus.
Now lazarus requires newer fpc from CVS. You have to build manually the updated version of fpc and then Lazarus...


This is not true, you can use fpc 1.0.10 to compile lazarus. The developers are thinking about moving to 1.9.4 or later, because it offers interfaces, which  makes implementing the LCL easier.

If you find any problem compiling lazarus with fpc 1.0.10, mail it to the mailing list, because fpc 1.0.10 is still supported, although most developers use a 1.9.x compiler on a daily basis.

Anonymous

  • Guest
Lazarus and Gentoo
« Reply #9 on: November 06, 2004, 10:18:03 am »
hi I'm trying to compile lazarus on gentoo with FPC-1.9.5 and this is the error that i get

main.pp(775,3) Note: Local variable "StartedByStartLazarus" is assigned but never used
Linking ./lazarus
/usr/lib/fpc/1.9.5/units/linux/rtl/cprt0.o(.text+0x24): In function `_start':
: undefined reference to `__libc_init'
/usr/lib/fpc/1.9.5/units/linux/rtl/cprt0.o(.text+0x31): In function `_start':
: undefined reference to `__setfpucw'
lazarus.pp(97,1) Error: Error while linking
Closing script ./ppas.sh
make[1]: *** [lazarus] Error 1
make[1]: Leaving directory `/usr/src/lazarus'
make: *** [ide] Error 2

Can anyone help with this as I'm not a pascel programmer (yet).

thanks inadvance

Peter Tiggerdine (ptiggerdine@no-spam.fastmail.com.au

Anonymous

  • Guest
Lazarus and Gentoo
« Reply #10 on: November 07, 2004, 11:14:56 pm »
hi, just more debugging for the developers

Linking ./lazarus
/usr/lib/fpc/1.9.4/units/linux/rtl/cprt0.o(.text+0x28): In function `_start':
: undefined reference to `__libc_init'
/usr/lib/fpc/1.9.4/units/linux/rtl/cprt0.o(.text+0x35): In function `_start':
: undefined reference to `__setfpucw'
lazarus.pp(97,1) Error: Error while linking
Closing script ./ppas.sh
make[1]: *** [lazarus] Error 1
make[1]: Leaving directory `/usr/src/lazarus'
make: *** [ide] Error 2

now this was from emerge fpc ( which is version 1.9.4) and cvsing the lazarus source, so something to definately broken.  If someone could give me an eta on this it would be great as I'm trying to push this application and the free pascal compiler to a HUGE corperate big wig who are sick of the lack of interest that borland is showing in kylix

thanks indavance

Peter Tiggerdine (ptiggerdine@no-spam.fastmail.com.au)

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Lazarus and Gentoo
« Reply #11 on: November 08, 2004, 12:42:28 pm »
I doubt this is a lazarus problem, more likely it is caused by an error in the fpc installation.

Try creating a small fpc program in a text editor:

Code: [Select]
program hello;
uses cmem; //to force using libc
begin
  writeln('Hello world');
end.


Can you compile and run this?
It seems libc is non standard and that is a gentoo problem, so the gentoo maintainer for fpc should look into this.

pinguin

  • Guest
Lazarus and Gentoo
« Reply #12 on: August 23, 2005, 11:59:35 am »
Hello.
I use Gentoo too.
an emerge fpc worked fine.

Your program "Hello World" compiled and runs perfectly.
(hello has a size of 92k!)

But the make for Lazarus (lazarus.0.9.8) stopps linking with:

..
..
..
Compiling cleandirdlg.pas
Linking ./lazarus
/usr/bin/ld: cannot find -lgdk_pixbuf
lazarus.pp(98,1) Error: Error while linking
make[1]: *** [lazarus] Fehler 1
make[1]: Leaving directory `/home/paul/Downloads/Lazarus/lazarus'
make: *** [ide] Fehler 2


Anybody, having the same Problem ?

Meanwhile i'll try the new lazarus 0.9.9, maybe better

thanks in advance.

Paul

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Lazarus and Gentoo
« Reply #13 on: August 23, 2005, 03:03:06 pm »
No, your having another problem. You need to install the gdk-pixbuf developement libraries. It usually contains a file libgdk_pixbuf.so which is a symlink to the prefered version of the gdj_pixbuf lib.

glober

  • Full Member
  • ***
  • Posts: 130
Lazarus and Gentoo
« Reply #14 on: August 24, 2005, 02:35:01 am »
Just an observation , but more than three months after the official release of FPC ver. 2.0 and the portage version is still sittting at 2.0.0-rc1 and Lazarus at 0.9.6. Quite saddly out of date.  I guess the maintainers have disappeared. SVN is the way to go.

 

TinyPortal © 2005-2018