Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-05

Compiling lazarus in ubuntu

9 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Max Vlasov

Hi,

I'm not much experienced in linux environment, mostly familiar with windows. Once successfully installed lazarus in ubuntu having non-limited internet access, but today I tried to do the same downloading and installing minimum deb packages (fpc-compiler and rtl it required) and using sources of fpc and lazarus from another windows machine.

The problem is that make clean all for lazarus says "Can't find unit process used by RegisterFCL". I copied the sources to tried to make clean all for fpc (/usr/lib/fpc/2.4.2/sources) and in contrary to windows tree structure all output units were created as subtrees to sources (for example /fpc/2.4.2/source/packages/fcl-process/units/i386-linux/process.ppu) and the only folder inside /usr/lib/fpc/2.4.2/units was "rtl".

What should I change in the config or maybe something else to solve this? As I understood fpc.cfg should not contain reference to source files. I read documentation, great pdf file about building, but I still miss something.

Thanks in advance

Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110531/119b73b2/attachment.html>

Reply by email

Mattias Gaertner
to Max Vlasov
Show quoted text 7 lines
Hi, I'm not much experienced in linux environment, mostly familiar with windows. Once successfully installed lazarus in ubuntu having non-limited internet access, but today I tried to do the same downloading and installing minimum deb packages (fpc-compiler and rtl it required) and using sources of fpc and lazarus from another windows machine.

How did you install FPC and Lazarus. What packages did you install?

The problem is that make clean all for lazarus says "Can't find unit process used by RegisterFCL".

You probably have no or a wrong /etc/fpc.cfg.

Show quoted text 8 lines
I copied the sources to tried to make clean all for fpc (/usr/lib/fpc/2.4.2/sources) and in contrary to windows tree structure all output units were created as subtrees to sources (for example /fpc/2.4.2/source/packages/fcl-process/units/i386-linux/process.ppu) and the only folder inside /usr/lib/fpc/2.4.2/units was "rtl". What should I change in the config or maybe something else to solve this? As I understood fpc.cfg should not contain reference to source files.

Yes. Unless you only want to play a bit.

I read documentation, great pdf file about building, but I still miss something.

Mattias

Reply by email

Henry Vermaak
to Max Vlasov: I'm not much experienced in linux environment, mostly familiar with windows. Once…
Max Vlasov wrote 11 lines
Hi, I'm not much experienced in linux environment, mostly familiar with windows. Once successfully installed lazarus in ubuntu having non-limited internet access, but today I tried to do the same downloading and installing minimum deb packages (fpc-compiler and rtl it required) and using sources of fpc and lazarus from another windows machine. The problem is that make clean all for lazarus says "Can't find unit process used by RegisterFCL". I copied the sources to tried to make

You'll have to install fp-units-fcl, which contains fcl-process.

Show quoted text 5 lines
clean all for fpc (/usr/lib/fpc/2.4.2/sources) and in contrary to windows tree structure all output units were created as subtrees to sources (for example /fpc/2.4.2/source/packages/fcl-process/units/i386-linux/process.ppu) and the only folder inside /usr/lib/fpc/2.4.2/units was "rtl".

You have to make install.

Henry

Reply by email

Max Vlasov
to Mattias Gaertner: On Tue, 31 May 2011 18:40:37 +0400 How did you install FPC and Lazarus. What packages did…

On Tue, May 31, 2011 at 7:03 PM, Mattias Gaertner <

Show quoted text 16 lines
wrote: On Tue, 31 May 2011 18:40:37 +0400 Max Vlasov wrote: > Hi, > > but today I tried to do the same downloading and installing minimum > deb packages (fpc-compiler and rtl it required) and using sources of fpc > and lazarus from another windows machine. How did you install FPC and Lazarus. What packages did you install?

It's
fp-units-rtl_2.4.2-0_i386.deb and
fp-compiler_2.4.2-0_i386.deb
from
ftp://193.224.143.39/pub/fpc/dist/2.4.2/i386-linux/deb/ installed

The rest was just copied sources of fpc and lazarus from a windows installation that I tried to compile.

Show quoted text 6 lines
> The problem is that make clean all for lazarus says "Can't find unit process > used by RegisterFCL". You probably have no or a wrong /etc/fpc.cfg.

hmm, It existed and looked correct, I just tried to go a way when only minimum number of binary packages is downloaded and installed and the rest is build from sources.

As Henry suggested I probably should do make install, I will try tomorrow,

Thanks

Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110601/63626883/attachment.html>

Reply by email

Henry Vermaak
to Max Vlasov

2011/5/31 Max Vlasov :

As Henry suggested I probably should do make install, I will try tomorrow,

It's the custom on linux to install the stuff that you build from source into /usr/local/. The debs will install into /usr, so you will have to doctor your fpc.cfg, which will point to /usr by default. You can, however, use the INSTALL_PREFIX variable on the make command line to change the default install prefix.

If you're not going to work on fpc, just install the relevant debs so that you can get lazarus to work (e.g. fcl, gtk, etc).

Henry

Reply by email

Max Vlasov
to Henry Vermaak
Henry Vermaak wrote 12 lines
2011/5/31 Max Vlasov : > > As Henry suggested I probably should do make install, I will try tomorrow, It's the custom on linux to install the stuff that you build from source into /usr/local/. The debs will install into /usr, so you will have to doctor your fpc.cfg, which will point to /usr by default. You can, however, use the INSTALL_PREFIX variable on the make command line to change the default install prefix.

Thanks, Henry, I did as you suggested and everything worked fine. Now when I'm a little more familiar with how it's all working on linux I understand that actually http://wiki.lazarus.freepascal.org and mail-list search results contains all necessary information (so I probably could not bother you and others), just that if I did this without your help I had to collect pieces from different places.

Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110601/7ebdeada/attachment-0001.html>

Reply by email

Rafael Tuim Elias

A few days ago I had the same problem. I solved remaking the FPC.CFG file with "/usr/bin/fpcmkcfg", and change this line in the new fpc.cfg file:

-Fu~/fpc/packages/base/*/units/;~/fpc/fcl/units/;~fpc/rtl/units/

to this

-Fu /usr/lib/fpc/2.5.1/units/*

I dont know if it's correct, but worked.

I'm using FPC 2.5.1 and Lazarus 0.9.31 30371 on Ubuntu 11.04.

___________________________________________________ * **Rafael Tuim Elias* lazarus-cgi.co.cc -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110601/c222d8c3/attachment.html>

Reply by email

Mattias Gaertner
to Rafael Tuim Elias

Rafael Tuim Elias hat am 1. Juni 2011 um 12:42
geschrieben:

A fewdaysagoIhadthesameproblem. I solved remaking the FPC.CFG file with "/usr/bin/fpcmkcfg", and change this line in the new fpc.cfg file: -Fu~/fpc/packages/base/*/units/;~/fpc/fcl/units/;~fpc/rtl/units/

?
These are the sources. It's a bad idea to add source directories to the fpc.cfg, because they can create conflicts.
?
?

to this -Fu /usr/lib/fpc/2.5.1/units/*

?
Yes, this is the normal way.
?

Show quoted text 5 lines
I dont know if it's correct, but worked. I'm using FPC 2.5.1 and Lazarus 0.9.31 30371 on Ubuntu 11.04.

Mattias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110601/3287f7a5/attachment.html>

Reply by email

Rafael Tuim Elias
-Fu~/fpc/packages/base/*/units/;~/fpc/fcl/units/;~fpc/rtl/units/ These are the sources. It's a bad idea to add source directories to the

fpc.cfg,

Show quoted text 7 lines
because they can create conflicts. to this -Fu /usr/lib/fpc/2.5.1/units/* Yes, this is the normal way.
Show quoted text 5 lines
I dont know if it's correct, but worked. I'm using FPC 2.5.1 and Lazarus 0.9.31 30371 on Ubuntu 11.04.

when i remade the fpc.cfg with fpcmkcfg, this line "-Fu~/fpc/packages/base/*/units/;~/fpc/fcl/units/;~fpc/rtl/units/" been generated automaticaly, but dont worked, to work correctly i needed to change to " -Fu /usr/lib/fpc/2.5.1/units/*"

sorry to my poor english

___________________________________________________ * **Rafael Tuim Elias* lazarus-cgi.co.cc -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110601/bc9143db/attachment-0001.html>

Reply by email