Sign in Join

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

Mailing lists / fpc-devel / 2008-12

'fpmake install' should do what?

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

While trying to only recompile and install the 'fcl-fpcunit' directory, I played around with the fpmake build system. I'm using FPC 2.2.3.

My directory layout is as follows:

/opt/fpc_2.2.3/
^---- install location for: make install
INSTALL_PREFIX=/opt/fpc_2.2.3

/opt/fpc_2.2.3/src
^---- svn checkout of 2.2.3

The following was tried while inside: /opt/fpc_2.2.3/src/packages/fcl-fpcunit/

* I can compile fpmake.pp without problems.
* I can build the source code without problems using: ./fpmake build -UG /opt/fpc_2.2.3/lib/fpc/2.2.3/units/i386-linux/
* I can archive the source code without problems using ./fpmake archive

What is the 'install' option supposed to do??? Where does it install do?

I ran the following and got no output. No errors no nothing. It also didn't install to the /opt/fpc_2.2.3/lib/fpc/2.2.3/units/i386-linux/fcl-fpcunit/ directory
as I hoped for.

./fpmake install -B /opt/fpc_2.2.3 -UG
/opt/fpc_2.2.3/lib/fpc/2.2.3/units/i386-linux/

I thought the -B option might need to be the same as: make install INSTALL_PREFIX=/opt/fpc_2.2.3

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Peter Vreman
Show quoted text 36 lines
Hi, While trying to only recompile and install the 'fcl-fpcunit' directory, I played around with the fpmake build system. I'm using FPC 2.2.3. My directory layout is as follows: /opt/fpc_2.2.3/ ^---- install location for: make install INSTALL_PREFIX=/opt/fpc_2.2.3 /opt/fpc_2.2.3/src ^---- svn checkout of 2.2.3 The following was tried while inside: /opt/fpc_2.2.3/src/packages/fcl-fpcunit/ * I can compile fpmake.pp without problems. * I can build the source code without problems using: ./fpmake build -UG /opt/fpc_2.2.3/lib/fpc/2.2.3/units/i386-linux/ * I can archive the source code without problems using ./fpmake archive What is the 'install' option supposed to do??? Where does it install do? I ran the following and got no output. No errors no nothing. It also didn't install to the /opt/fpc_2.2.3/lib/fpc/2.2.3/units/i386-linux/fcl-fpcunit/ directory as I hoped for. ./fpmake install -B /opt/fpc_2.2.3 -UG /opt/fpc_2.2.3/lib/fpc/2.2.3/units/i386-linux/ I thought the -B option might need to be the same as: make install INSTALL_PREFIX=/opt/fpc_2.2.3

'fpmake install' should do the same as 'make install' copy the locally build units to their final destination.

To see what fpmake does add --verbose or --debug.

for 'fpmake build' you should not need to specify the final output dir. 'fpmake install' will move the files.

Peter

Reply by email

Graeme Geldenhuys
to Peter Vreman
Peter Vreman wrote
To see what fpmake does add --verbose or --debug.

ah, the -v option showed where the files were copied to... Needless to say, the wrong location, as shown below.

---------------------------------
$ ./fpmake install -v -B /opt/fpc_2.2.3 -UG
/opt/fpc_2.2.3/lib/fpc/2.2.3/units/i386-linux/
Installing package fcl-fpcunit
Copying file "units/i386-linux/digesttestreport.o" to "/opt/fpc_2.2.3/units/i386-linux/fcl-fpcunit"

---------------------------------

I had to specify the following, to get it to work correctly.

./fpmake install -v -B /opt/fpc_2.2.3/lib/fpc/2.2.3/ -UG /opt/fpc_2.2.3/lib/fpc/2.2.3/units/i386-linux/

for 'fpmake build' you should not need to specify the final output dir. 'fpmake install' will move the files.

I had to, otherwise I get the following error.

----------------------------------
$ ./fpmake install -v -UG /opt/fpc_2.2.3/lib/fpc/2.2.3/units/i386-linux/ Installing package fcl-fpcunit
The installer encountered the following error:
Failed to create directory
"/usr/local/lib/fpc/2.2.3/units/i386-linux/fcl-fpcunit" ----------------------------------

This brings me to another question. Why must I keep specifying the -UG <path>?? If i don't I keep getting some error about can't finding the RTL dependency units. I can compile a simple program by simply using 'fpc someprogram.pas' from any directory location. FPC is in my PATH and fpc.cfg has the correctly unit paths setup.

My $HOME/.fpc.cfg already has the correct unit path location, but 'fpmake' doesn't seem to read or use the fpc.cfg
Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Peter Vreman
Show quoted text 45 lines
On Thu, Dec 4, 2008 at 6:02 PM, Peter Vreman wrote: > > To see what fpmake does add --verbose or --debug. ah, the -v option showed where the files were copied to... Needless to say, the wrong location, as shown below. --------------------------------- $ ./fpmake install -v -B /opt/fpc_2.2.3 -UG /opt/fpc_2.2.3/lib/fpc/2.2.3/units/i386-linux/ Installing package fcl-fpcunit Copying file "units/i386-linux/digesttestreport.o" to "/opt/fpc_2.2.3/units/i386-linux/fcl-fpcunit" --------------------------------- I had to specify the following, to get it to work correctly. ./fpmake install -v -B /opt/fpc_2.2.3/lib/fpc/2.2.3/ -UG /opt/fpc_2.2.3/lib/fpc/2.2.3/units/i386-linux/ > > for 'fpmake build' you should not need to specify the final output dir. 'fpmake install' will > move > the files. I had to, otherwise I get the following error. ---------------------------------- $ ./fpmake install -v -UG /opt/fpc_2.2.3/lib/fpc/2.2.3/units/i386-linux/ Installing package fcl-fpcunit The installer encountered the following error: Failed to create directory "/usr/local/lib/fpc/2.2.3/units/i386-linux/fcl-fpcunit" ---------------------------------- This brings me to another question. Why must I keep specifying the -UG <path>?? If i don't I keep getting some error about can't finding the RTL dependency units. I can compile a simple program by simply using 'fpc someprogram.pas' from any directory location. FPC is in my PATH and fpc.cfg has the correctly unit paths setup. My $HOME/.fpc.cfg already has the correct unit path location, but 'fpmake' doesn't seem to read or use the fpc.cfg fpmake does not use fpc.cfg. It also can't read it because the configuration in the

fpc.cfg depends on (internal) compiler defines.

Peter

Reply by email