# Error building AllJoyn Framework

Hello! I think I have a serious problem with the building of the AllJoyn Framework. I am following all the instructions written in this guide. First of all, I have found (I think like many others that have downloaded it in these days) some changes in the folders. As a matter of fact, there is no more the folder /core/alljoyn/, but I found the following folders:

• alljoyn_c

• alljoyn_core

• alljoyn_java

and so on...

I tried to execute the command scons BINDINGS="cpp,java" on my terminal but the shell answered me with a long list of errors like as: [CXX] src/XmlHelper.cc sh: 1: o: not found [CXX] build/linux/x86/debug/obj/Status.cc sh: 1: o: not found [CXX] src/posix/ClientTransport.cc sh: 1: o: not found [CXX-SH] /home/federica/Scrivania/AllSeen/alljoyn/common/src/ASN1.cc sh: 1: o: not found [CXX-SH] /home/federica/Scrivania/AllSeen/alljoyn/common/src/BigNum.cc sh: 1: o: not found  and at the end with the following lines: [AR] build/linux/x86/debug/obj/liballjoyn.a ar: /home/federica/Scrivania/AllSeen/alljoyn/common/build/linux/x86/debug/obj/ASN1.o: No such file or directory scons: *** [build/linux/x86/debug/obj/liballjoyn.a] Error 1 scons: building terminated because of errors.

How can I solve this problem?

edit retag close merge delete

It looks like the path information put in the document is wrong I think the path came from the git repository path not what is actually checked out. Unfortunately I can't tell what is wrong just by looking at the output you have given. Try running the following command and put some of the output. scons BINDINGS="" V=1 This will limit the build to only the core files and will print a more verbose output.

( 2014-05-01 09:54:45 -0700 )edit

Sort by » oldest newest most voted

Once you clone the alljoyn git project you should have a layout that looks similar to this

[alljoyn] +
+ [alljoyn_c]
+ [alljoyn_core]
+ [alljoyn_java]
+ [alljoyn_js]
+ [alljoyn_objc]
+ [alljoyn_unity]
+ [build_core]
+ [common]
+ [services]
+ [win8_apps]
+ SConstruct


I am not sure why the documentation says \$AJROOT/core/alljoyn the layout has never looked like that. Maybe the name was taken from the git repository path.

I suspect the error is a result of one or more of the build tools. Try running

scons BINDINGS="" V=1


This will limit the build to just the core C++ files and will print a verbose build output. the [CXX], [CXX-SH], and [AR] will be replaced by the actual command this will hopefully help find your problem.

Some other information that could be useful for tracking down the source of the problem tell us the version of a few of the build tools.

gcc --version
g++ --version
python --version
scons --version


Since your build did not even reach the Java build I am currently trying to figure out why your C++ build has failed.

EDIT After a little additional searching I think I found the source of the problem. It looks like you may not have g++ installed.

try making sure you have g++ installed.

sudo apt-get install build-essential

more

Thank you for your reply. Your suggestion was pretty good ;) As a matter of fact, the problems I wrote on the first post of this topic were due to the absence of the package g++. that I've installed before starting building the framework.

more