jpluimers / GExperts

Synced every now and then from git svn clone https://svn.code.sf.net/p/gexperts/code/trunk; Syncing steps: first time `git svn clone https://svn.code.sf.net/p/gexperts/code/trunk GExperts.git-svn`, then `git remote add origin https://github.com/jpluimers/GExperts.git` and `git push origin master`, then each additional time from inside the `GExperts.git-svn` directory: `git svn fetch` followed by `git svn rebase` and `git push origin`
https://blog.dummzeuch.de/gexperts
5 stars 1 forks source link

PeInformation does not build in Delphi 2007, likely of a search path problem. #19

Open jpluimers opened 5 years ago

jpluimers commented 5 years ago

The below error is likely because the units are missing on the search path.

If it is caused by depending on the global library path, then the fix is likely in https://github.com/jpluimers/Conferences/blob/master/2015/20151020-DAPUG-Denmark-Nyborg-Hotel-Hesselet/20151020-Build-process-automation/Continua-CI.md#specify-the-delphilibrarypath-in-msbuild

V:\GExperts\Projects\StandAlone\PeInformation>__Build_Project.cmd
2007
DelphiPath: "C:\Program Files (x86)\CodeGear\RAD Studio\5.0\"
Setting environment for using CodeGear RAD Studio tools
Microsoft (R) Build Engine Version 2.0.50727.8007
[Microsoft .NET Framework, Version 2.0.50727.8800]
Copyright (C) Microsoft Corporation 2005. All rights reserved.

Build started 11/26/2018 12:37:49 AM.
__________________________________________________
Project "V:\GExperts\Projects\StandAlone\PeInformation\GExpertsPeInformation.dproj" (rebuild target(s)):

Target CoreCompile:
    C:\Program Files (x86)\CodeGear\RAD Studio\5.0\bin\dcc32.exe -B -DRELEASE -E..\..\..\binaries -K500000 --description:"GExperts Grep" -N0.\dcu -NH.\dcu -NO.\dcu -Q --no-config -$D- -$J+ -$L- -$T+ -
$Y- -W-SYMBOL_PLATFORM -W-UNIT_PLATFORM   GExpertsPeInformation.dpr
    CodeGear Delphi for Win32 compiler version 18.5
    Copyright (c) 1983,2007 CodeGear

    C:\Windows\Microsoft.NET\Framework\v2.0.50727\Borland.Delphi.Targets(113,3): error : GExpertsPeInformation.dpr(1) Fatal: F1027 Unit not found: 'System.pas' or binary equivalents (.dcu)
    GExpertsPeInformation.dpr(1) Fatal: F1027 Unit not found: 'System.pas' or binary equivalents (.dcu)
Done building target "CoreCompile" in project "GExpertsPeInformation.dproj" -- FAILED.

Done building project "GExpertsPeInformation.dproj" -- FAILED.

Build FAILED.
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Borland.Delphi.Targets(113,3): error : GExpertsPeInformation.dpr(1) Fatal: F1027 Unit not found: 'System.pas' or binary equivalents (.dcu)
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.73
done building GExpertsPeInformation.dproj
Press any key to continue . . .
jpluimers commented 5 years ago

This was caused by doBuildProject.cmd which assumes that the IDE has been run at least once, creating an EnvOptions.proj.

When adding the non-user subset of these options $(BDS)\lib;$(BDSUSERDIR)\Imports;$(BDS)\Imports;$(BDS)\Lib\Indy10;$(BDSCOMMONDIR)\Dcp;$(BDS)\RaveReports\Lib as the Win32LibraryPath environment variable a Delphi 2007 issue pops up where part of the path gets a $ prepended.

Fixed that by having the $(BDS)\lib entry in Win32LibraryPath twice: crude but workable.

jpluimers commented 5 years ago

SVN patch https://gist.github.com/jpluimers/5b89b65e8e7684401d36e68dd681d955

jpluimers commented 5 years ago

https://sourceforge.net/p/gexperts/bugs/100/