build alljoyn_darwin in Xcode 6.1.1 and get a No SConstruct file found error

asked 2015-02-19 23:58:49 -0700

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

When I run xcodebuild for alljoyn_darwin.xcodeproj using command line as below:

/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project alljoyn_darwin.xcodeproj -scheme alljoyn_core_ios -sdk iphoneos -configuration Debug PLATFORM_NAME=iphoneos

I got an error like this:

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)

I really have no idea why I got this, I followed all the instruction in the official site--Build From Source and I am sure I set the correct OPENSSL_ROOT path. I installed scons using Macport and it was installed correctly. I tried double-click the alljoyn_darwin.xcodeproj from finder but I got the same error.

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

So I am stuck here. But the thing is I can successfully run AllChatz sample for iOS in iphonesimulator for iPhone6. I don't know if this is related. Anyone can help here? Many thanks.

edit retag flag offensive close merge delete

Comments

are you executing this command from the alljoyn_objc directory? It appears you are. Take a look at our config to see if it helps. https://build.allseenalliance.org/ci/view/Core%20master%20SDK/job/master-osx-sdk/configure-readonly/

ry.jones ( 2015-02-20 13:05:10 -0700 )edit

Can you please post which directory are you running your command from ? That command should be run from alljoyn_obj directory

Nikhil Dabhade ( 2015-02-27 15:28:31 -0700 )edit