Building gateway agent fails at cpp/GatewayConnector/samples/main.cc

asked 2015-11-29 12:31:07 -0700

wongni gravatar image


I was following the steps in https://wiki.allseenalliance.org/gate... on a Ubuntu 14.04 X86. However, at the step 'Building the Gateway Agent' I came across with a compile error like below.

wkkim@wkkim-alljoyn:~/alljoyn/gateway/gwagent$ scons BINDINGS=cpp OS=linux CPU=x86 VARIANT=debug BUILD_SERVICES_SAMPLES=off POLICYDB=on ALLJOYN_DISTDIR=$AJ_ROOT/core/alljoyn/build/linux/x86/debug/dist WS=off
scons: Reading SConscript files ...
BULLSEYE_BIN not specified
GTEST_DIR not specified skipping common unit test build
BULLSEYE_BIN not specified
GTEST_DIR not specified skipping About Service unit test build
GTEST_DIR not specified skipping alljoyn_core unit test build

scons: warning: Ignoring missing SConscript 'build/linux/x86/debug/obj/services/about/SConscript'
File "/home/wkkim/alljoyn/core/alljoyn/alljoyn_core/samples/eventaction/SConscript", line 35, in <module>
scons: done reading SConscript files.
scons: Building targets ...
    [CXX]     cpp/GatewayConnector/samples/main.cc
cpp/GatewayConnector/samples/main.cc:20:26: fatal error: alljoyn/Init.h: No such file or directory
 #include <alljoyn/Init.h>
compilation terminated.
scons: *** [build/linux/x86/debug/obj/cpp/GatewayConnector/samples/main.o] Error 1
scons: building terminated because of errors.

It looks like a basic compile error but I couldn't figure out how to resolve it.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-11-29 15:06:36 -0700

wongni gravatar image

I think I found what was missing. 'git checkout V14.12' seems missing after 'cd gwagent' in the section 'Building the Gateway Agent'.

edit flag offensive delete publish link more


you might edit the wiki page to bring it up-to-date. Just log in using your existing credentials.

ry.jones ( 2015-11-30 14:03:02 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-11-29 12:31:07 -0700

Seen: 76 times

Last updated: Nov 29 '15