Android问题-DelphiXE5编义时提示找不到“连接器(arm-linux-androideabi-ld.exe)"

问题现象:DelphiXE5编义时提示找不到“连接器(arm-linux-androideabi-ld.exe)"

问题提示:
Checking project dependencies...
Compiling Project1.dproj (Debug, Android)
dcc command line for "Project1.dpr"
d:\软件\delphixe5\program files\embarcadero\rad studio\12.0\bin\dccaarm.exe -$O- --no-config -M -Q -TX.so
-AGenerics.Collections=System.Generics.Collections;Generics.Defaults=System.Generics.Defaults;WinTypes=Winapi.Windows;WinProcs=Winapi.Windows;
DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE -DDEBUG -E.\Android\Debug -I"d:\软件\delphixe5\program files\embarcadero\rad studio\12.0\lib\Android\debug";
"d:\软件\delphixe5\program files\embarcadero\rad studio\12.0\lib\Android\Release" -LE"C:\Documents and Settings\All Users\Documents\RAD
Studio\12.0\Bpl\Android" -LN"C:\Documents and Settings\All Users\Documents\RAD Studio\12.0\Dcp\Android" -NU.\Android\Debug -NSSystem;Xml;Data;
Datasnap;Web;Soap; -O"d:\软件\delphixe5\program files\embarcadero\rad studio\12.0\lib\Android\Release" -R"d:\软件\delphixe5\program files\embarcadero\rad
studio\12.0\lib\Android\Release" -U"d:\软件\delphixe5\program files\embarcadero\rad studio\12.0\lib\Android\debug";"d:\软件\delphixe5\program
files\embarcadero\rad studio\12.0\lib\Android\Release" --libpath:"D:\软件\delphiXE5\Documents and Settings\All Users\Documents\RAD
Studio\12.0\PlatformSDKs\android-ndk-r8e\platforms\android-14\arch-arm\usr\lib" --linker:"D:\软件\delphiXE5\Documents and Settings\All
Users\Documents\RAD Studio\12.0\PlatformSDKs\android-ndk-r8e\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-ld.exe"
-V -VN --linker-option:" -L \"D:\软件\delphiXE5\Documents and Settings\All Users\Documents\RAD
Studio\12.0\PlatformSDKs\android-ndk-r8e\sources\cxx-stl\stlport\libs\armeabi-v7a\"" -NO.\Android\Debug Project1.dpr
[DCC Fatal Error] F1026 File not found: 'D:\软件\delphiXE5\Documents and Settings\All Users\Documents\RAD Studio\12.0\PlatformSDKs\android-ndk-r8e\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-ld.exe'
Failed
Elapsed time: 00:03:34.1

问题原因:原因是SDK放在了中文的文件夹下

问题处理:目录改为英文就OK了。

 

对Linux下的一个开源代码进行交叉译,准备移植到Android平台上。但是一直报错。 辑脚本如下: export NDKROOT="/home/bupt/android-ndk-r9d" export PREBUILT=$NDKROOT/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64 export SYSROOT=$NDKROOT/platforms/android-18/arch-arm export CC=$PREBUILT/bin/arm-linux-androideabi-gcc export LD=$PREBUILT/bin/arm-linux-androideabi-ld export AS=$PREBUILT/bin/arm-linux-androideabi-gcc export AR=$PREBUILT/bin/arm-linux-androideabi-ar export RANLIB=$PREBUILT/bin/arm-linux-androideabi-ranlib export STRIP=$PREBUILT/bin/arm-linux-androideabi-strip CFLAGS="--sysroot=$NDKROOT/platforms/android-18/arch-arm -fPIC -DX264_VERSION -DANDROID -DHAVE_PTHREAD -D__ARM_ARCH_7__ -D__ARM_ARCH_7A__ -march=armv7-a -fomit-frame-pointer -mfloat-abi=softfp -mfpu=neon -I$TOOLCHAINS_INCLUDE -I$NDKROOT/platforms/android-18/arch-arm/usr/include" export CFLAGS LDFLAGS="-Wl,-T,$PREBUILT/arm-linux-androideabi/lib/ldscripts/armelf_linux_eabi.x -Wl,-rpath-link=$NDKROOT/platforms/android-18/arch-arm/usr/lib -L$NDKROOT/platforms/android-18/arch-arm/usr/lib -nostdlib -lc -lm -ldl -lgcc" export LDFLAGS ./configure --prefix=/home/bupt/clamav/clamav-0.98.4/clamav-android --host=arm-linux-androideabi --with-openssl=/usr/lib config.log报错如下: configure:3820: /home/bupt/android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -V >&5 arm-linux-androideabi-gcc: error: unrecognized option '-V' arm-linux-androideabi-gcc: fatal error: no input files compilation terminated. configure:3831: $? = 1 configure:3820: /home/bupt/android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -qversion >&5 arm-linux-androideabi-gcc: error: unrecognized option '-qversion' arm-linux-androideabi-gcc: fatal error: no input files compilation terminated. ================================== home/bupt/android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/include-fixed/limits.h:169:61: error: no include path in which to search for limits.h configure:4461: $? = 1 但是在这个文件夹下可以到这个.h文件。 conftest.c:13:0: fatal error: assert.h: No such file or directory compilation terminated. 其他报错信息都是以上这种不到头文件等。 =========================== 命令行报错为: configure: ****** mempool support disabled (mmap not available or not usable) checking for ld used by GCC... /home/bupt/android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ld checking if the linker (/home/bupt/android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ld) is GNU ld... yes checking for shared library run path origin... done checking check.h usability... no checking check.h presence... no checking for check.h... no configure: unable to compile/link with check checking for libxml2 installation... not found configure: ****** libxml2 support unavailable checking for OpenSSL installation... configure: error: OpenSSL not found. 求解决方案!!!!!!!!!!!!!!
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页