Page 1 of 2

FiveLinux on Raspberry PI - Dead or alive ?

Posted: Thu Mar 13, 2014 1:05 pm
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 ?

Re: FiveLinux on Raspberry PI - Dead or alive ?

Posted: Sat Jan 30, 2016 3:22 am
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

Re: FiveLinux on Raspberry PI - Dead or alive ?

Posted: Sat Jan 30, 2016 8:48 am
by Antonio Linares
very good :-)

Re: FiveLinux on Raspberry PI - Dead or alive ?

Posted: Sat Jan 30, 2016 11:31 pm
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

Re: FiveLinux on Raspberry PI - Dead or alive ?

Posted: Sun Jan 31, 2016 8:52 am
by Antonio Linares
George,

Please link xhb.lib too

Re: FiveLinux on Raspberry PI - Dead or alive ?

Posted: Tue Feb 02, 2016 5:22 am
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

Re: FiveLinux on Raspberry PI - Dead or alive ?

Posted: Tue Feb 02, 2016 8:17 am
by Antonio Linares
George,

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

Please link hbcplr.lib from Harbour

Re: FiveLinux on Raspberry PI - Dead or alive ?

Posted: Tue Feb 02, 2016 4:26 pm
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

Re: FiveLinux on Raspberry PI - Dead or alive ?

Posted: Tue Feb 02, 2016 6:39 pm
by Antonio Linares
George,

Please link Harbour hbpcre.lib too

Re: FiveLinux on Raspberry PI - Dead or alive ?

Posted: Tue Feb 02, 2016 8:41 pm
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

Re: FiveLinux on Raspberry PI - Dead or alive ?

Posted: Tue Feb 02, 2016 9:02 pm
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

Re: FiveLinux on Raspberry PI - Dead or alive ?

Posted: Tue Feb 02, 2016 9:38 pm
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

Re: FiveLinux on Raspberry PI - Dead or alive ?

Posted: Tue Feb 02, 2016 9:56 pm
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 :-)

Re: FiveLinux on Raspberry PI - Dead or alive ?

Posted: Mon Mar 20, 2017 2:49 pm
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.

Re: FiveLinux on Raspberry PI - Dead or alive ?

Posted: Mon Mar 20, 2017 10:03 pm
by Antonio Linares
What message or error the Harbour makefile report for it ?