Lazarus Programming

Need help with C, C++, perl, python, etc?

Lazarus Programming

Postby Puma Veloce » 2015-04-15 13:39

Hello everyone! :D

First of all please excuse my bad english: this is not my mother language.. :)
I just installed Lazarus on my Raspberry under Debian. It wasn't so easy but all is done.

Howaver I can't work because the editor is OK but it seems that FPC can't find some units. To make it easier I put all the units in the same directory but I don't know how to configure FPC to find this one..

Please help me! :mrgreen:
Puma Veloce
 
Posts: 5
Joined: 2015-04-15 13:23


Re: Lazarus Programming

Postby Puma Veloce » 2015-04-15 15:19

arochester wrote:https://www.raspberrypi.org/forums/


Sorry, but there is no solution there: I've examine there and don't find a solution so far..
Puma Veloce
 
Posts: 5
Joined: 2015-04-15 13:23

Re: Lazarus Programming

Postby roseway » 2015-04-15 17:38

You probably need to install some more fp-* packages. I don't remember the details now, but I don't think that the fpc metapackage installs all the fp-* packages which are needed by Lazarus.
Eric
User avatar
roseway
 
Posts: 1495
Joined: 2007-12-31 22:50
Location: Kent, UK

Re: Lazarus Programming

Postby stevepusser » 2015-04-15 17:39

It wasn't so easy but all is done.


Since it's in the repositories, it should be easy. This naturally brings up the question if you tried installing the repository version, or some outside method that violates the sacred writ: https://wiki.debian.org/DontBreakDebian

Sorry, but there is no solution there: I've examine there and don't find a solution so far..
I think was the suggestion was that you post your question there. Then after you get no response, you come back here and flatter the forum about how great and knowledgeable the members are, and if they could find the time to consider your humble petition, you'd be eternally grateful.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Kdenlive 18.08.1, Pale Moon 28.1.0, wine-staging 3.17, qBittorrent 4.1.3, Liquorix kernel 4.18-13, Audacity 2.3.0
User avatar
stevepusser
 
Posts: 9991
Joined: 2009-10-06 05:53

Re: Lazarus Programming

Postby Puma Veloce » 2015-04-15 22:14

roseway wrote:You probably need to install some more fp-* packages. I don't remember the details now, but I don't think that the fpc metapackage installs all the fp-* packages which are needed by Lazarus.


Anyway, all the fp-* packages were well installed following the good method found in http://otapi.com/2015/02/10/raspberry-p ... nd-delphi/.
I can see the PPU they contain. But the compiler don't "see" them. Perhaps I have to modify something to show the compiler were this packages are.
Puma Veloce
 
Posts: 5
Joined: 2015-04-15 13:23

Re: Lazarus Programming

Postby Puma Veloce » 2015-04-15 22:19

stevepusser wrote:
It wasn't so easy but all is done.


Since it's in the repositories, it should be easy. This naturally brings up the question if you tried installing the repository version, or some outside method that violates the sacred writ: https://wiki.debian.org/DontBreakDebian

Sorry, but there is no solution there: I've examine there and don't find a solution so far..
I think was the suggestion was that you post your question there. Then after you get no response, you come back here and flatter the forum about how great and knowledgeable the members are, and if they could find the time to consider your humble petition, you'd be eternally grateful.


Perhaps you are humouristic, perhaps not. In this case I consider your response inadequate..
Of course it's easier to consider I didn't follow the good methods or search for a solution by myself. Sorry, I do programming since 1982 and I am NOT a greenhorn without any respect for other people.. :o
Puma Veloce
 
Posts: 5
Joined: 2015-04-15 13:23

Re: Lazarus Programming

Postby stevepusser » 2015-04-15 23:03

In my first post, I asked for some critical information that you did not provide, except by linking to some blog that was quite difficult to read, with some text being very light grey on white:

This naturally brings up the question if you tried installing the repository version, or some outside method that violates the sacred writ: https://wiki.debian.org/DontBreakDebian


I was trying to be a bit lighter than the usual response you'd get here. Also, you neglected to point out the root of your problem in your original post, in that you are trying to use the very latest version of FPC 2.6.4, manually installed per that linked post, instead of the version in the repositories.

As you've discovered, per that wiki entry I linked to, FPC is now broken. I suggest removing it and trying the armhf version of FPC 2.6.4 in wheezy-backports. See backports.org

Apparently Otapi did not check or know about the backports repository.

Note that Lazarus 1.2.4 is the best you can get prepackaged from backports, or any version of Debian or Ubuntu. I just searched, and there's now an Ubuntu PPA with source files for 1.2.6 that can be rebuilt on Debian per https://wiki.debian.org/CreatePackageFromPPA.

There's a method to cross-compile armhf packages on Intel (or any) processors using pbuilder and QEMU (again, there's a newer QEMU in backports) but it does it fairly slowly when I've done it. Probably doing a native rebuild on the Pi would be just as fast.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Kdenlive 18.08.1, Pale Moon 28.1.0, wine-staging 3.17, qBittorrent 4.1.3, Liquorix kernel 4.18-13, Audacity 2.3.0
User avatar
stevepusser
 
Posts: 9991
Joined: 2009-10-06 05:53

Re: Lazarus Programming

Postby Puma Veloce » 2015-04-16 08:14

Ok, I understand now what happened.
Probably the fact I discover Linux after years of DOS & Windows don't help me with precision in my questions.

So I tried installing Lazarus & FPC via packages proposed by Raspbian, and I get an error response "lazarus-0.9.30.4 broken". As FPC was normaly installed I thought it was "clean"..
After that - only after - I found the Otapi listing proposing man,ual installation.. and this was usable!

I'll try following your proposition: remove FPC, and install your backports version.

Thank you for your explanations! :)
Puma Veloce
 
Posts: 5
Joined: 2015-04-15 13:23

Re: Lazarus Programming

Postby stevepusser » 2015-04-16 17:36

Yes, wheezy-backports has fpc 2.6.4 and Lazarus 1.2.2 in armhf binaries. I ported over the Lazarus 1.2.6 source from the Ubuntu PPA to i386 and amd64 just now for the MEPIS repo, but found that I had to use the latest fpc (>= 2.6.4) to build it, so I added the minimum dependencies to the build-depends field in /debian/control.

Debian allows you to have multiple versions of fpc and lazarus installed at one time, such as 2.6.0 and 2.6.4; you choose which one will be used by setting it as default via the alternatives system:

Code: Select all
su -c 'update-alternatives --config fpc'


on the command line, or with a GUI such as galternatives.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Kdenlive 18.08.1, Pale Moon 28.1.0, wine-staging 3.17, qBittorrent 4.1.3, Liquorix kernel 4.18-13, Audacity 2.3.0
User avatar
stevepusser
 
Posts: 9991
Joined: 2009-10-06 05:53

Re: Lazarus Programming

Postby GarryRicketson » 2015-06-27 21:18

This is a tutorial for Lazarus, that may be useful to some people,
http://wiki.freepascal.org/Lazarus_Tutorial
User avatar
GarryRicketson
 
Posts: 5119
Joined: 2015-01-20 22:16
Location: Durango, Mexico


Return to Programming

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable