Delphi 2009 using MSBuild in RAD Studio Command Prompt F1026 File not found

一个人想着一个人 提交于 2020-01-04 02:11:52

问题


I have been struggling to get the MSBuild to successfully build my .dproj file for the last few days on a build machine.

First, I needed the EnvOptions.proj file from the developer's machine, which got me clear of the missing system.pas file, but now I am getting a compile error for a missing .dcu

C:\Program Files\CodeGear\RAD Studio\6.0\Bin\CodeGear.Delphi.Targets(123,3): error : myproject.dpr(17) Fatal: F1026 File not found: 'mymissing.dcu'

Now the path to "mymissing.dcu" is included in the Win32BrowsingPath of the EnvOptions.proj file, and I tried adding the path to the command prompt PATH which also does not work.

If I copy the .dcu directly into the working directory it can be found - but this is not much of a long term solution, as there are many other .dcu files that I would need to copy into the working directory.

Any ideas?


回答1:


Try <DCC_UnitSearchPath> in your .dproj file.




回答2:


Make sure that all the environment variables referenced in library search paths, e.g. $(BDS), are actually present in the environment of the command prompt.



来源:https://stackoverflow.com/questions/2095231/delphi-2009-using-msbuild-in-rad-studio-command-prompt-f1026-file-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!