× CodeTyphon Cross-Build Development, discussions and problems

Question Cross compiling for Raspberry with ....

  • Bernard
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 8 months ago #6927 by Bernard
Hello,
I just begin with codeTyphon and I have a project.
Before spending time I want to be sure if is it possible to cross compile from windows 8 to RaspberryPi 2 an application witch is able to :
- use physical digital inputs and outputs of the Raspberry card
- make video capture from a logitech webcam
- save picture on SD card or USB key / hard disque
- send pictures via FTP to an Internet Server.
Thank you

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
6 years 8 months ago #6928 by Sternas Stefanos
Replied by Sternas Stefanos on topic Cross compiling for Raspberry with ....
Sir
Windows to RaspberryPi 2 ability is in LAB CT 5.3

PilotLogic Architect and Core Programmer

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

  • FredyCC
  • FredyCC's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Database/Developer
More
6 years 8 months ago #6929 by FredyCC
Replied by FredyCC on topic Cross compiling for Raspberry with ....
Hi BernardB

For such points that you mention it, I recommend installing CT in a greater distribution (mint, ubuntu, etc) and try to achieve what you mention for the compilation is fast.

"Use physical digital inputs and outputs of the Raspberry card" Surely you will need some extra library to achieve interact with the physical ports.

"Make video capture from a logitech webcam" You will need to settle the appropriate driver and prove that any additional software can correctly access the camera, to spare you unnecessary trouble.

"Save picture on SD card or USB key / hard disque" I think there is no major problem with this, could have without the necessary permissions for your application to run.

"Send pictures via FTP to an Internet Server" There are several components to achieve this without much trouble in my opinion for Lazarus.

If you have not tried before compile for raspberry with CT, I recommend splitting your project to achieve your ultimate goal if you want to integrate everything later.

I suggest raspberry pi 2 claim to be much faster.

I've never tried the remote debugging, it might be more useful in some cases to interact with the physical ports.

Regards

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

  • avra
  • Visitor
  • Visitor
6 years 8 months ago #6933 by avra
Replied by avra on topic Cross compiling for Raspberry with ....

- use physical digital inputs and outputs of the Raspberry card

forum.lazarus.freepascal.org/index.php/topic,20991.0.html
forum.lazarus.freepascal.org/index.php/t...16157.html#msg116157
wiki.lazarus.freepascal.org/Lazarus_on_R...iringPi_c_library.29

- make video capture from a logitech webcam

wiki.freepascal.org/5dpo
forum.lazarus.freepascal.org/index.php/t...g67886.html#msg67886
Not tested with Pi but it should work if your webcam is compatible with v4l. Try to get webcam working with Raspbian first before trying with Typhon, and before that you could set up Debian pc and try everything there first.

- save picture on SD card or USB key / hard disque

yes

- send pictures via FTP to an Internet Server.

yes

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

  • Bernard
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 8 months ago #6934 by Bernard
Replied by Bernard on topic Cross compiling for Raspberry with ....
Many thanks for all, I'll have a look to the differents links and after I'll decide if I run or not !!

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

More
6 years 8 months ago #6976 by Alfred
Replied by Alfred on topic Cross compiling for Raspberry with ....
Hello Sternas and others,

I would like to report back that CT 5.30 crosscompiles flawless for my RPi2 !
Console and GUI !!
Download RPi2 library, download RPi2 toolchain, build FPC and off you go ...

Thanks very much, Alfred.

ps:
Also Android works 100% !
The following user(s) said Thank You: avra

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
6 years 8 months ago #6977 by Sternas Stefanos
Replied by Sternas Stefanos on topic Cross compiling for Raspberry with ....
Thanks Sir
have fun

PilotLogic Architect and Core Programmer

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