저는 Delphi를 매우 새로 도입했습니다. 내가 명령 줄을 사용하여 내 프로젝트의 패키지 중 하나를 컴파일하려고하고 난 다음 배치 파일커맨드 라인을 사용하여 패키지를 컴파일하는 방법
BuildAll.bat
call rsvars.bat
set COMPILER=%BDS%\bin\DCC32.EXE
echo Compiler: %COMPILER%
echo.
MD "%CURRENT_DIR%\..\bin"
MD "%CURRENT_DIR%\..\bin\bpl"
MD "%CURRENT_DIR%\..\bin\dcu"
cd %CURRENT_DIR%\..\bin\bpl
del *.bpl /q
del *.dcp /q
del *.drc /q
del *.map /q
cd %CURRENT_DIR%\%VCLFOLDER%\RemObjects SDK
del wo3p_03_DXE.* /s/q
:Build_CompatLib
echo ...Building CompatLib...
echo.
cd %CURRENT_DIR%\%VCLFOLDER%
call BuildCompatLib.bat
:Build_DevExpress_Old
echo ...Building DevExpress...
echo.
cd %CURRENT_DIR%\%VCLFOLDER%
call BuildDevExpress.bat old
을 사용하여 다음과 같은 오류
dxmdaset.pas Fatal:F1026 File not found: CompatLib_DXE.dcp
무엇입니까 BuildCompatLib.bat
@echo off
if "%COMPILER%" == "" goto no_compiler
echo Building ComaptLib Component Library:
set COMPILER_OPTIONS=%2 %3 %4 %5 %6 %7 %8 %9
set COMAPTLIB_ROOT=%CD%\Compatibility
if not "%2" == "" echo You specified these dcc32 options: %COMPILER_OPTIONS%
if "%2" == "" echo Recreating all DCUs then linking td32 info and writing a detailed
map file.
if "%2" == "" set COMPILER_OPTIONS=-q -b -gd -v
echo.
:CompatLib
cd %COMAPTLIB_ROOT%
echo Compiling CompatLib_DXE %COMPILER_OPTIONS%
echo.
"%COMPILER%" CompatLib_DXE.dpk %COMPILER_OPTIONS%
if ERRORLEVEL 1 goto error
echo.
:end_ComaptLib
echo no errors in building CompatLib packages
echo.
echo.
goto end
:error
echo.
echo ERROR! building CompatLib packages: %~f0
echo.
pause
:end
dcldxdms_dxe.dpk
를 컴파일하는 동안
BuildDevExpress.bat
@echo off
rem Compiler defined in calling batch file
if "%COMPILER%" == "" goto no_compiler
echo Building DevExpress Component Libraries:
set COMPILER_OPTIONS=%2 %3 %4 %5 %6 %7 %8 %9
set DEVEXPRESS_ROOT=%CD%
if not "%2" == "" echo You specified these dcc32 options: %COMPILER_OPTIONS%
if "%2" == "" echo Recreating all DCUs then linking td32 info and writing a detailed map file.
if "%2" == "" set COMPILER_OPTIONS=-q -b -gd -v
echo.
:DevExpressCommon
:DevExpressMemData
set PKG_LOCATION=DevExpress\ExpressMemData\Delphi 7\Sources
rem set PKG_LOCATION=DevExpress New\ExpressMemData\Packages
cd %DEVEXPRESS_ROOT%\%PKG_LOCATION%
echo Compiling dxmds_DXE.dpk %COMPILER_OPTIONS%
echo.
"%COMPILER%" dxmds_DXE.dpk %COMPILER_OPTIONS%
echo Compiling dcldxmds_DXE.dpk %COMPILER_OPTIONS%
echo.
"%COMPILER%" dcldxmds_DXE.dpk %COMPILER_OPTIONS%
if ERRORLEVEL 1 goto error
cd %DEVEXPRESS_ROOT%
echo.
나는 오류를 얻었다. 이전에 컴파일되었지만 찾을 수 없었던 실제로 compatlib_dxe.dcp
을 찾고 있습니다.
더 큰 그림으로 업데이트 할 수 있습니까? –
질문을 게시하기 전에 미리보십시오. 이 작업을 수행했다면 이미지가 방금 공간의 낭비 였음을 알았을 것입니다. 그리고 최소한 유용 할 수 있도록 약간자를 수있었습니다. :-) 또한,'CompatLib_DEX.dcp' 파일과'.dcu' 파일이'Delphi 7 \ Bin' 폴더에 있다면, 여러분은 구성 요소를 심하게 설치했기 때문에 델파이 설치 근처에 있으면 안됩니다 예배 규칙서. –
@KenWhite : 이미지 죄송합니다. CompatLib_DEX.dcp는 내 D : \ Bin에있는 내 dephi7 \ bin 폴더에 없으며 사용하는 명령 줄 스위치로 내 질문을 업데이트했습니다. – Jeeva