Error building AllJoyn Framework

asked 2014-04-30 02:44:18 -0700

capagira87 gravatar image

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 flag offensive 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.

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

2 answers

Sort by ยป oldest newest most voted

answered 2014-05-01 10:04:57 -0700

georgen gravatar image

updated 2014-05-02 08:21:37 -0700

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]
        + README.md
        + README.txt
        + 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
edit flag offensive delete publish link more

answered 2014-05-02 16:19:04 -0700

capagira87 gravatar image

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.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools



Asked: 2014-04-30 02:44:18 -0700

Seen: 531 times

Last updated: May 02 '14