[fpc-devel] Error building branch targetandroid

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Thu Sep 13 16:35:23 CEST 2012


Ok, so that error was fixed, but now it just fails elsewhere further down =(

In Windows I try to build targetandroid with this batch script:

SET PATH=;C:\Programas\lazarus31_fpc260\fpc\2.6.0\bin\i386-win32;C:\Programas\android-ndk-r8\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bin
make crossinstall CPU_TARGET=arm OS_TARGET=android OPT="-dFPC_ARMEL"
CROSSOPT="-CpARMv6 -CfSoft"
CROSSBINDIR=C:\Programas\android-ndk-r8\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bin\
BINUTILSPREFIX=arm-linux-androideabi- INSTALL_PREFIX=output
pause

And get this error:

make[2]: Leaving directory `D:/targetandroid'
make packages_all FPC=D:/targetandroid/compiler/ppcrossarm.exe RELEASE=1
make[2]: Entering directory `D:/targetandroid'
make -C packages all
make[3]: Entering directory `D:/targetandroid/packages'
make -C fpmkunit bootstrap
make[4]: Entering directory `D:/targetandroid/packages/fpmkunit'
D:/targetandroid/compiler/ppc.exe src/fpmkunit.pp -n -FuD:/targetandroid/rtl/uni
ts/i386-win32 -FuD:/targetandroid/packages/paszlib -FuD:/targetandroid/packages/
fcl-process -FuD:/targetandroid/packages/hash -FUunits_bs/i386-win32 -Fu../paszl
ib/src -Fu../hash/src -Fi../paszlib/src  -Fi../fcl-process/src/win -Fu../fcl-pro
cess/src -Fi../fcl-process/src/win32 -Fi../fcl-process/src/dummy
make[4]: Leaving directory `D:/targetandroid/packages/fpmkunit'
D:/targetandroid/compiler/ppc.exe fpmake.pp -n -FuD:/targetandroid/packages/fpmk
unit/units_bs/i386-win32 -FuD:/targetandroid/rtl/units/i386-win32
.\fpmake.exe compile --localunitdir=.. --os=android --cpu=arm -o -Tandroid -o -P
arm -o -XParm-linux-androideabi- -o -Xr -o -Ur -o -Xs -o -O2 -o -n -o -FuD:/targ
etandroid/rtl/units/arm-android -o -FDC:\Programas\android-ndk-r8\toolchains\arm
-linux-androideabi-4.4.3\prebuilt\windows\bin\ -o -dFPC_ARMEL -o -darm -o -dRELE
ASE -o -CpARMv6 -o -CfSoft --compiler=D:/targetandroid/compiler/ppcrossarm.exe -
bu
Invalid command-line argument at position 25: -dFPC_ARMEL
Usage: D:\targetandroid\packages\fpmake.exe command [options]
Where command is one of the following:
 compile      Compile all units in the package(s).
 build        Build all units in the package(s).
 install      Install all units in the package(s).
 clean        Clean (remove) all units in the package(s).
 archive      Create archive (zip) with all units in the package(s).
 manifest     Create a manifest suitable for import in repository.
Where options is one or more of the following:
 -h --help             This message.
 -l --list-commands    list commands instead of actually executing them.
 -n --nofpccfg         Compiler will not use fpc.cfg
 -v --verbose          Be verbose when working.
 -e --useenv           Use environment to pass options to compiler.
 -ie --installexamples  Install the example-sources.
 -bu --buildunit        Compile package in Build-unit mode.
 -C --cpu=Value            Compile for indicated CPU.
 -O --os=Value             Compile for indicated OS
 -t --target=Value         Compile for indicated target
 -P --prefix=Value         Use indicated prefix directory for all commands.
 -B --baseinstalldir=Value Use indicated directory as base install dir.
 -UL --localunitdir=Value   Use indicated directory as local (user) unit dir.
 -UG --globalunitdir=Value  Use indicated directory as global unit dir.
 -U --unitinstalldir=Value Use indicated directory to install units into.
 -r --compiler=Value       Use indicated binary as compiler
 -f --config=Value         Use indicated config file when compiling.
 -o --options=Value        Pass extra options to the compiler.
 -io --ignoreinvalidoption=Value Ignore further invalid options.
 -d --doc-folder=Value     Use indicated directory as fpdoc output folder.
 -T --threads=Value        Enable the indicated amount of worker threads.

make[3]: *** [all] Error 1
make[3]: Leaving directory `D:/targetandroid/packages'
make[2]: *** [packages_all] Error 2
make[2]: Leaving directory `D:/targetandroid'
make[1]: *** [build-stamp.arm-android] Error 2


-- 
Felipe Monteiro de Carvalho



More information about the fpc-devel mailing list