Lazarus
Home
Forum
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Installation
»
PDAs and Smartphones
»
How to config lazarus for arm processors(Neofreerunner- openmoko)?
Downloads
Daily Snapshots
FAQ
Wiki
Bugtracker
IRC channel
Developer Blog
Follow us on Twitter
Mailing List
Free pascal
Other languages
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
About donations (wiki)
Bookstore
Lazarus, the complete guide
Search
Advanced search
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to config lazarus for arm processors(Neofreerunner- openmoko)? (Read 3629 times)
Amir61
New member
Posts: 11
How to config lazarus for arm processors(Neofreerunner- openmoko)?
«
on:
August 21, 2009, 05:49:03 am »
Hi,
I have a newfreerunner smartphone and I want to try to develop some application for it. I have searched throught fpc-pascal mailing list and this forum but still I can't figure out how to make it work. I am using lazarus under Linux.
In fact, I couldn't find any rpm for the arm cross compiler. Although, I tried to install fpc-2.2.2.arm-linux.tar based on
http://wiki.lazarus.freepascal.org/Setup_Cross_Compile_For_ARM
(which is out of date-- the links in that page do not work anymore). I created an empty project and set the compiler options/code/Target Platform appropriately. When I tried to compile the project, Lazarus tries to run the following command:
[TCompiler.Compile] CmdLine="/usr/bin/fpc -MObjFPC -Sgi -O1 -Parm -gl -WG -vewnhi -l -Fi/ -Fu/usr/lib/lazarus/lcl/units/arm-linux/ -Fu/usr/lib/lazarus/lcl/units/arm-linux/gtk/ -Fu/usr/lib/lazarus/packager/units/arm-linux/ -Fu. -dLCL -dLCLgtk /tmp/project1.lpr"
and I get the following error:
Error: ppcarm can't be executed, error message: Failed to execute "ppcarm", error code: 127
When I try to run the ppcarm directly from terminal, I get "bash: /usr/bin/ppcarm: cannot execute binary file" error.
«
Last Edit: August 21, 2009, 08:05:49 pm by Amir61
»
Logged
BlueIcaro
Sr. Member
Posts: 387
Re: How to config lazarus for Neofreerunner (openmoko)?
«
Reply #1 on:
August 21, 2009, 09:37:22 am »
Did you installed before a copy of lazarus?. You must install lazarus first, the version that fits for your system (linux, windows, macos), and then install cross-compiler package.
/BlueIcaro
Logged
Amir61
New member
Posts: 11
Re: How to config lazarus for Neofreerunner (openmoko)?
«
Reply #2 on:
August 21, 2009, 08:05:13 pm »
In the first step, I installed the cross compiler fpc-2.2.2.arm-linux.tar.
Then, when I tried to run fpc I got an error like following:
bash: /usr/bin/fpc: cannot execute binary file
So, I tried to reinstall the fpc and fpc-src and lazarus using yum.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Installation
»
PDAs and Smartphones
»
How to config lazarus for arm processors(Neofreerunner- openmoko)?
Recent
BiDi support in the nativ...
by
Avishai
[
Today
at 03:56:00 pm]
Background removal
by
User137
[
Today
at 03:45:21 pm]
EResnotFound, CreateNew, ...
by
vfclists
[
Today
at 03:44:56 pm]
Overriding environment va...
by
Martin_fr
[
Today
at 03:20:32 pm]
New component tab with gr...
by
Jurassic Pork
[
Today
at 02:34:45 pm]
string assignment on fpc ...
by
Timewarp
[
Today
at 02:24:37 pm]
Generics.Collections
by
JD
[
Today
at 01:51:41 pm]
Binary Decimal Convertor ...
by
Leledumbo
[
Today
at 01:35:56 pm]
How to get the real file ...
by
marcov
[
Today
at 01:30:40 pm]
TPageControl does not hav...
by
Avishai
[
Today
at 12:29:31 pm]