最近,我在iOS和OS X上做了一些AllJoyn开发。当我使用命令行运行alljoyn_darwin.xcodeproj的xcodebuild时,如下所示:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project alljoyn_darwin.xcodeproj -scheme alljoyn_core_ios -sdk iphoneos -configuration Debug PLATFORM_NAME=iphoneos我得到了一个类似这样的错误:
export variant=normal
/opt/local/bin/scons -u OS=darwin CPU=arm BR=on BINDINGS=cpp SERVICES= WS=off VARIANT=Debug --
scons: *** No SConstruct file found.
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/scons-2.3.4/SCons/Script/Main.py", line 920, in _main
Command /opt/local/bin/scons failed with exit code 2
** BUILD FAILED **
The following build commands failed:
ExternalBuildToolExecution alljoyn_core_ios
(1 failure)我真的不知道为什么我会得到这个,我遵循了官方网站上的所有说明--从源代码构建,我确信我设置了正确的OPENSSL_ROOT路径。我使用Macport安装了scons,并且安装正确。我尝试双击finder中的alljoyn_darwin.xcodeproj,但得到了相同的错误。
scons: *** No SConstruct file found.
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/scons-2.3.4/SCons/Script/Main.py", line 920, in _main
Command /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/scons-2.3.4 failed with exit code 2所以我被困在这里了。但问题是,我可以在iOS的iPhone6模拟器中成功地运行iPhone6的sdk_14.12中的AllChatz示例。openssl版本是1.0.2,我尝试为alljoyn sdks 14.06和14.12构建这两个版本。出现相同的错误。我不知道这是否相关。这里有人能帮上忙吗?非常感谢。
发布于 2015-02-21 19:27:40
问题是scons找不到根级别的SConstruct脚本,这可能没有多大帮助,正如您在错误中看到的那样:)
当您使用"-u“时,它会告诉scons查找根级别SConstruct脚本的目录结构。
SCons必须从项目目录结构中的执行。查找根级别的SConstruct,并确保从项目目录结构中执行scons。
https://stackoverflow.com/questions/28624381
复制相似问题