DirkS
Posts: 9964
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: fpc-compiled programs don't run..?

Fri May 10, 2013 12:45 pm

Have you tried running the program from the command line?

Gr.
Dirk.

DirkS
Posts: 9964
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: fpc-compiled programs don't run..?

Fri May 10, 2013 1:46 pm

Lazarus will start your program without showing a terminal window, so if it's a console program you'll have to make sure a terminal window is opened first.

For this to happen you have to change the Run parameters (Lazarus menu Run / Run Parameters).
I think the following should work (not tested on the Pi myself, though): activate 'Use launching application'. There should be several entries in the dropdown below it. Select e.g. the line starting with '/usr/bin/gnome-terminal' and then replace 'gnome-terminal' with 'lxterminal'.

HTH
Dirk.

User avatar
jwdietrich
Posts: 13
Joined: Wed Nov 30, 2011 11:52 am
Contact: Website

Re: fpc-compiled programs don't run..?

Sat May 11, 2013 6:06 pm

GUI programs should run directly out of the box. Did you follow the instructions at http://wiki.lazarus.freepascal.org/Laza ... spberry_Pi?

Return to “General discussion”