Testing Harbour on RaspBerry PI

883 views
Skip to first unread message

Bruno Luciani

unread,
Jan 20, 2013, 6:47:46 PM1/20/13
to harbour-users

john s wolter

unread,
Jan 20, 2013, 8:31:00 PM1/20/13
to harbou...@googlegroups.com
Bruno,

That website requires registration to enlarge the images for viewing.  Is there a way to view them without becoming a member?

Cheers
John S Wolter

Bruno Luciani

unread,
Jan 20, 2013, 8:47:01 PM1/20/13
to harbou...@googlegroups.com
Sory about that

I try to upload to another site

Bruno


2013/1/20 john s wolter <johns...@wolterworks.com>

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users
 
 
 

Bruno Luciani

unread,
Jan 20, 2013, 8:48:18 PM1/20/13
to harbou...@googlegroups.com
I just try , and loged out , i can enlarge images , can you try again ?

Bruno

2013/1/20 john s wolter <johns...@wolterworks.com>
Bruno,

elch

unread,
Jan 21, 2013, 5:46:34 AM1/21/13
to harbou...@googlegroups.com

Hi Bruno,


THAT are interesting news !


Please would you like to tell us more about build process:

any special switches used for this cpu ?

needed time to build harbour ?


best regards

Rolf

Bruno Luciani

unread,
Jan 21, 2013, 8:43:48 AM1/21/13
to harbou...@googlegroups.com
NO special switches , only take svn , and compile like linux

some libraries not compile because are not compatible with arm

This works ok because I am using a linux adapted for arm provided

by Raspberry foundation.

Yes is very interesting considreing the hardware low cost

Compilation takes several hours !!!! , I am using raspberry in his minimal power

to avoid procesor heating, but it can be overclocked to get more power !!!

Bruno

2013/1/21 elch <el...@unitybox.de>

--

Bruno Luciani

unread,
Jan 21, 2013, 9:54:25 AM1/21/13
to harbou...@googlegroups.com

elch

unread,
Jan 21, 2013, 10:44:42 AM1/21/13
to harbou...@googlegroups.com

Hi Bruno,


thanks very for your pictures.


You miss some development libs,

libx11-dev

libgpm-dev

libncurses5-dev

libslang2-dev


for maybe other libs look in file named 'INSTALL' in harbour directory, i.e. for freeimage etc.


then gtxwc terminal hopefully will build. Or does Raspi not use a X11-Window System, should be ??


Then try for us all to build gfx.prg in the /tests, link it with -gtxwc

Need one keypress after start to display graphics ...


best regards

Rolf

Bruno Luciani

unread,
Jan 21, 2013, 10:53:02 AM1/21/13
to harbou...@googlegroups.com
Yes probably , I only did a basic test

But I can try if it is important

Bruno

2013/1/21 elch <el...@unitybox.de>


best regards

Rolf

--

elch

unread,
Jan 21, 2013, 10:58:31 AM1/21/13
to harbou...@googlegroups.com

Hi again,


gtxwc is -the- terminal for Linux, without i would be unhappy.

If that works, i immedate order me a Raspi ;-)


best regards

Rolf

Bruno Luciani

unread,
Jan 21, 2013, 11:03:55 AM1/21/13
to harbou...@googlegroups.com
yes I know

I am trying now , I update the situation  a few hours from now

the compilation take about 4 hours

Bruno

2013/1/21 elch <el...@unitybox.de>


best regards

Rolf

--

elch

unread,
Jan 21, 2013, 11:42:22 AM1/21/13
to harbou...@googlegroups.com

Hi Bruno,


on my older 3Ghz Xeon with all together 4 cores a fresh compile with all extra libs is done in about 3 minutes.


Means 3 * 4 = 12 minutes for one core and 3000 /700 ~ 51 minutes.

Plus speed difference for SD card versus my ramdrive ;-)

Your Raspi is running at 700Mhz, right ?

May i ask what SD card you are using ?


So this build time is quite good for my estimation of Raspi's computing power - and if he's mighty enough for what i have in mind he should do for me.

Looks not so bad ...


THANKS a lot for your testing

Rolf

Bruno Luciani

unread,
Jan 21, 2013, 11:50:32 AM1/21/13
to harbou...@googlegroups.com
It is a Kingston 4 GB HC

Bruno

2013/1/21 elch <el...@unitybox.de>

Rolf

--

Bruno Luciani

unread,
Jan 21, 2013, 11:53:08 AM1/21/13
to harbou...@googlegroups.com
My Raspi is a Model B 512 Ram

http://www.raspberrypi.org/faqs

Bruno

2013/1/21 Bruno Luciani <bruno....@gmail.com>

Bruno Luciani

unread,
Jan 21, 2013, 2:38:42 PM1/21/13
to harbou...@googlegroups.com
Well , take 3.5 hours aprox

gfx compiles ok

But when run , give an error about can't load fixed font

what do you think that I need to install ?

Bruno

2013/1/21 elch <el...@unitybox.de>

Rolf

--

elch

unread,
Jan 21, 2013, 2:53:18 PM1/21/13
to harbou...@googlegroups.com

Hi Bruno,


there is not font named in gfx.prg - we can try to do so with adding a line for this, after first IF-branch, at ca. line 20:


hb_gtInfo( HB_GTI_FONTNAME , "Terminal")



if not works we need a search what font's are installed, uhm i am just researching how to do that ...


--

hbmk2 gfx.prg -gtxwc


best regards

Rolf

Bruno Luciani

unread,
Jan 21, 2013, 3:00:40 PM1/21/13
to harbou...@googlegroups.com
I think is an OS question , in linux fixed fonts are needed for console

and may be is no installed , but i not remember the name to try install it

Bruno

2013/1/21 elch <el...@unitybox.de>

Rolf

--

elch

unread,
Jan 21, 2013, 3:11:56 PM1/21/13
to harbou...@googlegroups.com

or:

try to install package xfonts-terminus, and then


hb_gtInfo( HB_GTI_FONTNAME , "Terminus")


elch

unread,
Jan 21, 2013, 3:29:57 PM1/21/13
to harbou...@googlegroups.com
Hi again,

i've installed so many fonts here, allubuntu ;-)

think it should be 'xfonts-base' packet, and/or 'xfonts-100dpi-transcoded'


best regards

Rolf

Bruno Luciani

unread,
Jan 21, 2013, 4:01:51 PM1/21/13
to harbou...@googlegroups.com
Works ok

Then I upload the images

a reboot was needed

Bruno

2013/1/21 elch <el...@unitybox.de>

--

Bruno Luciani

unread,
Jan 21, 2013, 5:02:12 PM1/21/13
to harbou...@googlegroups.com

elch

unread,
Jan 21, 2013, 5:57:39 PM1/21/13
to harbou...@googlegroups.com

FULL STRIKE, that is great picture - so we have a fully running Harbour on Raspi, or some seem to say ArPi - SO FINE !


Will sure order one, and check what this small thing is capable to compute.


There exists a nice copper ! heatsink, you sure know - for pushing it to 1Ghz.

Then with fastest available SD Card, i think of an SD10G2/8GB Kingston Ultimate, this seem reported to work ..


very interesting news


THANKS, Bruno

Bruno Luciani

unread,
Jan 21, 2013, 6:17:59 PM1/21/13
to harbou...@googlegroups.com
You are welcome !!

I just put it on 900 mhz ( medium power ) using raspi-config

and temperature is not to high

Speed increased

Bruno

2013/1/21 elch <el...@unitybox.de>

--

Luigi Grella

unread,
Jan 21, 2013, 8:37:45 PM1/21/13
to harbou...@googlegroups.com
A couple of notes here.
Now Raspberry Pi comes with a junior version as well.  Make sure you by the version with 512MG memory and two USB slots, etc.
Compatible  Linux comes in 4 versions.
Recommended: Rasbian - 16th December 2012
Check out

http://learn.adafruit.com/adafruit-raspberry-pi-educational-linux-distro

for information and some tutorials
Check out

http://zenit.senecac.on.ca/wiki/index.php/Raspberry_Pi_Fedora_Remix

for the Fedora version about two months old.
There is a Bodhi version

http://wiki.bodhilinux.com/doku.php?id=installation_instructions

For those interested in Audio/video applications checkout

http://wiki.xbmc.org/index.php?title=OpenELEC

There is a very active website and forum at Raspberrypi.org



Bruno Luciani

unread,
Jan 21, 2013, 8:52:07 PM1/21/13
to harbou...@googlegroups.com
My raspberry is Model B 512 m Ram

Bruno

2013/1/21 Luigi Grella <grell...@gmail.com>

Luigi Grella

unread,
Jan 22, 2013, 10:31:46 AM1/22/13
to harbou...@googlegroups.com
According to Raspberry Pi organization's own recommendation, overclocking is acceptable and does NOT void the warranty.  You get the impression that they actually recommend it.
The recommendation is to overclock in stages and there are 4 stages predefined and you just do it with a click.  I have a Pi which has been overclocked to the fullest extent and since it is half open to air in the room there is hardly any heat to worry about.  Everybody should decide for themselves how much overclocking they want to do.  The usual caution applies..... You take the risk for yourself.

https://www.youtube.com/watch?v=SBsDjNWhukk
gives you part 1 of a video.  There is a part 2, but right now I can't find it.

On another aspect of it, I forgot to mention that there was the original Pi with 256 mg memory,  This changed to 512 MB memory on board in September/October, 2012.  In January, 2013, they introduced a slightly reduced version.  It is only slightly lower in  price and I was trying to alert everybody to avoid this latest unless you want to use it with C language and a simple  I/O application, or perhaps for classroom teaching.


Bruno Luciani

unread,
Jan 22, 2013, 4:25:32 PM1/22/13
to harbou...@googlegroups.com
Yes , as you can see in my last email , i put in medium usiing the same tool that your video
shows

And not heat much more than previously state

Thanks Luigi

Bruno

2013/1/22 Luigi Grella <grell...@gmail.com>

elch

unread,
Feb 21, 2013, 8:20:45 PM2/21/13
to harbou...@googlegroups.com
Hi Bruno,

your Harbour Raspberry (and you) all fine ?


 i put in medium usiing the same tool that your video shows

I sooner got two model B [512MB], Rev 2.0, but made in China. Yesterday

arrived my third, this now made in Uk.


Running Harbour on ArPi's absolute stable for many days with 1100MHz, and

Ram at 550!MHz (set 'over_voltage_sdram' just to 1 == not worth to mention

0.025V more). Runs 100% reliable and i have not the feeling he will break just

after the quarter mile. [used e.g. memtester to be sure i did the safe bet]

I also applied a copper heat sink. Even with most possible stress ram test it

won't overreach 50°C.


Some are also reporting 1150, but then i got occasional problems. Same case

with the china ones for every ! try to change gpu core freq, then some fetched

packages over network got ill - and much more bad: destroyed file system

on SDhc. The UK version in opposite accepts doubled, 500MHz for gpu_core, and

seem to run well.


SDhc seem a sensitive part of ArPi: my Kingston class10 won't boot, but have

it seen two times !? - my class4 Sandisk works ever and also a noname

(Platinum) class6 SDhc. Will try more models.


Here i found a nice link with these OC settings:

http://elinux.org/RPi_config.txt#Overclocking_options

Most interesting is setting: force_turbo=0, and then set various xyz_min to

slightly risen standard values. This lead to dynamic kernel controlled

overclocking only when needed, and fall back in idle mode. Worked like a charm

a week ago, but with newest upgrade i lost this feature ? needs more research

from me ..


###

BUT now to real life with Harbour:

a full fresh compile of Harbour with nearly all contribs (left gtalleg and

pgsql) now lasts, fasten your seat belt:

02:10

Incremental run, just done for hbmisc, 2 minutes. These times are with

standard gpu speed, the UK one shell beat the 2 hour mark, not measured yet.

That is much more than about 3 minutes on my big QC - but very impressive

for this size and power need.

Most important: my ready, mighty harbour app later runs smooth, really useable.


A 'wonderful' bug this freeimage had left for me, in relation with tif-

graphics -: immediate Harbour abort when try to load tif picture.

They do some universal sanity checks for 64bit vars (on our ArPi, hihi, that

would be a thing, a 64bit ARM this size :). Quick-and-dirty solution: these

few lines now rest as comments in peace.


Further i just worked on a wrapper-lib for Harbour for the wiringPi lib. I

sure want to use the gpio capabilities with Harbour, a superior feature of the

machine. There are alternatives, f.e. a shell call of his executable, but i

want it on this way.

[ https://projects.drogon.net/raspberry-pi/wiringpi/functions/ ]


---

Tip: think about a 98 or more MB tempfs (ramdrive) mounted at /tmp. It will

grow dynamic into RAM, not using this amount fixed at start. This will saves

some writes to SDHC ...


I attach a screenshot (downsized from 1600x1200):

my app just fullwindow display image, with opend second window with browse for choice - top right running gkrellm incl. temperature and moontime display - and moving MidnightCommander in translucent window ...

This is xfce4 - running with 'official' wheezy image, i use.


If you ever hear someone ported Trinity desktop (KDE fork at best old V 3.5) to

Raspberry, let me know. Actually i'm quite really pleased with this xfce4.


Regards

Rolf

raspberry_xfce.jpg

Bruno Luciani

unread,
Feb 22, 2013, 6:34:27 AM2/22/13
to harbou...@googlegroups.com
Very interesting your tests elch !!!

LEt me know if you implement this library on harbour

Thanks for share your tests !!!

Bruno

2013/2/21 elch <el...@unitybox.de>

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users
 
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

elch

unread,
Feb 22, 2013, 8:42:12 AM2/22/13
to harbou...@googlegroups.com

short again, Bruno


forget to mention:

arm_freq=1100

with

over_voltage=6

more i'm not willing to put on.


and only try:

core_freq=xxx

.not. this gpu_freq=


--

And better make a full backup (dd_rescue, tar), before checking if network runs ok.

That is not compareable to a 'normal' system break, where only journal must be re-applied -- FS is really ill afterwards, can be just thrown away.


Mentioned gpio wrapper lib is nearly ready, what i want from it and a little more - but fully untested. Still waiting for my electronics master to build me:

4 relay + 4 input, all fine secured behind a opto-coupler.

When i checked it, i can sent lib or put it here.

Meanwhile you can easy check the link, his lib will at least be needed - there will also a small executable build with his one for 'manual' gpio play.


best regards

Rolf

Francesco Perillo

unread,
Feb 22, 2013, 9:01:16 AM2/22/13
to harbou...@googlegroups.com
I have 2 PI still not used, never switched on.... I hope to do something with them really early.  probably a media player and to put on tv, in an easy way, some programs my family needs.


elch

unread,
Feb 22, 2013, 10:55:48 AM2/22/13
to harbou...@googlegroups.com

Hi,


as media-SERVER, maybe a good task for him - but player !?

With great respect to this fine machine, but i had no success in this kind.


First there is NO 'original' flash, only this 'gnash' for browsers, i beg you.


As browser is designated Midori ;-), i put an iceweasel (older FF) on it.

All together a brilliant example of how bloated these browsers all are.

[ And how fast a Harbour app can be :-) ]


Also i intense tryed all-can-do VLC: it starts playing skipping, then video freezes - progress bar still moving.


Perhaps i made all together all wrong, but my first result is very negative for video playing.

An ultra cheap, ultra powersaving NAS -- an RC Helicopter controller -- or many other tasks ...


regards

Rolf

elch

unread,
Feb 24, 2013, 4:21:52 PM2/24/13
to harbou...@googlegroups.com

Hi,


> Perhaps i made all together all wrong, ...

Not all, but VLC makes here a bad job, omxplayer can do a bit.

But Video is forbidden for devels' ;-)


So correct to fperillo:

you are right, there seem just actual ready some disk-images to make it a time consuming media center even controlled with TV remote, but i won't need that ...


Raspberry Harbour developers want to hear music at work, perhaps with me recommended audacious ? - and sure, before that something to compile ;-)

To correct the left bug to -also- play mp3, install

libpulse-dev, libasound2-dev, audacious and mpg123

[if not already known: synaptic is a convenient gui package manager, also bit slow here]

and follow the good last description here at bottom:

http://www.raspberrypi.org/phpBB3/viewtopic.php?f=33&t=10656

To save cpu time switch to winamp classic surface and here can turn off analyser display. After that only about 15% cpu is needed, instead of about 40% before.


Regards

Rolf

Francesco Perillo

unread,
Feb 24, 2013, 5:17:49 PM2/24/13
to harbou...@googlegroups.com

Hi, I don't have with me the links but yes, there are several images.

Actually I have at home a linux pc with some dvb cards (Sat and Terrestrial) and using VDR. I have several analog standard definition boxes (old hauppauge mvp) that I use in other rooms as streaming clients.

Now with Rasperry I may have cheap HD boxes for HD streaming.

To have best results you must buy a mpeg2 license (less than 3 euro) to have accelerated mpeg2 playback. mpeg4 acceleration is included. Audio is best to pass it to the ampli, since there may be no cpu power to transcode.


I also want to use the other Raspberry as an alarm "cpu", but I need to but i/o pins and connect to actual alarm cpu... and the library someone was talking about in this thread... :-)

Clippero

unread,
Apr 16, 2015, 7:06:31 PM4/16/15
to harbou...@googlegroups.com
[Eng] by Google

I want to try to compile a simple "hello world" with harbor in a CubieBoard having an ARM processor.

Any hints?

---

[Esp]

Quiero probar compilar un simple "hola mundo" con harbour en una CubieBoard que tiene un procesador ARM.

Alguna pista ?
Reply all
Reply to author
Forward
0 new messages