Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2012-08

Compiling on Raspberry Pi

4 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Koenraad Lelong

Hi,

I recently recieved my Raspberry PI. That's an arm-linux device. I downloaded the easyfpgui-package from
http://www.turbocontrol.com/easyfpgui.htm.
I can't compile the dbgterm, I get errors on baudrates that seem undefined. In the sources these baudrates are enclosed in IFDEF's. How can I know what constants are defined, is there an easy way ? Of course I could write a pascal-program with just writeln's enclosed in an IFDEF of each possible constant. But where does fpc get the values of these constants from ?

The rest of the apps compile fine although I had no possibility to test them since I don't yet have a suitable video-cable.

TIA,

Koenraad Lelong.

Graeme Geldenhuys
to Koenraad Lelong

Hi,

Koenraad Lelong wrote
The rest of the apps compile fine although I had no possibility to test them since I don't yet have a suitable video-cable.

I had to delay my Raspberry Pi order until I moved to the UK. I can't wait to receive mine now. :-D

You mention you compiled all other apps fine. Does that mean including the fpGUI apps? Is so, brilliant - all without me having to do anything in fpGUI. :)

As for your problem about compiler defines. I'm not sure, but maybe you could take a look at Lazarus code (if you have Lazarus available). Lazarus has a dialog that shows active compiler defines, but I don't know if they somehow query FPC, or if it is just a bunch of hard-coded compiler defines. Lets hope its not the latter. Anyway to get to that dialog in Lazarus you do: Right click in editor window -> Source -> Unit Information -> Show Codetools Values.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net
Mattias Gaertner
to Graeme Geldenhuys

Graeme Geldenhuys hat am 7. August 2012 um 16:45
geschrieben:> Hi,

Show quoted text 21 lines
On 7 August 2012 11:54, Koenraad Lelong wrote: > The rest of the apps compile fine although I had no possibility to test them > since I don't yet have a suitable video-cable. I had to delay my Raspberry Pi order until I moved to the UK. I can't wait to receive mine now. :-D You mention you compiled all other apps fine. Does that mean including the fpGUI apps? Is so, brilliant - all without me having to do anything in fpGUI. :) As for your problem about compiler defines. I'm not sure, but maybe you could take a look at Lazarus code (if you have Lazarus available). Lazarus has a dialog that shows active compiler defines, but I don't know if they somehow query FPC, or if it is just a bunch of hard-coded compiler defines. Lets hope its not the latter. Anyway to get to that dialog in Lazarus you do: Right click in editor window -> Source -> Unit Information -> Show Codetools Values.

It's a mix.
Lazarus queries fpc for the standard defines and then adds/removes defines depending on the compiler options.

Mattias

Paul Breneman
to Koenraad Lelong: I recently recieved my Raspberry PI. That's an arm-linux device. I downloaded the…

Hi Koenraad,

Show quoted text 12 lines
I recently recieved my Raspberry PI. That's an arm-linux device. I downloaded the easyfpgui-package from http://www.turbocontrol.com/easyfpgui.htm. I can't compile the dbgterm, I get errors on baudrates that seem undefined. In the sources these baudrates are enclosed in IFDEF's. How can I know what constants are defined, is there an easy way ? Of course I could write a pascal-program with just writeln's enclosed in an IFDEF of each possible constant. But where does fpc get the values of these constants from ? The rest of the apps compile fine although I had no possibility to test them since I don't yet have a suitable video-cable.

Someone has already reported: "At least the helloworld and memotest seem to compile and run OK."
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=66&t=11622&p=127349#p127349

You might want to copy the two files in the SynaSerFromSynapse40 folder to the root folder and remove "synafpc" from the interface uses list in both units. That might get things to compile for you.

I'll have to use QEmu and try compiling DbgTerm as that is how I tested things as I don't have a Raspberry Pi (yet).

Please report back here if/when you get further. Thanks!

Paul