[fpc-devel] 'fpmake install' should do what?

Graeme Geldenhuys graemeg.lists at gmail.com
Fri Dec 5 07:55:43 CET 2008


On Thu, Dec 4, 2008 at 6:02 PM, Peter Vreman <peter at freepascal.org> 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 settings at all.



-- 
Regards,
  - Graeme -


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



More information about the fpc-devel mailing list