zoukankan      html  css  js  c++  java
  • 64bit ubuntu14.04编译PlatinumKit出现的arm-linux-androideabi-g++: not found错误解决方法

    编译命令:scons target=arm-android-linux build_config=Release

    出现错误:

    scons: Reading SConscript files ...
    ********** Configuring Build Target = arm-android-linux / Release ********
    Building for Android: 
    ANDROID_HOST_SYSTEM = linux-x86
    ANDROID_TOOLCHAIN   = arm-linux-androideabi-4.8
    ANDROID_PLATFORM    = android-9
    ANDROID_ARCH        = arm
    scons: done reading SConscript files.
    scons: Building targets ...
    arm-linux-androideabi-g++ -o Build/Targets/arm-android-linux/Neptune/Source/Core/Neptune.o -c -fno-exceptions -fno-rtti -Wall -D_REENTRANT -O3 -I/opt/android-ndk-r9b/sources/cxx-stl/system/include --sysroot /opt/android-ndk-r9b/platforms/android-9/arch-arm -msoft-float -fpic -mthumb-interwork -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -D_REENTRANT -DNDEBUG -DNPT_CONFIG_ENABLE_LOGGING -DPLATINUM_UPNP_SPECS_STRICT -DANDROID -DNPT_CONFIG_HAVE_SYSTEM_LOG_CONFIG -DNPT_CONFIG_ENABLE_ZIP -DNPT_CONFIG_ENABLE_TLS -I/media/zangcf/works/works/anqiao/PlatinumKit/PlatinumKit-1-0-5-13_0ab854/Neptune/Source/Core -I/media/zangcf/works/works/anqiao/PlatinumKit/PlatinumKit-1-0-5-13_0ab854/Neptune/Source/Data/TLS -Igcc -I/media/zangcf/works/works/anqiao/PlatinumKit/PlatinumKit-1-0-5-13_0ab854/Neptune/ThirdParty/zlib-1.2.3 -I/media/zangcf/works/works/anqiao/PlatinumKit/PlatinumKit-1-0-5-13_0ab854/Neptune/ThirdParty/axTLS/crypto -I/media/zangcf/works/works/anqiao/PlatinumKit/PlatinumKit-1-0-5-13_0ab854/Neptune/ThirdParty/axTLS/ssl -I/media/zangcf/works/works/anqiao/PlatinumKit/PlatinumKit-1-0-5-13_0ab854/Neptune/ThirdParty/axTLS/config/Generic /media/zangcf/works/works/anqiao/PlatinumKit/PlatinumKit-1-0-5-13_0ab854/Neptune/Source/Core/Neptune.cpp
    sh: 1: arm-linux-androideabi-g++: not found
    scons: *** [Build/Targets/arm-android-linux/Neptune/Source/Core/Neptune.o] Error 127
    scons: building terminated because of errors.
    解决方法
    修改Build/Targets/arm-android-linux/Config.scons的

    PLATFORM_TO_TARGET_MAP = {
    'linux-i386' : 'linux-x86_64',
    'linux2' : 'linux-x86_64',
    'win32' : 'windows',
    'cygwin' : 'windows',
    'darwin' : 'darwin-x86'
    }

  • 相关阅读:
    算法描述》关于LIS的nlogn方法
    简单tarjan》一道裸题(BZOJ1051)(easy)
    值得一做》关于数学与递推 BZOJ1002 (BZOJ第一页计划)(normal+)
    值得一做》关于一道DP+SPFA的题 BZOJ1003 (BZOJ第一页计划) (normal-)
    图论算法》关于最大流转最短路两三事
    刷题向》图论》BZOJ1001 平面图最大流、平面图最小割、单源最短路(easy+)
    c++中结构体的使用
    c++的标准流入流出和使用例子
    小知识 ——引用
    小知识——关于数组指针和指针数组
  • 原文地址:https://www.cnblogs.com/shakin/p/4387693.html
Copyright © 2011-2022 走看看