1

Fail to build Alljoyn lighting service

asked 2014-11-04 00:02:49 -0700

yellowcybertan gravatar image

updated 2015-08-13 16:50:03 -0700

ry.jones gravatar image
Linux Foundation Staff

I followed https://allseenalliance.org/docs-and-... to checkout and build the lighting service, but ubuntu console show below error message after run scons command:

...
status_action(["build/linux/x86_64/debug/obj/alljoyn_core/Status.cc", "build/linux/x86_64/debug/obj/alljoyn_core/Status.h"], ["build/linux/x86_64/debug/obj/alljoyn_core/Status.xml"])
Install file: "build/linux/x86_64/debug/obj/alljoyn_core/Status.h" as "build/linux/x86_64/debug/dist/cpp/inc/alljoyn/Status.h"
Install file: "/media/yellow/opensrc/allseen_light/core/alljoyn/common/inc/qcc/platform.h" as "build/linux/x86_64/debug/dist/cpp/inc/qcc/platform.h"
Install file: "/media/yellow/opensrc/allseen_light/core/alljoyn/common/inc/qcc/posix/platform_types.h" as "build/linux/x86_64/debug/dist/cpp/inc/qcc/posix/platform_types.h"
Install file: "standard_core_library/common/src/Alarm.o" as "build/linux/standard_core_library/lighting_controller_client/bin/Alarm.o"
Install file: "/media/yellow/opensrc/allseen_light/core/alljoyn/alljoyn_core/inc/alljoyn/AllJoynStd.h" as "build/linux/x86_64/debug/dist/cpp/inc/alljoyn/AllJoynStd.h"
Install file: "/media/yellow/opensrc/allseen_light/core/alljoyn/services/about/cpp/inc/alljoyn/about/AnnounceHandler.h" as "build/linux/x86_64/debug/dist/cpp/inc/alljoyn/about/AnnounceHandler.h"
scons: *** [build/linux/x86_64/debug/dist/cpp/inc/alljoyn/about/AnnounceHandler.h] AssertionError : Installing source ['/media/yellow/opensrc/allseen_light/core/alljoyn/services/about/cpp/inc/alljoyn/about/AnnounceHandler.h', '/media/yellow/opensrc/allseen_light/core/alljoyn/services/about/cpp/inc/alljoyn/about/AnnounceHandler.h'] into target ['build/linux/x86_64/debug/dist/cpp/inc/alljoyn/about/AnnounceHandler.h']: target and source lists must have same length.
Traceback (most recent call last):
  File "/usr/lib/scons/SCons/Action.py", line 1062, in execute
    result = self.execfunction(target=target, source=rsources, env=env)
  File "/usr/lib/scons/SCons/Tool/install.py", line 215, in installFunc
    "Installing source %s into target %s: target and source lists must have same length."%(list(map(str, source)), list(map(str, target)))
AssertionError: Installing source ['/media/yellow/opensrc/allseen_light/core/alljoyn/services/about/cpp/inc/alljoyn/about/AnnounceHandler.h', '/media/yellow/opensrc/allseen_light/core/alljoyn/services/about/cpp/inc/alljoyn/about/AnnounceHandler.h'] into target ['build/linux/x86_64/debug/dist/cpp/inc/alljoyn/about/AnnounceHandler.h']: target and source lists must have same length.
scons: building terminated because of errors.

Can you provide detail building sequences or troubleshoot?

Thank you

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2015-01-29 16:10:44 -0700

Nikhil Dabhade gravatar image

updated 2015-01-30 12:24:50 -0700

It seems like you are building off master branch. You need to have libcap-dev installed for this.
[Updated]

sudo apt-get install libcap-dev

Let me know if that does not solve your problem

edit flag offensive delete publish link more
0

answered 2014-11-04 03:30:41 -0700

anszom gravatar image

updated 2014-11-04 04:27:33 -0700

I've had the same problem. You need to remove or comment out the following line from the SConscript file:

env.SConscript('../alljoyn/services/about/cpp/SConscript', {'about_env': env})

It seems that in earlier versions of alljoyn the about service was built separately, but now it is integrated into the core.

update:

I've also needed to fix OEM_LS_Provisioning.c, replacing all occurences of AJSVC_PropertyStoreFieldIndices to int8_t to match function declarations in headers.

edit flag offensive delete publish link more

Comments

Yes, build PASS, Thank you, you are my hero. BTW, I also need to replace "%d" to "%lu" in my x86_64 platform when compiler show error: format '%d' expects argument of type 'int', but argument 4 has type 'std::list<std::basic_string<char> >::size_type {aka long unsigned int}' [-Werror=format=]

yellowcybertan ( 2014-11-04 17:32:42 -0700 )edit
0

answered 2015-01-29 02:51:38 -0700

botsutoshi gravatar image

updated 2015-01-29 02:55:19 -0700

Hi,

considering the README.TXT document in core/service_framework I'm not able to correctly build the LSF package.

I tried with both

"scons"

and

"scons OS=linux CPU=x86_64 WS=off V=1"

but the error is always the same:

LSF/core/alljoyn/alljoyn_core/router/posix/daemon-main.cc:70:28: fatal error: sys/capability.h: No such file or directory #include <sys capability.h=""> ^ compilation terminated. scons: [build/linux/x86_64/debug/obj/alljoyn_core/router/posix/daemon-main.o] Error 1 scons: building terminated because of errors.</sys>

Thanks very much for any support.

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

Question Tools

Follow
1 follower

Stats

Asked: 2014-11-04 00:02:49 -0700

Seen: 1,159 times

Last updated: Aug 13 '15