Iotivity scons构建错误

时间:2016-08-03 18:50:21

标签: android python scons iotivity

这是我的构建环境

  • OS:OS X El Capitan 10.11.5
  • Android SDK构建工具:24.0.1
  • Android NDK:12
  • Scons版本:2.5.0

这是构建命令

  • SCons TARGET_OS = android TARGET_ARCH = armeabi-v7a TARGET_TRANSPORT = ALL RELEASE = 1 SECURED = 0 ANDROID_HOME = / Users / KangSengGil / Library / Android / sdk ANDROID_NDK = / Users / KangSengGil / Library / Android / sdk / ndk-bundle ANDROID_GRADLE = /库/ gradle这个-2.14.1 /斌/ gradle这个 scons:阅读SConscript文件......

要获取.aar文件,我必须构建Iotivity项目。 但Scons构建给我一些错误。 我不知道我是如何解决这个问题的。请回答这个问题!! 谢谢

下面显示错误

public func loginAsync(pinCode: String?, apiPath: String?) -> Promise<LoginResult>{
    return Promise { fullfil, reject in
        let params = [
            "Pin": pinCode!
        ]

        Alamofire.request(.POST, "\(baseUrl!)/\(apiPath!)", parameters: params).responseObject{(response: Response<LoginResult, NSError>) in
            let serverResponse = response.response

            if serverResponse!.statusCode != 200 {
                reject(NSError(domain: "http", code: serverResponse!.statusCode, userInfo: nil))
            }

            if let loginResult = response.result.value {
                fullfil(loginResult)
            }
            dispatch_group_leave(yourClass.serviceGroup)
        }
    }
}

2 个答案:

答案 0 :(得分:0)

看起来像拼写错误 - 请确认。 找不到SCons命令。 也许用'scons'?

答案 1 :(得分:0)

试试吧

编辑&lt; iotivity_root&gt; / extlibs / boost / SConscript

befor

if host_os == 'linux2' :
    boost_bootstrap = boost_base_name+os.sep+'bootstrap.sh'
else :
    msg="Host platform (%s) is currently not supported for boost builds" % host_os
    raise SCons.Errors.EnvironmentError(msg)

if host_os == 'linux2' :
    boost_bootstrap = boost_base_name+os.sep+'bootstrap.sh'
else :
    if host_os == 'darwin' :
        boost_bootstrap = ''
    else :
        msg="Host platform (%s) is currently not supported for boost builds" % host_os
        raise SCons.Errors.EnvironmentError(msg)