FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveLinux / FiveDroid (Android) FiveLinux on Raspberry PI - Dead or alive ?
Posts: 10
Joined: Mon Mar 10, 2008 11:46 AM
FiveLinux on Raspberry PI - Dead or alive ?
Posted: Thu Mar 13, 2014 01:05 PM

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 ?

Posts: 729
Joined: Tue Oct 18, 2005 06:49 PM
Re: FiveLinux on Raspberry PI - Dead or alive ?
Posted: Sat Jan 30, 2016 03:22 AM
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.



Regards,

George
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveLinux on Raspberry PI - Dead or alive ?
Posted: Sat Jan 30, 2016 08:48 AM

very good :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 729
Joined: Tue Oct 18, 2005 06:49 PM
Re: FiveLinux on Raspberry PI - Dead or alive ?
Posted: Sat Jan 30, 2016 11:31 PM
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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveLinux on Raspberry PI - Dead or alive ?
Posted: Sun Jan 31, 2016 08:52 AM

George,

Please link xhb.lib too

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 729
Joined: Tue Oct 18, 2005 06:49 PM
Re: FiveLinux on Raspberry PI - Dead or alive ?
Posted: Tue Feb 02, 2016 05:22 AM

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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveLinux on Raspberry PI - Dead or alive ?
Posted: Tue Feb 02, 2016 08:17 AM

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
Posts: 729
Joined: Tue Oct 18, 2005 06:49 PM
Re: FiveLinux on Raspberry PI - Dead or alive ?
Posted: Tue Feb 02, 2016 04:26 PM
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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveLinux on Raspberry PI - Dead or alive ?
Posted: Tue Feb 02, 2016 06:39 PM

George,

Please link Harbour hbpcre.lib too

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 729
Joined: Tue Oct 18, 2005 06:49 PM
Re: FiveLinux on Raspberry PI - Dead or alive ?
Posted: Tue Feb 02, 2016 08:41 PM
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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveLinux on Raspberry PI - Dead or alive ?
Posted: Tue Feb 02, 2016 09:02 PM
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
Posts: 729
Joined: Tue Oct 18, 2005 06:49 PM
Re: FiveLinux on Raspberry PI - Dead or alive ?
Posted: Tue Feb 02, 2016 09:38 PM

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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveLinux on Raspberry PI - Dead or alive ?
Posted: Tue Feb 02, 2016 09:56 PM
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
Posts: 20
Joined: Fri Dec 16, 2011 04:17 PM
Re: FiveLinux on Raspberry PI - Dead or alive ?
Posted: Mon Mar 20, 2017 02:49 PM

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.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FiveLinux on Raspberry PI - Dead or alive ?
Posted: Mon Mar 20, 2017 10:03 PM

What message or error the Harbour makefile report for it ?

regards, saludos

Antonio Linares
www.fivetechsoft.com