[Lazarus] Raspberry PI, minor glitch.

2016-01-23 Thread Donald Ziesig

Hi Anthony (and everyone else):

I ran into a minor glitch (I saw this before, but it went away with your 
latest fix).  I don't know exactly why it went from working to not 
working, but I found out what it was doing wrong.


Lazarus was working fine through multiple re-boots, running as root and 
debugging code using h2wiringPi.  The entire system hung when I went to 
do something on the Main Menu (the Raspbian one) so I had to power down 
(pull the plug) and reboot.  When it came back this time, I started 
Lazarus and it complained about not being able to access *ppcarm* 
because it couldn't find *system.ppu* and please check*fpc.cfg*.  When 
this happened before, I found *system.ppu* where it belonged and 
*fpc.cfg* hadn't changed either).  After a bit of debugging (hacking, 
really), I found that it had changed to using*fpc-2.6.4*.  I don't know 
why but *which ppcarm* showed */usr/bin/ppcarm* which was linked to 
*2.6.4* (as was*/usr/bin/fpc*).  I changed the links to point to 
*/home//Development/FreePascal/fpc/bin/ppcarm* and Lazarus 
started working correctly again.


I had uninstalled *2.6.4* using *apt-get remove,* but that doesn't seem 
to have finished the job (manual *rm -rf* killed it for good).


I don't know what caused it to change to */usr/bin/fpc* and 
*/usr/bin/ppcarm*, but now that they are linked to the Development 
version (and *2.6.4 *is totally gone) everything is working again.


Don Ziesig
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Raspberry PI, minor glitch.

2016-01-23 Thread Anthony Walter
In "Tools > Options" check that "Environment > Compiler Executable" points
to the full fpc path. Also make sure you launch Lazarus using
"lazarus.desktop" file and you're not just double clicking on the lazarus
executable file in the lazarus folder. Use "ls" in a terminal to see the
actual file names like "lazarus.desktop". Desktop files in Gnome are
somewhat equivalent to Windows shortcut files. Use "cat" to view them or
"nano" to edit them from the command line (they're ini file like).
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus