divinusproject
Как лох отвечу - не знаю!
Скачал дистр Лазаруса, где, по заверениям, всё уже стоит. Есть arm-wince-binutils, есть сам Лазарус, поставлен svn.
Да доставшемся мне дистре есть бат-файл, насколько я понимаю - для сборки Лазаруса.
Вот сам батник:
- Код: Выделить всё
@echo off
set x_lazdir=C:\Apps\Lazarus
set x_armdir=C:\Apps\arm
set x_fpcsvnrelease=-r 3873
cls
echo ------------------------------------------------------------------------
echo arm-wince installation for FreePascal and Lazarus
echo ------------------------------------------------------------------------
echo You need to prepare the following:
echo 1. Install the arm-binutils into %x_armdir%
echo ftp://ftp.freepascal.org/pub/fpc/contrib/cross/arm-wince-binutils.zip
echo 2. Install the latest Lazarus daily into %x_lazdir%
echo http://www.hu.freepascal.org/lazarus/
echo 3. Install the latest FreePascal snapshot into %x_lazdir%\pp
echo (NOT inside another fpc subfolder as the archive structure suggests)
echo ftp://ftp.freepascal.org/pub/fpc/snapshot/v21/source/fpc.zip
echo OR you need to have svn installed and available.
echo ------------------------------------------------------------------------
if NOT EXIST %x_armdir%\arm-wince-ld.exe goto errorarmmissing
if NOT EXIST %x_lazdir%\startlazarus.exe goto errorlazarusmissing
if DEFINED APR_ICONV_PATH GOTO nosourcenecessary
if NOT EXIST %x_lazdir%\pp\compiler\cclasses.pas goto errorfpcmissing
:nosourcenecessary
if NOT DEFINED APR_ICONV_PATH GOTO nosvndownload
echo ------------------------------------------------------------------------
echo Going to download FPC from SVN now... if this version does not work,
echo please edit this file and change x_fpcsvnrelease accordingly.
echo ------------------------------------------------------------------------
cd %x_lazdir%
svn checkout %x_fpcsvnrelease% http://svn.freepascal.org/svn/fpc/trunk pp
; svn update .
:nosvndownload
pause
echo The necessary files were found, you may now continue.
pause
echo ------------------------------------------------------------------------
echo The cross compiler will now be created...
echo ------------------------------------------------------------------------
C:
cd %x_lazdir%\pp\compiler
set path=%x_armdir%;%x_lazdir%\pp\bin\i386-win32;%x_lazdir%\pp\bin\arm-wince;%APR_ICONV_PATH%
make cycle CPU_TARGET=arm OS_TARGET=wince
echo ------------------------------------------------------------------------
echo If you don't see any error messages, you may now continue.
echo ------------------------------------------------------------------------
pause
echo Creating the folder %x_lazdir%\pp\bin\arm-wince ...
mkdir %x_lazdir%\pp\bin\arm-wince
echo Copying %x_lazdir%\pp\compiler\ppcrossarm.exe
echo to %x_lazdir%\pp\bin\arm-wince\ ...
copy %x_lazdir%\pp\compiler\ppcrossarm.exe %x_lazdir%\pp\bin\arm-wince\
echo Creating the folder %x_lazdir%\pp\units\arm-wince\rtl ...
mkdir %x_lazdir%\pp\units\arm-wince\rtl
echo Copying %x_lazdir%\pp\rtl\units\arm-wince\*.*
echo to %x_lazdir%\pp\units\arm-wince\rtl\ ...
copy %x_lazdir%\pp\rtl\units\arm-wince\*.* %x_lazdir%\pp\units\arm-wince\rtl\
echo Creating %x_lazdir%\pp\bin\arm-wince\fpc.cfg ...
echo -Twince > %x_lazdir%\pp\bin\arm-wince\fpc.cfg
echo -Fu%x_lazdir%\pp\units\arm-wince >> %x_lazdir%\pp\bin\arm-wince\fpc.cfg
echo -Fu%x_lazdir%\pp\units\arm-wince\* >> %x_lazdir%\pp\bin\arm-wince\fpc.cfg
echo -Fu%x_lazdir%\pp\units\arm-wince\rtl >> %x_lazdir%\pp\bin\arm-wince\fpc.cfg
echo -XParm-wince- >> %x_lazdir%\pp\bin\arm-wince\fpc.cfg
echo -FD%x_armdir% >> %x_lazdir%\pp\bin\arm-wince\fpc.cfg
echo -FD%x_lazdir%\pp\bin\arm-wince >> %x_lazdir%\pp\bin\arm-wince\fpc.cfg
echo ------------------------------------------------------------------------
echo The FCL will now be compiled...
echo ------------------------------------------------------------------------
pause
cd %x_lazdir%\pp\fcl
make CPU_TARGET=arm OS_TARGET=wince PP=ppcrossarm.exe
echo Creating the folder %x_lazdir%\pp\units\arm-wince\fcl ...
echo Copying %x_lazdir%\pp\fcl\units\arm-wince\*.*
echo to %x_lazdir%\pp\units\arm-wince\fcl\ ...
mkdir %x_lazdir%\pp\units\arm-wince\fcl
copy %x_lazdir%\pp\fcl\units\arm-wince\*.* %x_lazdir%\pp\units\arm-wince\fcl\
echo ------------------------------------------------------------------------
echo The LCL will now be compiled...
echo ------------------------------------------------------------------------
pause
cd %x_lazdir%
make lcl LCL_PLATFORM=wince PP=ppcrossarm.exe CPU_TARGET=arm OS_TARGET=wince
echo ------------------------------------------------------------------------
echo Congratulations!
echo ------------------------------------------------------------------------
goto EOF
;
:errorarmmissing
echo ------------------------------------------------------------------------
echo The ARM files are missing in %x_armdir%!
echo Please install them, then restart this batch file.
echo .
echo You can download these files from
echo ftp://ftp.freepascal.org/pub/fpc/contrib/cross/arm-wince-binutils.zip
echo .
echo If you want to use different paths, please open this file in notepad
echo and change the second and third line according to your wishes.
echo ------------------------------------------------------------------------
goto :EOF
;
:errorlazarusmissing
echo ------------------------------------------------------------------------
echo The Lazarus installation is missing in %x_lazdir%!
echo Please install a Lazarus daily, then restart this batch file.
echo .
echo You can download it from
echo http://www.hu.freepascal.org/lazarus/
echo .
echo If you want to use different paths, please open this file in notepad
echo and change the second and third line according to your wishes.
echo ------------------------------------------------------------------------
goto :EOF
;
:errorfpcmissing
echo ------------------------------------------------------------------------
echo The FPC files are missing in %x_lazdir%\pp\!
echo Please install them, then restart this batch file.
echo Make sure you don't have them in the subfolder fpc, but directly in pp!
echo .
echo You can download these files from
echo ftp://ftp.freepascal.org/pub/fpc/snapshot/v21/source/fpc.zip
echo .
echo If you want to use different paths, please open this file in notepad
echo and change the second and third line according to your wishes.
echo ------------------------------------------------------------------------
goto :EOF
;
:EOF
cd %x_lazdir%
set x_lazdir=
set x_armdir=
set x_fpcsvnrelease=
Если запускать этот бат-файл, то через 5-10 мин. работы команды
- Код: Выделить всё
make cycle CPU_TARGET=arm OS_TARGET=wince
(в зависимости от загруженности компа), возникает длинный список ошибок, начало которого я привёл в первом сообщении.
На другом форуме, где я задал тот же вопрос, дали такой ответ:
Фагот
что значит инсталляция? там просто распаковать надо, потом файлы из C:\Apps\arm в C:\Apps\lazarus\pp\bin\arm-wince
и Проект-настройки компилятора-Код поставить
для какой ос - wince
для ЦП - arm
Так тоже попробовал. Однако, в обоих случаях при компиляции проекта выходит сообщение:
The system.ppu was not found in the FPC directory. Make sure fpc is installed correctly and the fpc.cfg points to the rigths directory.
Хотя system.ppu действительно есть и в fpc.cfg путь к нему указан верно...
Вот, теперь помогите, если, конечно,
, в моей проблеме можно разобраться...