Sign in Join

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

Mailing lists / lazarus / 2012-02

compiling lazarus on arm-linux

7 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Ajay Garg

Thanks Ludo.

It worked !!

Felipe, I was right; I was stupid not to test with the latest "fpc" version (2.6.0) :-|

(
Lazarus has been compiled and built successfully.
However, when I am invoking fpc from command line as

========================================================== fpc -S2cgi -O1 -gl -WG -vewnhi -l
-Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/
-Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/
-Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/gtk2/
-Fu/usr/lib/lazarus/packager/units/$ARCH-$OS/ -Fu. -o./magnifier -dLCL -dLCLgtk2 magnifier.dpr
==========================================================

I get the error :

Error: Illegal parameter : -WG

If you guys know the solution to this on top of your head; please let me know. Else, I am already looking into the docs :-) )

Thanks and Regards,
Ajay

Show quoted text 8 lines
Compiling lazarus with fpc 2.6.0 worked for me on arm debian sid. Fpc 2.6.0 is in the debian sid repositories but can also be found here: http://sourceforge.net/projects/freepascal/files/Linux/2.6.0/. Lazarus from debian sid repo (0.9.30.2) isn't working correctly. Some patches to correct alignment errors didn't make it in that release. Lazarus from svn works fine though. Ludo

Reply by email

Ludo Brands
to Ajay Garg
Show quoted text 41 lines
-----Message d'origine----- De : Ajay Garg [mailto:] Envoy? : mardi 7 f?vrier 2012 16:35 ? : Cc : Felipe Monteiro de Carvalho; Objet : Re: compiling lazarus on arm-linux Thanks Ludo. It worked !! Felipe, I was right; I was stupid not to test with the latest "fpc" version (2.6.0) :-| ( Lazarus has been compiled and built successfully. However, when I am invoking fpc from command line as ========================================================== fpc -S2cgi -O1 -gl -WG -vewnhi -l -Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/ -Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/ -Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/gtk2/ -Fu/usr/lib/lazarus/packager/units/$ARCH-$OS/ -Fu. -o./magnifier -dLCL -dLCLgtk2 magnifier.dpr ========================================================== I get the error : Error: Illegal parameter : -WG If you guys know the solution to this on top of your head; please let me know. Else, I am already looking into the docs :-) ) Thanks and Regards, Ajay

-WG is only used for windows and OS/2. Uncheck the windows gui option in project options/linking. Save that as your default for new projects,

Ludo

Reply by email

Ajay Garg
to Ludo Brands

Thanks Ludo and Felipe.

Just one last favour: how is Lazarus installed, after it has been compiled (successfully) from the previous steps.

I am stuck at the point : "Can't find unit Interfaces used by lente" (this happens when I run the command (with the -WG option removed)

fpc -S2cgi -O1 -gl -vewnhi -l
-Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/
-Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/
-Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/gtk2/
-Fu/usr/lib/lazarus/packager/units/$ARCH-$OS/ -Fu. -o./magnifier -dLCL -dLCLgtk2 magnifier.dpr

I ask this (as to how to install Lazarus AFTER compiling through "make bigedie"), because I had faced the exact same message (the "lente" one), when I tried building "magnifier" on my x86-based Fedora-14. I had then installed Lazarus _as a rpm_ on the x86-based Fedora-14, and the "magnifier" was then built.

So I am sure, that Lazarus has not been installed, though it has been compiled.

Please, one last favour.

Can't thank you guys enough already.

Yours truly.
Ajay

Ludo Brands wrote 49 lines
> -----Message d'origine----- > De : Ajay Garg [mailto:] > Envoy? : mardi 7 f?vrier 2012 16:35 > ? : > Cc : Felipe Monteiro de Carvalho; > Objet : Re: compiling lazarus on arm-linux > > > Thanks Ludo. > > It worked !! > > Felipe, ?I was right; I was stupid not to test with the > latest "fpc" version (2.6.0) :-| > > ( > ? Lazarus has been compiled and built successfully. > ? However, when I am invoking fpc from command line as > > ========================================================== > ? fpc -S2cgi -O1 -gl -WG -vewnhi -l > -Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/ > -Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/ > -Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/gtk2/ > -Fu/usr/lib/lazarus/packager/units/$ARCH-$OS/ -Fu. > -o./magnifier -dLCL -dLCLgtk2 magnifier.dpr > ========================================================== > > ? I get the error : > > ? Error: Illegal parameter : -WG > > ? If you guys know the solution to this on top of your head; > please let me know. Else, I am already looking into the docs :-) > ) > > > Thanks and Regards, > Ajay > > -WG is only used for windows and OS/2. Uncheck the windows gui option in project options/linking. Save that as your default for new projects, Ludo

Reply by email

Ludo Brands
to Ajay Garg
Show quoted text 33 lines
Thanks Ludo and Felipe. Just one last favour: how is Lazarus installed, after it has been compiled (successfully) from the previous steps. I am stuck at the point : "Can't find unit Interfaces used by lente" (this happens when I run the command (with the -WG option removed) fpc -S2cgi -O1 -gl -vewnhi -l -Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/ -Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/ -Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/gtk2/ -Fu/usr/lib/lazarus/packager/units/$ARCH-$OS/ -Fu. -o./magnifier -dLCL -dLCLgtk2 magnifier.dpr I ask this (as to how to install Lazarus AFTER compiling through "make bigedie"), because I had faced the exact same message (the "lente" one), when I tried building "magnifier" on my x86-based Fedora-14. I had then installed Lazarus _as a rpm_ on the x86-based Fedora-14, and the "magnifier" was then built. So I am sure, that Lazarus has not been installed, though it has been compiled. Please, one last favour. Can't thank you guys enough already. Yours truly. Ajay

In Tools/Options/Environment set the Lazarus Directory to the directory where you have installed lazarus. When you do just a 'make' the lazarus directory is the directory where you did the 'make'.

Ludo

Reply by email

Ajay Garg
to Ludo Brands

Thanks Ludo.

I set the paths, and the architecture correctly in the script (had to replace "arm7l" with "arm").
It proceeded forward.

I now face a new problem :
"""
Fatal: Can't find unit AvgLvlTree used by LCLProc" Fatal: Compilation aborted
Error: /usr/bin/ppcarm returned an error exitcode (normal if you did not specify a source file to be compiled)
"""

Regards,
Ajay

Ludo Brands wrote 41 lines
> Thanks Ludo and Felipe. > > Just one last favour: how is Lazarus installed, after it has > been compiled (successfully) from the previous steps. > > I am stuck at the point : "Can't find unit Interfaces used by > lente" (this happens when I run the command (with the -WG > option removed) > > ? fpc -S2cgi -O1 -gl -vewnhi -l > -Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/ > ?-Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/ > ?-Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/gtk2/ > ?-Fu/usr/lib/lazarus/packager/units/$ARCH-$OS/ -Fu. > -o./magnifier -dLCL -dLCLgtk2 magnifier.dpr > > > I ask this (as to how to install Lazarus AFTER compiling > through "make bigedie"), because I had faced the exact same > message (the "lente" one), when I tried building "magnifier" > on my x86-based Fedora-14. I had then installed Lazarus _as a > rpm_ on the x86-based Fedora-14, and the "magnifier" was then built. > > So I am sure, that Lazarus has not been installed, though it > has been compiled. > > Please, one last favour. > > Can't thank you guys enough already. > > Yours truly. > Ajay > In Tools/Options/Environment set the Lazarus Directory to the directory where you have installed lazarus. When you do just a 'make' the lazarus directory is the directory where you did the 'make'. Ludo

Reply by email

Ajay Garg
to Ajay Garg

A gentle reminder, for guidance. :-)

Regards,
Ajay

Ajay Garg wrote 60 lines
Thanks Ludo. I set the paths, and the architecture correctly in the script (had to replace "arm7l" with "arm"). It proceeded forward. I now face a new problem : """ Fatal: Can't find unit AvgLvlTree used by LCLProc" Fatal: Compilation aborted Error: /usr/bin/ppcarm returned an error exitcode (normal if you did not specify a source file to be compiled) """ Regards, Ajay On Wed, Feb 8, 2012 at 1:02 AM, Ludo Brands wrote: >> Thanks Ludo and Felipe. >> >> Just one last favour: how is Lazarus installed, after it has >> been compiled (successfully) from the previous steps. >> >> I am stuck at the point : "Can't find unit Interfaces used by >> lente" (this happens when I run the command (with the -WG >> option removed) >> >> ? fpc -S2cgi -O1 -gl -vewnhi -l >> -Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/ >> ?-Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/ >> ?-Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/gtk2/ >> ?-Fu/usr/lib/lazarus/packager/units/$ARCH-$OS/ -Fu. >> -o./magnifier -dLCL -dLCLgtk2 magnifier.dpr >> >> >> I ask this (as to how to install Lazarus AFTER compiling >> through "make bigedie"), because I had faced the exact same >> message (the "lente" one), when I tried building "magnifier" >> on my x86-based Fedora-14. I had then installed Lazarus _as a >> rpm_ on the x86-based Fedora-14, and the "magnifier" was then built. >> >> So I am sure, that Lazarus has not been installed, though it >> has been compiled. >> >> Please, one last favour. >> >> Can't thank you guys enough already. >> >> Yours truly. >> Ajay >> > > > In Tools/Options/Environment set the Lazarus Directory to the directory > where you have installed lazarus. When you do just a 'make' the lazarus > directory is the directory where you did the 'make'. > > Ludo >

Reply by email

Ajay Garg

Thanks, it worked :-)

Thanks a ton again.

Regards,
Ajay

Felipe Monteiro de Carvalho wrote 5 lines
Either use lazbuild to build the project or put all paths. Do a search to find the location of avglvltree.o -- Felipe Monteiro de Carvalho

Reply by email