0

Failed to compile gateway/gwagent

asked 2015-04-08 22:52:59 -0700

this post is marked as community wiki

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

Hi, I was able to build gwAgent with 14.06 version, But with 14.12 I see gateway/gwagent cpp/GatewayConnector/samples/main.cc is not updated with changes. i am getting Build Errors.

output : [CXX] cpp/GatewayConnector/samples/main.cc In file included from build/linux/x86/debug/dist/notification/inc/alljoyn/notification/NotificationSender.h:26:0, from build/linux/x86/debug/dist/notification/inc/alljoyn/notification/NotificationService.h:22, from build/linux/x86/debug/dist/notification/inc/alljoyn/notification/NotificationAsyncTaskEvents.h:24, from build/linux/x86/debug/dist/notification/inc/alljoyn/notification/Notification.h:27, from cpp/GatewayConnector/samples/main.cc:20: build/linux/x86/debug/dist/cpp/inc/alljoyn/about/PropertyStore.h: In destructor 'virtual ajn::services::PropertyStore::~PropertyStore()': build/linux/x86/debug/dist/cpp/inc/alljoyn/about/PropertyStore.h:138:1: error: 'virtual ajn::services::PropertyStore::~PropertyStore()' is deprecated (declared at build/linux/x86/debug/dist/cpp/inc/alljoyn/about/PropertyStore.h:137) [-Werror=deprecated-declarations] } ^ In file included from build/linux/x86/debug/dist/cpp/inc/alljoyn/about/AboutServiceApi.h:26:0, from cpp/GatewayConnector/samples/main.cc:24: build/linux/x86/debug/dist/cpp/inc/alljoyn/about/AboutService.h: In destructor 'virtual ajn::services::AboutService::~AboutService()': build/linux/x86/debug/dist/cpp/inc/alljoyn/about/AboutService.h:60:5: error: 'virtual ajn::services::AboutService::~AboutService()' is deprecated (declared at build/linux/x86/debug/dist/cpp/inc/alljoyn/about/AboutService.h:59) [-Werror=deprecated-declarations] } ^ In file included from cpp/GatewayConnector/samples/main.cc:26:0: build/linux/x86/debug/dist/cpp/inc/alljoyn/about/AnnounceHandler.h: In destructor 'virtual ajn::services::AnnounceHandler::~AnnounceHandler()': build/linux/x86/debug/dist/cpp/inc/alljoyn/about/AnnounceHandler.h:84:1: error: 'virtual ajn::services::AnnounceHandler::~AnnounceHandler()' is deprecated (declared at build/linux/x86/debug/dist/cpp/inc/alljoyn/about/AnnounceHandler.h:83) [-Werror=deprecated-declarations] } ^ In file included from build/linux/x86/debug/dist/cpp/inc/alljoyn/about/AnnouncementRegistrar.h:31:0, from cpp/GatewayConnector/samples/main.cc:27: build/linux/x86/debug/dist/cpp/inc/alljoyn/about/AboutIconClient.h: In destructor 'virtual ajn::services::AboutIconClient::~AboutIconClient()': build/linux/x86/debug/dist/cpp/inc/alljoyn/about/AboutIconClient.h:120:5: error: 'virtual ajn::services::AboutIconClient::~AboutIconClient()' is deprecated (declared at build/linux/x86/debug/dist/cpp/inc/alljoyn/about/AboutIconClient.h:119) [-Werror=deprecated-declarations] } ^ cpp/GatewayConnector/samples/main.cc: In member function 'virtual void ConfigSession::JoinSessionCB(QStatus, ajn::SessionId, const ajn::SessionOpts&, void)': cpp/GatewayConnector/samples/main.cc:128:45: error: 'ajn::services::AboutClient::AboutClient(ajn::BusAttachment&)' is deprecated (declared at build/linux/x86/debug/dist/cpp/inc/alljoyn/about/AboutClient.h:65) [-Werror=deprecated-declarations] AboutClient aboutClient(bus); ^ cpp/GatewayConnector/samples/main.cc:128:45: error: 'virtual ajn::services::AboutClient::~AboutClient()' is deprecated (declared at build/linux/x86/debug/dist/cpp/inc/alljoyn/about/AboutClient.h:73) [-Werror=deprecated-declarations] cpp/GatewayConnector/samples/main.cc:132:111: error: 'QStatus ajn::services::AboutClient::GetObjectDescriptions(const char, ajn::services::AboutClient::ObjectDescriptions&, ajn::SessionId)' is deprecated (declared at build/linux/x86/debug/dist/cpp/inc ... (more)

edit retag flag offensive close merge delete

Comments

Once try this: Make sure you are in AJ_ROOT/core. Then give commands , $ git clone https://git.allseenalliance.org/gerrit/gateway/gwagent.git $ cd gwagent $ scons WS=off BINDINGS=cpp . It worked for me. Hope, this helps

kgan4dev ( 2015-04-09 01:36:31 -0700 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-04-09 04:30:20 -0700

this post is marked as community wiki

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

Ok It got it right after freshly cloning git as per the steps mentioned https://wiki.allseenalliance.org/gateway/getting_started .

I am not able to figure out what went wrong on my old repo. Might have checked out incompatible version :P

edit flag offensive delete publish link more

Comments

Can you share at which command, you getting this error.? In this link https://wiki.allseenalliance.org/gateway/getting_started at Building the Daemon section if you are getting error, try this $ scons BINDINGS=cpp OS=linux CPU=x86 VARIANT=debug BUILD_SERVICES_SAMPLES=off POLICYDB=on WS=off

kgan4dev ( 2015-04-10 00:56:57 -0700 )edit

I had two version of repo 14.06 and 14.12, something might have got messed up in $AJ_ROOT setting. You can ignore this post . The Cmd that you mentioned works fine. PolicyDb is also filtering messages properly at router. I cleaned every thing and cloned the source with git checkout v14.12. It compiled smooth and router filters the message as per settings.

Jayaraj.Esvar ( 2015-04-10 02:21:31 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-04-08 22:52:59 -0700

Seen: 253 times

Last updated: Apr 09 '15