Sign in Join

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

Mailing lists / fpc-pascal / 2012-04

[Help] fppkg on Windows

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Lars Klungseth

I get the following error when trying to install “lazmkunit” or “gecko” using fppkg.

===========================
C:\lazarus\fpc\2.6.0\bin\i386-win32>fppkg install lazmkunit An unhandled exception occurred at $004377D5 :
EProcess : Failed to execute fpc.exe -iVTPTO : 2
$004377D5
$0040F953
$00412B36
$004138D5
$00414553
$00413AE5
$0041568B
$0041E3E3
The FPC Package tool encountered the following error: [lazmkunit] Execution of FPMake build failed
===========================

FPC version = 2.6.0
Lazarus version = 0.9.30.4
Windows version = XP SP3

fppkg.cfg
===========================
[Defaults]
ConfigVersion=4
LocalRepository={AppConfigDir}
BuildDir={LocalRepository}build\
ArchivesDir={LocalRepository}archives\
CompilerConfigDir={LocalRepository}config\
RemoteMirrors=http://www.freepascal.org/repository/mirrors.xml RemoteRepository=auto
CompilerConfig=default
FPMakeCompilerConfig=default
Downloader=lnet
FPMakeOptions=--lazarusdir=C:\lazarus\
===========================

Compiler Config File
===========================
[Defaults]
ConfigVersion=4
GlobalPrefix=C:\lazarus\fpc\2.6.0\
LocalPrefix={LocalRepository}
GlobalInstallDir={GlobalPrefix}
LocalInstallDir={LocalPrefix}
Compiler=fpc.exe
OS=win32
CPU=i386
Version=2.6.0
===========================

Hope you can help me solve this problem.

Sincerely,
Lars

Lars Klungseth
to leledumbo

Hi leledumbo,

Thanks for your quick reply.

Try set a full path to the compiler driver binary (fpc.exe)

Setting the GlobalPrefix to the full path to fpc.exe, will produce the following error as the GlobalPrefix is referenced more than once.

============================
C:\lazarus\fpc\2.6.0\bin\i386-win32>fppkg install lazmkunit The FPC Package tool encountered the following error: [lazmkunit] Package hash <none> is not available
============================

or put its directory in PATH.
Lars Klungseth
to leledumbo: Try set a full path to the compiler driver binary (fpc.exe) or put its directory in PATH.…

Your second suggestion,

or put its directory (fpc.exe) in PATH.

proved to be the answer.

================================
C:\lazarus\fpc\2.6.0\bin\i386-win32>fppkg install lazmkunit Start building package lazmkunit for target i386-win32. Compiling lazmkunit.pp
[100%] Built target lazmkunit
Installation package lazmkunit for target i386-win32 succeeded ================================

Thanks for your help.
Lars