You're right. I don't have a clue why, but when I remove poNoConsole for
the TProcess it works. I attached a patch.
Unfortunately it still doesn't work. Fppkg cannot find the Makefile.fpc.
Output below.
>fppkg convertmk Makefile.fpc
Loading global configuration from "C:\pp\bin\i386-Win32\fppkg.cfg"
Loading compiler configuration from
"C:\pp\bin\i386-Win32\fppkg\config\default"
Loading packages information from "C:\pp\bin\i386-Win32\fppkg\packages.xml"
Loading local versions information from
"C:\pp\bin\i386-Win32\fppkg\versions-default.dat"
The FPC make tool encountered the following error:
Package "Makefile.fpc" not found.
I also tried giving the full path to the makefile without success.
Darius
Michael Van Canneyt wrote:
On Sat, 11 Aug 2007, Darius Blaszijk wrote:
Michael,
Thanks for explaining that, but.....
I tried to convert a sample Makefile.fpc, but I keep getting the following
error message;
fppkg convertmk Makefile.fpc
Loading global configuration from "C:\pp\bin\i386-Win32\fppkg.cfg"
Generating default compiler configuration in
"C:\pp\bin\i386-Win32\fppkg\config\default"
The FPC make tool encountered the following error:
Compiler returns invalid information, check if fpc -iV works
fpc -iV
2.3.1
I also tried to set the verbosity level higher, but I just cannot find out how
to do that. I tried anything from -va to --verbosity=all to just -v and
--verbosity. No luck.
You can't be more verbose for this. The problem is most likely that the tool
cannot execute the compiler (because it does not find it).
It tries to capture the output of fpc -iVTPTO, and it expects to receive 3 words.
If it does not, the error you get is displayed.
The error is in pkgoptions.pas, the function to read the output is in pkgglobals
pkgglobals.pp: GetCompilerInfo; The best is to see what goes wrong there...
Michael.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Index: pkgglobals.pp
===================================================================
--- pkgglobals.pp (revision 8260)
+++ pkgglobals.pp (working copy)
@@ -245,9 +245,9 @@
{$ELSE USE_SHELL}
S:=TProcess.Create(Nil);
S.Commandline:=ACompiler+' '+AOptions;
- S.Options:=[poUsePipes,poNoConsole];
- S.execute;
- Count:=s.output.read(buf,BufSize);
+ S.Options:=[poUsePipes];
+ S.Execute;
+ Count:=S.Output.Read(buf,BufSize);
S.Free;
{$ENDIF USE_SHELL}
SetLength(Result,Count);
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal