Welcome, Guest
Username: Password: Remember me
CodeTyphon Cross-Build Development, discussions and problems
  • Page:
  • 1

TOPIC:

My first Raspbian app 12 years 3 months ago #2420

  • FredyCC
  • FredyCC's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Database/Developer
  • Posts: 60
  • Thank you received: 10
After many attempts :S , I could create an executable from CT 2.80 :laugh: , which can run on Raspbian (Raspbian is a free operating system based on Debian Raspberry Pi optimized for the hardware), I have not the hardware, but through I managed to install qemu on windows to extract the necessary libraries to compile in TC which is installed on Scientific Linux x86_64(arm-linux) and to test the executable generated, I had no problems with this Linux distribution to generate executables for windows i386 and x86_64 too.

Raspberry Project: www.raspberrypi.org/
Raspberry Pi emulation for Windows: sourceforge.net/projects/rpiqemuwindows/
Rasbian OS: www.raspbian.org/
libraries and dependencies: docs.google.com/folder/d/0B-v0GC8WoWuad0...FtZG43T1U/edit?pli=1

Here a little example, SQLite works too ;):



Thanks CodeTyphon Team and all those who made ​​this project possible. :lol:

Regards

Please Log in or Create an account to join the conversation.

Last edit: by FredyCC.

My first Raspbian app 12 years 3 months ago #2421

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Thanks Sir
excellent news :cheer:
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

My first Raspbian app 12 years 3 months ago #2424

  • 4aiman
  • 4aiman's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Comix creator
  • Posts: 227
  • Thank you received: 12
fredycc, could you post here a ist of units you've used and the listh of librares this project needed to be cross-compiled? ;)
コンソールマニアック

Please Log in or Create an account to join the conversation.

My first Raspbian app 12 years 3 months ago #2430

  • FredyCC
  • FredyCC's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Database/Developer
  • Posts: 60
  • Thank you received: 10

4aiman wrote: fredycc, could you post here a ist of units you've used and the listh of librares this project needed to be cross-compiled? ;)


Sure 4aiman, only now in my home internet connection is very slow but am at work I can upload the libraries and dependencies to a server and will post the link here.

Regards

Please Log in or Create an account to join the conversation.

My first Raspbian app 12 years 3 months ago #2433

  • FredyCC
  • FredyCC's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Database/Developer
  • Posts: 60
  • Thank you received: 10
For libraries and dependencies needed for cross-compile, check first post please
The following user(s) said Thank You: 4aiman

Please Log in or Create an account to join the conversation.

Last edit: by FredyCC.

My first Raspbian app 11 years 10 months ago #2978

  • 4aiman
  • 4aiman's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Comix creator
  • Posts: 227
  • Thank you received: 12
I've got this:

Error: Illegal parameter: -CpARMV6

I have changed widgetset to customdrawn and added lib-arm-pi folder to the library path.
How could I compile the simpliest App? (I've read about android and wince, but I had never ever cross-compiled anything...)
コンソールマニアック

Please Log in or Create an account to join the conversation.

My first Raspbian app 11 years 10 months ago #2980

  • FredyCC
  • FredyCC's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Database/Developer
  • Posts: 60
  • Thank you received: 10

4aiman wrote: I've got this:
I have changed widgetset to customdrawn and added lib-arm-pi folder to the library path.


Are you trying compile for Linux ARM target? :dry: , I use Mint/CentOS/Scientifc Linux i386/x86_64 to generate raspbian app.

regards
The following user(s) said Thank You: universe

Please Log in or Create an account to join the conversation.

My first Raspbian app 11 years 10 months ago #3003

  • universe
  • universe's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 122
  • Thank you received: 8
Hello,
I've been trying to cross compile with CT3.1 from Mint to Raspbian since a week and I've just found your post here I've searched a lot of forums (Lazarus...). While I succeeded to write a simple console app, I failed to compile a GUI app with just a form, I always recieve a bunch of messages as:
/usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: error: Source object /home/user/Desktop/temp_dir/lib/arm-linux/project1.o has EABI version 0, but target project1 has EABI version 5
Could you please tell me how did you manage to fix this?
Thanks in advance for any hint.

Please Log in or Create an account to join the conversation.

Last edit: by universe.

My first Raspbian app 11 years 10 months ago #3004

  • universe
  • universe's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 122
  • Thank you received: 8
I've just downloaded your libraries and it's working :). Thank you, could you tell me the reason, just for the knowledges sake despite my libraries are from a pi too.
And thank you CT team as well for your nice work.

Please Log in or Create an account to join the conversation.

Last edit: by universe.

My first Raspbian app 11 years 10 months ago #3011

  • 4aiman
  • 4aiman's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Comix creator
  • Posts: 227
  • Thank you received: 12

Are you trying compile for Linux ARM target?

What else could it be? Raspberry Pi is an ARM based board.
I have compiled my project using your libraries, though. It didn't run on a real Pi with Raspbian, which is understandable. (Hoo-ray!!! I have it now!!! My very own raspberry!!!)
Your virtualbox emulates i386-compatible hardware. So you have built a regular i386 application for a modified Debian OS. You even wouldn't see that modifications, cause they are made for ARM.

Tonight I'll install the regular lazarus on a real Pi and tomorrow I would try to install some packages onto it.

Sir sternas, I tried to install CT 3.1 but despite all system libraries are installed (double-checked that) even small ide can't be built... And of cource CT installer has created linuxx-i386 folders instead of linux-arm...
コンソールマニアック

Please Log in or Create an account to join the conversation.

Last edit: by 4aiman.

My first Raspbian app 11 years 10 months ago #3012

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Port CT to Linux-Arm ?
we will see
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

My first Raspbian app 11 years 10 months ago #3014

  • FredyCC
  • FredyCC's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Database/Developer
  • Posts: 60
  • Thank you received: 10

sternas wrote: Port CT to Linux-Arm ?
we will see


it would be great, Sternas :)

regards

Please Log in or Create an account to join the conversation.

My first Raspbian app 11 years 10 months ago #3016

  • 4aiman
  • 4aiman's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Comix creator
  • Posts: 227
  • Thank you received: 12
Thanks for attention to this case! :)

May I ask whether some IDE speed-up is possible?
AFAIK Lazarus uses hdd too hard - it writes position of controls after it's every movement to a temporary file. Raspberry uses SD (or MMC) which are slow (I use class 10 SD and that's still much less than a real hdd). So maybe a little bit more RAM usage (even my biggest projects have only 10Mb to 15Mb of code) and a little bit less hdd usage? Maybe with some kind of stdio redirection instead of making big changes to IDE?

Regards
コンソールマニアック

Please Log in or Create an account to join the conversation.

My first Raspbian app 11 years 9 months ago #3113

  • opc0de
  • opc0de's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 1
Could you post a detalied description in the steps involved to make CT run on raspberry.

I am receiving error messages. Do I need to copy your files in the lib folder ?

Please Log in or Create an account to join the conversation.

My first Raspbian app 11 years 9 months ago #3256

  • 4aiman
  • 4aiman's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Comix creator
  • Posts: 227
  • Thank you received: 12
You can't build CT on raspberry. You can only build Ct under raspbian. Sternas said that he will think about porting for Linux ARM.
As for Lazarus in general - there are version of it repos ;)
コンソールマニアック

Please Log in or Create an account to join the conversation.

My first Raspbian app 11 years 7 months ago #3622

  • dennis
  • dennis's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0
:S
I have installed CodeTyphon on my windows7 machine. I have written and compiled my first lazarus application using CodeTyphon. It works in Windows7. I want to cross-compile that application for arm-linux, specifically for the Raspberry Pi. Please tell me where are the detailed instructions on what to do to take all or part of my Windows7 compiled app, cross-compiling it for arm linux, and ending up with an executable I can copy onto the Raspberry Pi and run it? Despite spending ages searching, I can't find any such thing. I may be blind or looking in the wrong places, but without some help, CodeTyphon will be of little or no use to me.

Please Log in or Create an account to join the conversation.

My first Raspbian app 11 years 7 months ago #3623

  • FredyCC
  • FredyCC's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Database/Developer
  • Posts: 60
  • Thank you received: 10
I have not tried to compile from windows application to raspberry pi but from another Linux distribution as mint and what you need first is to build the compiler, use the Tool Chain www.pilotlogic.com/sitejoom/index.php/co.../codetyphon-download, then extracted raspbian libraries from pi or downloaded it from my first post, once this is done in your project options select OS: Linux, Familiy ..: ARM and PATHS: folder dependencies.

I always use linux on virtual machines

regards

Please Log in or Create an account to join the conversation.

My first Raspbian app 11 years 7 months ago #3624

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

My first Raspbian app 11 years 7 months ago #3658

  • dennis
  • dennis's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0
freddycc Thank you very much. I have downloaded your 'library and dependencies' file on my Windows 7 machine. It contains a number of different libraries, etc. I now need to unzip it. To where (directory/subdirectory or whatever) should I do this, please? I already have a thing called 'cross element for arm linux' under 'FPC for win32' on my PC's CodeTyphon window.
When I have done this, my understanding is that I should then open my windows-compiled app back into Lazarus called up from CodeTyphon, and change what you said, and recompile and voila! Is this correct, please? I really don't want to foul up this conversion.

sternas. Please pardon my ignorance, but I am afraid I simply cannot see how your message addresses my question to tell me what it is I need to know, how to compile something on my Windows7 PC to run on my Raspberry pi.

Please Log in or Create an account to join the conversation.

Last edit: by dennis. Reason: Incomplete original.
  • Page:
  • 1