Compiling in Linux for running on raspberry PI lazarus / 3-General ---------------------------------------------------------------------- macaruchi · 2013-08-02 21:40 Hi! I am developing an app to run on my Raspberry PI with Raspbian. I am use Debian in my dektop and my app is ready but when I compile this, copy to my Raspebrry doesnt works. I mean it executes but nothins happens. I am newbie with Raspberry PI and I wanna know if there is any issue with this or the ugly solution, install Lazarus on PI and compile. TIA Edwin Jaws ---------------------------------------------------------------------- Leledumbo · 2013-08-02 22:30 Raspberry is an ARM device, your desktop I believe x86 or its family. Of course the executable won't work. You have to either build the executable in Raspbian itself or cross compile from desktop Debian. ---------------------------------------------------------------------- chrnobel · 2013-08-05 21:49 As Leledumbo says, you need to crosscompile or built on the Pi itself. It is a little bit tricky to install the most recent version of Lazarus on the Pi (albeit if you can do with an older version, you can use the one that comes with the distro) as there are some problems with recompiling the IDE on the RPi, because it simply requires to much memory, but I have found a way following this guide: http://www.michellcomputing.co.uk/blog/2012/11/lazarus-on-the- raspberry-pi/ I reduced the size of GPU to 32M, and increased the swap file to 500M (running raspi-config). Then it is possible to build the IDE from the console, before starting X - trying under X uses to much memory. ---------------------------------------------------------------------- macaruchi · 2013-08-06 21:51 Hi! chrnobel, I used that guide to install FPC 2.7.1 and lazarus 1.1 and the tricks that you said about memory and swap memory and everything worked fine. Lazarus now is working fine. My problem is when I tried to install zeosdbo to my lazarus I did that you said me without X ./lazbuild --build-ide=~/dir/zeos/package/lazarus/zcomponent.lpk  I did this without X and 500mb of swap space but I get this error: TExternalToolList.Run :Error: Illegal parameter:/home/pi/pascal/lazaru s/zeos703/packages/lazarus/zcomponent.lpk ERROR:tool reported error Any cluees ? ---------------------------------------------------------------------- macaruchi · 2013-08-07 15:35 Chrnobel, what version of ZeosDBO you installed and what version of Lazarus ? Thks ---------------------------------------------------------------------- BigChimp · 2013-08-07 15:59 Quote from: macaruchi on August 06, 2013, 11:51:44 pm./lazbuild --build-ide=~/dir/zeos/package/lazarus/zcomponent.lpk  This doesn't sound right - it needs a space like Code: [Select]./lazbuild --build-ide= ~/dir/zeos/package/lazarus/zcomponent.lpk  See http://wiki.lazarus.freepascal.org/lazbuild