Recent

Author Topic: Lazarus Ide  (Read 16933 times)

jpartridge

  • Guest
Lazarus Ide
« on: September 01, 2003, 04:16:31 pm »
Can someone help a noob?

I've new to freebsd and I've installed FreePascal on it.  No offense but the ide is unusable, it ignores the mouse and strange characters show up on the display.  (Of course it might be that I haven't configured it properly for KDE.)

The pics of the Lazarus Ide look GREAT and I can't wait to try it!  What do I need to download and how do I install it?

Also - I compiled a cgi Hello, world app in freebsd and it's almost 80k.  The same app compiled using FreePascal under Bloodshed'd ide in Win98 is 17k.  Any thoughts?  I compiled it w/o debug info on both platforms.

jpartridge

  • Guest
Lazarus Ide
« Reply #1 on: September 02, 2003, 12:23:34 am »
Please forgive my ignorance, I'm trying to kiss the evil empire goodbye after 20 years.  Everything is new and strange.

I managed to dowload Lazarus via cvs.  It appears that I need to compile it.  Do I just type 'make' while in the directory?  I downloaded it to /usr/local/bin/lazarus, I hope that's an appropriate place to put it.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2527
Lazarus Ide
« Reply #2 on: September 02, 2003, 12:44:04 pm »
Place it where you like, however something like .../src/... seems more logic :-)

Issuing make should do the trick, the the FAQ section for more details
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

jpartridge

  • Guest
Lazarus Ide
« Reply #3 on: September 02, 2003, 12:47:10 pm »
Following the instructions in the faq I ran make while in the lazarus directory and got these error messages:


makefile line 10 needs an operator
makefile line 12 needs an operator
unknown modifier '/'           <- quite a few times
error expanding embedded variable


Any help would sure be appreciated.

jpartridge

  • Guest
Lazarus Ide
« Reply #4 on: September 02, 2003, 01:23:12 pm »
Thanks for responding Marc.  /usr/scr it is.   :)

I moved the files to scr and ran make again and doh, apparently I left a few lines out the errors list.

makefile line 7: missing dependancy operator
unknown modifier ','
unknown modifier ','
makefile line 10: need an operator
makefile line 12: need an operator
unknown modifier '/' <- many times
error expanding embedded variable

vrs

  • New Member
  • *
  • Posts: 25
Lazarus Ide
« Reply #5 on: September 02, 2003, 08:37:42 pm »
I am no FreeBSD user and I don't know if it is obvious to you, but according to Marco's BuildFaq at www.stack.nl/~marcov/buildfaq.pdf you should use gmake as make executable. You didn't mention using gmake.

Did you use that or just plain make?

gmake is the gnu make utility. I don't know if it is installed on your system. If it is try gmake instead of make in the lazarus source directory.

From the BuildFaq:
Quote
*BSD: Uses a pmake variant which is slightly different. The makefile template used by FPC isn’t compatible with pmake at this moment. (hint, hint) GNU make is installable from the ports tree, usually as devel/gmake. Don’t forget to put the bin directory of the ports-$PREFIX (/usr/local/bin, /usr/pkg/bin etc) into your path, and substitute all use of make by “gmake”.

Vincent

jpartridge

  • Guest
Lazarus Ide
« Reply #6 on: September 03, 2003, 12:39:54 am »
Thank you vrs!  I didn't know about the buildfaq.

I'll do it first thing in the morning.

But then I'll have a new problem - tearing myself away so I can go to work   8)

jpartridge

  • Guest
Lazarus Ide
« Reply #7 on: September 07, 2003, 04:00:00 pm »
Quote
ypeast01# cd /usr/src/lazarus
ypeast01# gmake
usage: dirname path
gmake -C lcl all
usage: dirname path
gmake[1]: Entering directory `/usr/src/lazarus/lcl'
/bin/rm -f units/allunits.ppu
/usr/local/bin/ppc386 -gl -Fu./units/gtk -Fu./units -Fu. -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/rtl -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/paszlib -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/netdb -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/libasync -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/fcl -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/mysql -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/ibase -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/x11 -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/opengl -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/gtk -Fiinclude -FUunits -di386 allunits.pp
Free Pascal Compiler version 1.0.10 [2003/06/27] for i386
Copyright (c) 1993-2003 by Florian Klaempfl
Target OS: FreeBSD/ELF for i386
Compiling allunits.pp
127 Lines compiled, 0.7 sec
gmake -C interfaces all
usage: dirname path
gmake[2]: Entering directory `/usr/src/lazarus/lcl/interfaces'
gmake -C gtk all
usage: dirname path
gmake[3]: Entering directory `/usr/src/lazarus/lcl/interfaces/gtk'
/bin/rm -f ../../units/gtk/interfaces.ppu ../../units/interfaces.ppu
/usr/local/bin/ppc386 -gl -dgtk1 -Fu../../units -Fu. -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/rtl -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/paszlib -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/netdb -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/libasync -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/fcl -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/gtk -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/mysql -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/ibase -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/x11 -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/opengl -FU../../units/gtk -di386 interfaces.pp
Free Pascal Compiler version 1.0.10 [2003/06/27] for i386
Copyright (c) 1993-2003 by Florian Klaempfl
Target OS: FreeBSD/ELF for i386
Compiling interfaces.pp
Assembling interfaces
48 Lines compiled, 0.8 sec
gmake[3]: Leaving directory `/usr/src/lazarus/lcl/interfaces/gtk'
gmake[2]: Leaving directory `/usr/src/lazarus/lcl/interfaces'
gmake[1]: Leaving directory `/usr/src/lazarus/lcl'
gmake -C components all
gmake[1]: Entering directory `/usr/src/lazarus/components'
gmake -C synedit all
usage: dirname path
gmake[2]: Entering directory `/usr/src/lazarus/components/synedit'
/bin/rm -f ../units/allunits.ppu
/usr/local/bin/ppc386 -gl -Fu../../lcl/units -Fu. -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/rtl -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/paszlib -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/netdb -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/libasync -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/fcl -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/regexpr -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/mysql -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/ibase -FU../units -di386 allunits.pp
Free Pascal Compiler version 1.0.10 [2003/06/27] for i386
Copyright (c) 1993-2003 by Florian Klaempfl
Target OS: FreeBSD/ELF for i386
Compiling allunits.pp
88 Lines compiled, 0.5 sec
gmake[2]: Leaving directory `/usr/src/lazarus/components/synedit'
gmake -C codetools all
usage: dirname path
gmake[2]: Entering directory `/usr/src/lazarus/components/codetools'
/bin/rm -f ../units/allcodetoolunits.ppu
/usr/local/bin/ppc386 -gl -Fu. -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/rtl -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/paszlib -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/netdb -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/libasync -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/fcl -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/mysql -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/ibase -FU../units -di386 allcodetoolunits.pp
Free Pascal Compiler version 1.0.10 [2003/06/27] for i386
Copyright (c) 1993-2003 by Florian Klaempfl
Target OS: FreeBSD/ELF for i386
Compiling allcodetoolunits.pp
76 Lines compiled, 0.4 sec
gmake[2]: Leaving directory `/usr/src/lazarus/components/codetools'
gmake[1]: Leaving directory `/usr/src/lazarus/components'
gmake -C designer all
gmake[1]: Entering directory `/usr/src/lazarus/designer'
gmake -C jitform all
usage: dirname path
gmake[2]: Entering directory `/usr/src/lazarus/designer/jitform'
/bin/rm -f ../units/jitform.ppu
/usr/local/bin/ppc386 -gl -Fu../../lcl/units -Fu. -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/rtl -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/paszlib -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/netdb -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/libasync -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/fcl -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/mysql -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/ibase -FU../units -di386 jitform.pas
Free Pascal Compiler version 1.0.10 [2003/06/27] for i386
Copyright (c) 1993-2003 by Florian Klaempfl
Target OS: FreeBSD/ELF for i386
Compiling jitform.pas
Assembling jitform
130 Lines compiled, 0.4 sec
gmake[2]: Leaving directory `/usr/src/lazarus/designer/jitform'
gmake[1]: Leaving directory `/usr/src/lazarus/designer'
gmake -C packager all
gmake[1]: Entering directory `/usr/src/lazarus/packager'
gmake -C registration all
usage: dirname path
gmake[2]: Entering directory `/usr/src/lazarus/packager/registration'
/bin/rm -f ../units/lazaruspackageintf.ppu
/usr/local/bin/ppc386 -gl -Fu. -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/rtl -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/paszlib -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/netdb -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/libasync -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/fcl -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/mysql -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/ibase -FU../units -di386 lazaruspackageintf.pas
Free Pascal Compiler version 1.0.10 [2003/06/27] for i386
Copyright (c) 1993-2003 by Florian Klaempfl
Target OS: FreeBSD/ELF for i386
Compiling lazaruspackageintf.pas
Assembling lazaruspackageintf
109 Lines compiled, 0.0 sec
gmake[2]: Leaving directory `/usr/src/lazarus/packager/registration'
gmake[1]: Leaving directory `/usr/src/lazarus/packager'
gmake --assume-new=lazarus.pp lazarus
usage: dirname path
gmake[1]: Entering directory `/usr/src/lazarus'
/usr/local/bin/ppc386 -gl -Fulcl/units -Fulcl/units/gtk -Fucomponents/units -Fucomponents/custom -Fucomponents/mpaslex -Fudesigner -Fudesigner/units -Fudebugger -Fupackager -Fupackager/units -Fu. -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/rtl -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/paszlib -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/netdb -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/libasync -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/fcl -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/regexpr -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/mysql -Fu/usr/local/lib/fpc/1.0.10/units/freebsd/ibase -Fiinclude -Fiinclude/freebsd -FE. -di386 lazarus.pp
Free Pascal Compiler version 1.0.10 [2003/06/27] for i386
Copyright (c) 1993-2003 by Florian Klaempfl
Target OS: FreeBSD/ELF for i386
Compiling lazarus.pp
Assembling lazarus
Linking ./lazarus
/usr/libexec/elf/ld: cannot find -lglib12
lazarus.pp(352) Error: Error while linking
Closing script ./ppas.sh
gmake[1]: *** [lazarus] Error 1
gmake[1]: Leaving directory `/usr/src/lazarus'
gmake: *** [ide] Error 2


This is what I get when running gmake.
Any thoughts?
I've tried to find the answer in the faqs but they seem to expect at least some knowledge (or intelligence)  :)

vrs

  • New Member
  • *
  • Posts: 25
Lazarus Ide
« Reply #8 on: September 07, 2003, 07:43:02 pm »
Just some thought, hopefully helpful.
glib12 is the glib library part of gtk-1.2.
Do you have gtk 1.2 (and also glib 1.2) installed? On my linux computer it is called: libglib-1.2.so.0.0.10, with a symlink from /usr/lib/libglib.so
Looking at glib.pp pascal header file for glib, (assuming freebsd also has libraries starting with lib and extension so) I supose you need a file libglib12.so.

HTH
Vincent

Anonymous

  • Guest
Lazarus Ide
« Reply #9 on: September 07, 2003, 11:21:12 pm »
Thx for taking the time to look that up Vincent.

Yes, I do have the libraries installed (I installed them after getting a helpful error message from an earlier gmake attempt).

I ran the sysinstall program to make sure and glib-1.2.10_8 and gtk-1.2.10_9 are installed.
Here's what I found looking for libglib files:
Quote
ypeast01# find / -name "libglib*"
/usr/local/lib/libglib12.a
/usr/local/lib/libglib12.so
/usr/local/lib/libglib12.so.3
/usr/compat/linux/usr/lib/libglib-1.2.so.0
/usr/compat/linux/usr/lib/libglib-1.2.so.0.0.6


Since I don't yet know how to tell the OS where to put the output from the various ways to install software I would think it's safe to say that anything installed should be easy for software to find.  Here's my path settings:
Quote
(/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin /usr/X11R6/bin /root/bin)


The number of "usage: dirname path" lines when I ran gmake combined with my being so new to freebsd has you thinking that something is out of sync directory structure-wise?  I could repartition and reinstall freebsd if you think that would help.

Thanks again.

jpartridge

  • Guest
Lazarus Ide
« Reply #10 on: September 12, 2003, 01:25:24 am »
Has anyone gotten the Lazarus Ide to run under freebsd?

vrs

  • New Member
  • *
  • Posts: 25
Lazarus Ide
« Reply #11 on: September 12, 2003, 08:41:42 am »
Marco van de Voort has. If you ask your question on the Lazarus list, he will probably answer you.

gorilla

  • Newbie
  • Posts: 4
Lazarus Ide
« Reply #12 on: October 28, 2003, 10:29:57 am »
Quote from: "jpartridge"
Has anyone gotten the Lazarus Ide to run under freebsd?


Yes... But not untill I manaually hacked link.res file..

After running gmake,  it will produces the following output..
usr/libexec/elf/ld: cannot find -lglib12
lazarus.pp(352) Error: Error while linking
Closing script ./ppas.sh
gmake[1]: *** [lazarus] Error 1
gmake[1]: Leaving directory `/usr/src/lazarus'
gmake: *** [ide] Error 2

At this point don't give up, you are rpobably only a minute away from sucess.

In the current direct you will find a file called link.res. At the top of this fiile is the line like SEARCH_DIR(/usr/lib/)

Add a line

SEARCH_DIR(/usr/local/lib/)

At the top of file link.res is fine. (doesn't really matter)...

You then run ./ppas.sh to re-link the object files.

Enjoy...

 

TinyPortal © 2005-2018