Code Monkey home page Code Monkey logo

jakobsche / raspi Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 2.66 MB

Lazarus Package to use in Lazarus or in applications being created with Lazarus for Raspberry Pi. Some components support Rapid Application Development of GUI apps that also work over a secure Internet connection by forwarding the GUI to the client's X server. The source code should work for all CPU with sysfs (Linux, ...?).

License: Other

Pascal 41.06% CSS 3.90% HTML 53.89% Shell 1.15%
lazarus-ide lazarus-package raspberry-pi embedded

raspi's Introduction

raspi - Lazarus package

This package was made for and particularly tested on Raspberry Pi. The easiest way to program on Raspberry Pi with Lazarus is to install FPC and Lazarus from the packages of your distribution.

Install compiler and tools

Because such Raspbian packages are often older than what I use, something might be incompatible. To get the most recent versions of the tools, learn to install them from the sources. I was successfully with downloading the binaries of FPC and the sources from the original websites (freepascal.org, lazarus-ide.org) and following the instructions in the contained documents.

Use raspi

On Raspberry Pi

The easiest way to use this Lazarus package is to add it to your project and use it in your Object Pascal source code.

To use it in the form designer, you must install it in Lazarus. This requires to compile the Lazarus IDE after adding the package raspi. After my experience that is possible, if you use a Raspberry Pi with at least 1 GB RAM and a Linux, that is not bigger than necessary, especially in RAM. I use Raspbian Lite without to start an X server or other unnecessary services for the development. Then I forward the X server of my network client with "ssh -Y ..." to run Lazarus and the produced GUI applications over the network. You can run your compiled GUI applications on every other Raspberry Pi, if it has the necessary ressources, locally or via SSH. The easiest way to check for the ressources is

  • copying your compiled application to the target Raspberry Pi
  • run it via SSH or in a x-terminal to see messages, if something goes wrong
  • patch your Raspberry Pi to solve the problems.

If you got your first application running this way, most other applications being created the same way will run without to repeat this expense. Your target system does not require the development tools, because your application works on the operating system immediately (fast, less ressources requirements).

On other embedded computers

The package is CPU independent by using sysfs. So you should also be able to compile it and your applications for all computers with Linux and the necessary peripheral devices, if you can get a Free Pascal Compiler for your target system.

Good luck!

raspi's People

Contributors

jakobsche avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.