FiveLinux on Raspberry PI - Dead or alive ?

User avatar
johnshay
Posts: 10
Joined: Mon Mar 10, 2008 11:46 am
Location: Manchester,UK

FiveLinux on Raspberry PI - Dead or alive ?

Post by johnshay »

Did anyone get Fivelinux to work on the Raspberry PI? I see Antonio's posting and screen shots but the main link to it is now dead. I managed to download Harbour (that link still works) But cant seem to get Fivelinux to compile. I just some an error from the linker complaining about some module being compiled using VFP registers? Something to do with floating point support. Does anyone have a copy of Fivelinux thats been tweeked for the PI? or was it just not so good? maybe to slow...
Anyone ?
George
Posts: 710
Joined: Tue Oct 18, 2005 6:49 pm

Re: FiveLinux on Raspberry PI - Dead or alive ?

Post by George »

With the new RASPI-2 it's alive!
A few days ago I received the Raspberry Pi 2 and today I was able to compile, by following Antonio instruction found in this forum, the Harbour and Fivelinux libraries.
I think, because RASPI-2 is much faster than RASPI-I we could use the RASPI-2 to develop good software using Fivelinux.

Image

Regards,

George
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: FiveLinux on Raspberry PI - Dead or alive ?

Post by Antonio Linares »

very good :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
George
Posts: 710
Joined: Tue Oct 18, 2005 6:49 pm

Re: FiveLinux on Raspberry PI - Dead or alive ?

Post by George »

Hi Antonio,
Thanks for allow us to develop, using fivelinux, in Raspberry Pi ARM architecture.

Almost every PRG example is working fine. But the dbf01.prg can't compile and generate the following message:
compiling...
Harbour 3.2.0dev (r1601282333)
Copyright (c) 1999-2016, http://harbour-project.org/
Compiling 'dbf01.prg'...
Lines 1219, Functions/Procedures 1
Generating C source output to 'dbf01.c'... Done.
compiling C module...
linking...
./../lib/libfive.a(database.o):(.data+0xfe8): undefined reference to `HB_FUN_HSETCASEMATCH'
./../lib/libfive.a(database.o):(.data+0x1008): undefined reference to `HB_FUN_HSET'
./../lib/libfive.a(database.o):(.data+0x1028): undefined reference to `HB_FUN_HEVAL'
./../lib/libfive.a(valtostr.o):(.data+0x1d8): undefined reference to `HB_FUN_HOUR'
./../lib/libfive.a(valtostr.o):(.data+0x1e8): undefined reference to `HB_FUN_MINUTE'
./../lib/libfive.a(valtostr.o):(.data+0x368): undefined reference to `HB_FUN_TTOS'
./../lib/libfive.a(valtostr.o):(.data+0x388): undefined reference to `HB_FUN_STOT'
collect2: error: ld returned 1 exit status
done!
./build1.sh: line 23: ./dbf01: No such file or directory
root@raspberrypi:~/fivelinux/samples#
Any suggestion how to fix this issue?

Regards,

George
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: FiveLinux on Raspberry PI - Dead or alive ?

Post by Antonio Linares »

George,

Please link xhb.lib too
regards, saludos

Antonio Linares
www.fivetechsoft.com
George
Posts: 710
Joined: Tue Oct 18, 2005 6:49 pm

Re: FiveLinux on Raspberry PI - Dead or alive ?

Post by George »

Thanks Antonio. DBF01.PRG is working :)

Only a few samples are no linking:
FiveDBU.prg, FiveForm and VMH reporting 'Undefined Reference to Symbol PCRE_FREE"
Dozip.prg 'Undefined Reference to Symbol InflateInit2_"
Install.prg 'Undefined Reference to Symbol HB_FUN_STRTOKEN"
TestClip.prg 'Undefined Reference to Symbol HB_FUN_TCLIPBOARD"
TestGroup.prg "Message not found TGROUP:SHADOW"

Regards,

George
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: FiveLinux on Raspberry PI - Dead or alive ?

Post by Antonio Linares »

George,

> FiveDBU.prg, FiveForm and VMH reporting 'Undefined Reference to Symbol PCRE_FREE"

Please link hbcplr.lib from Harbour
regards, saludos

Antonio Linares
www.fivetechsoft.com
George
Posts: 710
Joined: Tue Oct 18, 2005 6:49 pm

Re: FiveLinux on Raspberry PI - Dead or alive ?

Post by George »

Antonio,
The issue maybe is not related to link hbcplr.lib as I have the link to hbcplr in my build.sh:
# ./build.sh
clear

if [ $# = 0 ]; then
echo syntax: ./build.sh file [options...]
exit
fi

echo compiling...
./../../harbour/bin/linux/gcc/harbour $1 -n -I./../include -I./../../harbour/include $2

echo compiling C module...
gcc $1.c -c -I./../include -I./../../harbour/include `pkg-config --cflags gtk+-2.0`

echo linking...
gcc $1.o -o$1 -L./../lib -L./../../harbour/lib/linux/gcc -Wl,--start-group -lfive -lfivec -lxhb -lhbcommon -lhbvm -lhbrtl -lhbrdd -lhbmacro -lhblang -lhbcpage -lhbpp -lhbcplr -lrddntx -lrddcdx -lrddfpt -lhbsix -lhbusrrdd -lhbct -lgttrm -lhbdebug -lm -lgpm -lncurses `pkg-config --libs gtk+-2.0` `pkg-config --libs libglade-2.0` -Wl,--end-group

rm $1.c
rm $1.o

echo done!
./$1
This is the message:
compiling...
Harbour 3.2.0dev (r1601282333)
Copyright (c) 1999-2016, http://harbour-project.org/
Compiling 'fiveform.prg'...
Lines 1773, Functions/Procedures 26
Generating C source output to 'fiveform.c'... Done.
compiling C module...
linking...
/usr/bin/ld: ./../../harbour/lib/linux/gcc/libhbrtl.a(hbregex.o): undefined reference to symbol 'pcre_free'
//lib/arm-linux-gnueabihf/libpcre.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
done!
./build.sh: line 23: ./fiveform: No such file or directory
root@RASPI-2:/home/martin/fivelinux/samples#
Regards,

George
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: FiveLinux on Raspberry PI - Dead or alive ?

Post by Antonio Linares »

George,

Please link Harbour hbpcre.lib too
regards, saludos

Antonio Linares
www.fivetechsoft.com
George
Posts: 710
Joined: Tue Oct 18, 2005 6:49 pm

Re: FiveLinux on Raspberry PI - Dead or alive ?

Post by George »

Perfect! FiveDBU and Fiveform are linking
No more messages: undefined reference to symbol 'pcre_free'.

Just these examples are not compiling:
Dozip.prg 'Undefined Reference to Symbol InflateInit2_"
Install.prg 'Undefined Reference to Symbol HB_FUN_STRTOKEN"
TestClip.prg 'Undefined Reference to Symbol HB_FUN_TCLIPBOARD"
TestGroup.prg "Message not found TGROUP:SHADOW"
Thanks Antonio for your support,

George
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: FiveLinux on Raspberry PI - Dead or alive ?

Post by Antonio Linares »

George,

Download and use the most recent FiveLinux from here:

https://bitbucket.org/fivetech/fivelinux/downloads

I have not tested it on Raspberry Pi for a long time, but it should work fine
regards, saludos

Antonio Linares
www.fivetechsoft.com
George
Posts: 710
Joined: Tue Oct 18, 2005 6:49 pm

Re: FiveLinux on Raspberry PI - Dead or alive ?

Post by George »

That was the download that I did for the installation of FiveLinux
Almost all examples are linking.

By studing the examples I think we can use Fivelinux to develop database applications, as we do with Fivewin, in the Raspberry Pi -2.

Regards,

George
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: FiveLinux on Raspberry PI - Dead or alive ?

Post by Antonio Linares »

George,
By studing the examples I think we can use Fivelinux to develop database applications, as we do with Fivewin, in the Raspberry Pi -2
Sure you can do it :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Rolaci
Posts: 20
Joined: Fri Dec 16, 2011 4:17 pm

Re: FiveLinux on Raspberry PI - Dead or alive ?

Post by Rolaci »

Hi!, just a question: How do you get hbpcre.lib since harbour does no create it for linux??, that lib is skipped when we build harbour.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: FiveLinux on Raspberry PI - Dead or alive ?

Post by Antonio Linares »

What message or error the Harbour makefile report for it ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply