Re: [Lazarus] Compiling on Odroid / RaspberryPi

2016-03-15 Thread steveg

In order to to do that you need a starting fpc. How did you install the
first fpc on the system?

"make install" does everything, except making it the default compiler.
This way "make install" can be used to install a second compiler. I
wonder if there is a simple command to do a complete install as the
main compiler.
To create a config you can use on Linux (Maybe it works on Odroid too):

./compiler/utils/samplecfg /usr/local/lib/fpc/3.1.1 /etc

  

Should I use a copy of another fpc.cfg and install it to /etc
(and do I need to modify it at all)

That's possible too.

Mattias


That fixed the compiling - 1 small step for  me

moving on to next problem though (way into compile) - now getting error 
in fpcres
running /usr/local/bin/fpres -v 
/media/odroid/diskxxx/lazarus/ide/lazbuild.lpr

gives error of -
Debug: Trying to open file (as above)
Error: No known file format detected for file (as above)
will continue with my investigations here

Thanks



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Compiling on Odroid / RaspberryPi

2016-03-15 Thread Mattias Gaertner
On Tue, 15 Mar 2016 21:44:18 +1030
steveg  wrote:

> Thanks Mattias -
> 
> I dont seem to have a /etc/fpc.cfg - possibly I didnt install fpc 
> correctly ?
> I svn'd fpc,
> then make clean all / make install

In order to to do that you need a starting fpc. How did you install the
first fpc on the system?

"make install" does everything, except making it the default compiler.
This way "make install" can be used to install a second compiler. I
wonder if there is a simple command to do a complete install as the
main compiler.
To create a config you can use on Linux (Maybe it works on Odroid too):

./compiler/utils/samplecfg /usr/local/lib/fpc/3.1.1 /etc

 
> Should I use a copy of another fpc.cfg and install it to /etc
> (and do I need to modify it at all)

That's possible too.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Compiling on Odroid / RaspberryPi

2016-03-15 Thread steveg

Thanks Mattias -

I dont seem to have a /etc/fpc.cfg - possibly I didnt install fpc 
correctly ?

I svn'd fpc,
then make clean all / make install

Should I use a copy of another fpc.cfg and install it to /etc
(and do I need to modify it at all)

I have been going around in circles with this for awhile (google etc), 
so I dont mind if you just point me to a web page to learn for myself - 
just need the right page :)


Thanks


On 15/03/16 21:22, Mattias Gaertner wrote:

On Tue, 15 Mar 2016 21:12:03 +1030
steveg  wrote:


I am trying to compile Laz on an Odroid Arm system (running Lubuntu
14.04 - LXDE)
I have fpc 3.1.1 compiled and installed ok (I believe)

Compiling the latest svn of Laz is giving the following error - (cant
find unit)
process.ppu and friends are in
/usr/local/lib/fpc/3.1.1/units/arm-linux/fcl-process

as far as I can tell, the make script seems to only scan within the base
and rtl dirs ? - therefore not seeing process.ppu and others.

Check that your /etc/fpc.cfg contains the -Fu paths to the fpc units.

  
Mattias


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Compiling on Odroid / RaspberryPi

2016-03-15 Thread Mattias Gaertner
On Tue, 15 Mar 2016 21:12:03 +1030
steveg  wrote:

> I am trying to compile Laz on an Odroid Arm system (running Lubuntu 
> 14.04 - LXDE)
> I have fpc 3.1.1 compiled and installed ok (I believe)
> 
> Compiling the latest svn of Laz is giving the following error - (cant 
> find unit)
> process.ppu and friends are in 
> /usr/local/lib/fpc/3.1.1/units/arm-linux/fcl-process
> 
> as far as I can tell, the make script seems to only scan within the base 
> and rtl dirs ? - therefore not seeing process.ppu and others.

Check that your /etc/fpc.cfg contains the -Fu paths to the fpc units.

 
Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Compiling on Odroid / RaspberryPi

2016-03-15 Thread steveg
I am trying to compile Laz on an Odroid Arm system (running Lubuntu 
14.04 - LXDE)

I have fpc 3.1.1 compiled and installed ok (I believe)

Compiling the latest svn of Laz is giving the following error - (cant 
find unit)
process.ppu and friends are in 
/usr/local/lib/fpc/3.1.1/units/arm-linux/fcl-process


as far as I can tell, the make script seems to only scan within the base 
and rtl dirs ? - therefore not seeing process.ppu and others.


appreciate any thoughts here

In the svn'd Lazarus dir - make OPT='vt' gives the following (cut to 
beginning of problem)


Searching file registerfcl.pas... found
(1) Unitsearch: process.ppu
Searching file process.ppu... not found
Searching file PROCESS.PPU... not found
(1) Unitsearch: ../units/arm-linux/process.ppu
Searching file ../units/arm-linux/process.ppu... not found
Searching file ../units/arm-linux/PROCESS.PPU... not found
(1) Unitsearch: process.pp
Searching file process.pp... not found
Searching file PROCESS.PP... not found
(1) Unitsearch: process.pas
Searching file process.pas... not found
Searching file PROCESS.PAS... not found
(1) Unitsearch: process.ppu
Searching file process.ppu... not found
Searching file PROCESS.PPU... not found
(1) Unitsearch: process.pp
Searching file process.pp... not found
Searching file PROCESS.PP... not found
(1) Unitsearch: process.pas
Searching file process.pas... not found
Searching file PROCESS.PAS... not found
(1) Unitsearch: /usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/process.ppu
Searching file 
/usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/process.ppu... not found
Searching file 
/usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/PROCESS.PPU... not found

(1) Unitsearch: /usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/process.pp
Searching file 
/usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/process.pp... not found
Searching file 
/usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/PROCESS.PP... not found

(1) Unitsearch: /usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/process.pas
Searching file 
/usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/process.pas... not found
Searching file 
/usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/PROCESS.PAS... not found

(1) Unitsearch: /usr/local/lib/fpc/3.1.1/process.ppu
Searching file /usr/local/lib/fpc/3.1.1/process.ppu... not found
Searching file /usr/local/lib/fpc/3.1.1/PROCESS.PPU... not found
(1) Unitsearch: /usr/local/lib/fpc/3.1.1/process.pp
Searching file /usr/local/lib/fpc/3.1.1/process.pp... not found
Searching file /usr/local/lib/fpc/3.1.1/PROCESS.PP... not found
(1) Unitsearch: /usr/local/lib/fpc/3.1.1/process.pas
Searching file /usr/local/lib/fpc/3.1.1/process.pas... not found
Searching file /usr/local/lib/fpc/3.1.1/PROCESS.PAS... not found
(1) Unitsearch: process.pp
Searching file process.pp... not found
Searching file PROCESS.PP... not found
(1) Unitsearch: process.pas
Searching file process.pas... not found
Searching file PROCESS.PAS... not found
(1) Unitsearch: process.pp
Searching file process.pp... not found
Searching file PROCESS.PP... not found
(1) Unitsearch: process.pas
Searching file process.pas... not found
Searching file PROCESS.PAS... not found
(1) Unitsearch: /usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/process.pp
Searching file 
/usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/process.pp... not found
Searching file 
/usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/PROCESS.PP... not found

(1) Unitsearch: /usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/process.pas
Searching file 
/usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/process.pas... not found
Searching file 
/usr/local/lib/fpc/3.1.1/units/arm-linux/rtl/PROCESS.PAS... not found

(1) Unitsearch: /usr/local/lib/fpc/3.1.1/process.pp
Searching file /usr/local/lib/fpc/3.1.1/process.pp... not found
Searching file /usr/local/lib/fpc/3.1.1/PROCESS.PP... not found
(1) Unitsearch: /usr/local/lib/fpc/3.1.1/process.pas
Searching file /usr/local/lib/fpc/3.1.1/process.pas... not found
Searching file /usr/local/lib/fpc/3.1.1/PROCESS.PAS... not found
/media/odroid/10e421d6-9d3e-4a3e-9281-fb50d1bd13e1/Apps/lazarus/packager/registration/registerfcl.pas(45,22) 
Fatal: (10022) Can't find unit process used by RegisterFCL

Searching file registerfcl.pas... found
Fatal: (1018) Compilation aborted
make[1]: *** [fcllaz.ppu] Error 1
make[1]: Leaving directory 
`/media/odroid/10e421d6-9d3e-4a3e-9281-fb50d1bd13e1/Apps/lazarus/packager/registration'

make: *** [registration] Error 2

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus