SliTaz SliTaz Forum

You are not logged in.

#1 2012-09-27 16:23:15

home_araignee
Member
Registered: 2012-09-27
Posts: 4

Pb with Lazarus IDE (dev)

As there is no packgage for Lazarus IDE, I failed to convert the debian one. I saw that fpc and fpcsrc packages are available for download. Does anyone has already installed Lazarus?

Thanks

Offline

#2 2012-09-27 17:03:17

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: Pb with Lazarus IDE (dev)

Don't you need FreePascal to use Lazarus?

Offline

#3 2012-09-27 17:16:47

home_araignee
Member
Registered: 2012-09-27
Posts: 4

Re: Pb with Lazarus IDE (dev)

Yes fpc is the Free Pascal Compiler, and there are both free pascal exe and sources for Slitaz 4.

So it would be great to have Lazarus also. I will try to compile lazarus sources.

Offline

#4 2012-09-27 17:40:18

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: Pb with Lazarus IDE (dev)

Make sure you have fpc and fpc-src installed.

Then download: http://sourceforge.net/projects/lazarus/files/Lazarus%20Zip%20_%20GZip/Lazarus%201.0/lazarus-1.0-0.tar.gz/download

Extract it, right click the lazarus file and set it's permission to all execute. Then run. According to the Wiki this should work

Offline

#5 2012-09-27 19:19:39

home_araignee
Member
Registered: 2012-09-27
Posts: 4

Re: Pb with Lazarus IDE (dev)

This archive is the lazarus source to compile. For doing this we need the following :

tazpkg get-install gcc glibc-dev make automake autoconf --forced

Unfortunatly I get errors when making clean all.

Illegal parameter: setgccdir()

Offline

#6 2012-09-27 20:41:28

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: Pb with Lazarus IDE (dev)

You'll probably need gtk+-dev and gdk-pixbuf-dev too. Use slitaz-toolchain to get everything gcc needs to work.

Going on the Wiki, you only need to compile FreePascal's source and copy them to the right place (which has been done for you by SliTaz). Then you just download lazarus' archive, extract it and run ./lazarus after marking it as an executable.

The [c]make clean[/c] just removes all the compiled files - it does not compile anything. I assume running ./lazarus compiles Lazarus through FreePascal's compiler the first time you run it.

Offline

#7 2012-09-28 09:44:07

home_araignee
Member
Registered: 2012-09-27
Posts: 4

Re: Pb with Lazarus IDE (dev)

Thanks for your help. Yes I forgot to mention these two packages gtk+-dev and gdk-pixbuf-dev. "Making clean all" still fails when reading etc/fpc.cfg :

Hint: Start of reading config file /etc/fpc.cfg

Error: Illegal parameter: setgccdir() {

Error: Illegal parameter: GCCSPEC=[c](gcc -v $@ 2>&1)| head -n 1| awk '{ print $4 } '[/c]

Error: Illegal parameter: if [ -z "$GCCSPEC" ] ; then

Error: Illegal parameter: GCCSPEC=[c]gcc -print-libgcc-file-name $@ 2>/dev/null[/c]

Error: Illegal parameter: fi

Error: Illegal parameter: GCCDIR=[c]dirname "$GCCSPEC"[/c]

Error: Illegal parameter: }

Error: Illegal parameter: setgccdirarch() {

Error: Illegal parameter: FPCDEFINE=$1

Error: Illegal parameter: shift

Error: Illegal parameter: setgccdir $@

Error: Illegal parameter: if [ -z "$GCCDIR" ] ; then

Error: Illegal parameter: return

Error: Illegal parameter: fi

Error: Illegal parameter: GCCDIR="#ifdef $FPCDEFINE

Fatal: In options file /etc/fpc.cfg at line 29 unexpected \var{\#ENDIFs} encountered

Fatal: Compilation aborted

Working for years with Mandriva I also tried to copy/past /usr/lib/lazarus from it into Slitaz to get a valid exe. It runs but when compiling a project I still get errors from this etc/fpc.cfg...

This said, I really enjoy Slitaz I just discovered. I would like to install it in all my (old) laptops but I need Lazarus...

Offline

#8 2012-09-28 12:02:20

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: Pb with Lazarus IDE (dev)

Personally I think you should do everything from scratch while downloading the sources from github:

http://wiki.lazarus.freepascal.org/git_mirrors

Then follow the http://wiki.lazarus.freepascal.org/Installing_Lazarus#Installing_from_source heading of "Downloading Lazarus Source Code". Just replace the subversion steps with the git ones. That way you KNOW you'll have a working and compiled version of Lazarus and FreePascal.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.015 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]