0

我正在尝试使用命令行运行程序在 TeamCity ( http://www.jetbrains.com/teamcity/ ) 中编译一个 Delphi 项目。对于每个项目,我都会收到“文件名太长”错误。项目在 Delphi IDE 中成功编译。我什至尝试从 buildagent 目录构建项目(在本例中为:)C:\TeamCity\buildAgent\work\cbe5a74bfd8678cb\iqwin_2013\Iqworkflow,它也在那里编译。这个特定的命令行构建过去也曾在不同的环境中工作过。

错误:

[15:18:45]Step 2/50: iqworkflow (Command Line)
[15:18:45][Step 2/50] Starting: C:\TeamCity\buildAgent\temp\agentTmp\custom_script5211313096540988416.cmd
[15:18:45][Step 2/50] in directory: C:\TeamCity\buildAgent\work\cbe5a74bfd8678cb\iqwin_2013\Iqworkflow
[15:18:45][Step 2/50] Embarcadero Delphi for Win32 compiler version 22.0
[15:18:45][Step 2/50] Copyright (c) 1983,2010 Embarcadero Technologies, Inc.
[15:18:45][Step 2/50] Error: E2288 File name too long (exceeds 260 characters)
[15:18:45][Step 2/50] Error: E2288 File name too long (exceeds 260 characters)
[15:18:45][Step 2/50] Error: E2288 File name too long (exceeds 260 characters)
[15:18:45][Step 2/50] Error: E2288 File name too long (exceeds 260 characters)
[15:18:45][Step 2/50] IQWorkflow.dpr(1) Fatal: F1027 Unit not found: 'System.pas' or binary equivalents (.dcu)
[15:18:45][Step 2/50] Process exited with code 1
[15:18:45][Step 2/50] Step iqworkflow (Command Line) failed
  • System.pas 可以在C:\Program Files (x86)\Embarcadero\RAD Studio\8.0\source\rtl\sys
4

1 回答 1

1

问题最终成为我的库路径参数中的一个特定路径(大约 50 个,所以它不是立即明显),其中有一个空格,但不是双引号。

损坏: C:\test 文件夹\lib

修正: “C:\test 文件夹\lib”

于 2013-11-04T18:10:17.450 回答