본문 바로가기

언어/라즈베리파이

How to build app for Raspberry Pi from Windows 7

How to build app for Raspberry Pi from Windows 7 - Index (pilotlogic.com)

 

How to build app for Raspberry Pi from Windows 7

Hello all, Greetings. I am new to CodeTyphon, as well as Raspberry Pi. I have installed CodeTyphon version 4.5 on Windows 7. I have built a small test...

www.pilotlogic.com

Thanks for your reply. I understand that it's best to build the application on the platform itself. But, I wanted to crossbuild for testing or whatever else I don't know clearly, may be on the Raspberry pi it will compile slower than Windows 7, however.... Anyway, I was successful to achieve this. I shall describe bellow what I did (probably this may help someone.), although I don't know whether all the steps are correct/necessary or not. But it worked. And the post here helped - www.pilotlogic.com/sitejoom/index.php/fo...ian-app?limitstart=0 , I have downloaded the libraries from the link mentioned in the 1st post - docs.google.com/folder/d/0B-v0GC8WoWuad0...FtZG43T1U/edit?pli=1 .

Steps:
======
Download CodeTyphon Studio Version 4.5, Revision 004500 (for win7 32bit)

Run install.bat

Select "Install CodeTyphon"

Select "Remove and Build ALL"

This will install CodeTyphon Studio.

Run "C:\codetyphon\binCenter\i386-win32-win32\CodeTyphon.exe" which has a shortcut icon on desktop named CodeTyphon64

Click menu "CrossBuild"->"Toolchains Builder". For "FPC Target CPU-OS", select "arm-linux". Click "Build" button. See Image-1 bellow:



After the above building process finishes, click menu "CrossBuild"->"FreePascal32bits"->"FPC32 build cross element arm-linux". See Image-2 bellow:


Click menu "Typhon"->"Run Typhon32"

After the IDE opens, click menu "Project"->"Project Options".

Select "Compiler Options"->"Paths". For "Libraries" box select the folder that contains Raspberry Pi libraries (which can be downloaded from the link given above... 1st post of the another topic). See Image-3 bellow:


Select "Config and Target". For "Target OS" - select "Linux", for "Target CPU family" - select "arm". See Image-4 bellow:



Select "Debugging", Uncheck "Generate debugging info...". See Image-5 bellow:



Click OK, and write then build your project 

. Thank you all.

Best regards.