0

BusAttachment.h not found

asked 2014-05-14 02:47:06 -0700

tarek hentati gravatar image

Hi,

I m trying to compile source samples of the AllJoyn but in compilling I have this problem :

Chat_jni.cpp:18:35: fatal error: alljoyn/BusAttachment.h: No such file or directory compilation terminated. make: * [obj/local/armeabi/objs-debug/Chat/Chat_jni.o] Error 1

this is the header of the Chat_jni.cpp :

include "org_alljoyn_bus_samples_chat_Chat.h"

include < alljoyn/BusAttachment.h>

include < alljoyn/ProxyBusObject.h>

include < alljoyn/InterfaceDescription.h>

include < alljoyn/DBusStd.h>

include < alljoyn/AllJoynStd.h>

include < qcc/Log.h>

include < qcc/String.h>

include < new>

include < android/log.h>

include < assert.h>

include < qcc/platform.h>

I tried to search the BusAttachment. file and i found it in the inc/alljoyn/ folder.

What can i do !!?

edit retag flag offensive close merge delete

Comments

Did you follow the instructions in https://wiki.allseenalliance.org/develop/downloading_the_source to download the source code?

alphaemmeo ( 2014-05-14 05:41:12 -0700 )edit

what command are you using to build the Chat_jni.cpp I think I know that the problem is but I need more information. i.e. what did you run to get the error.

georgen ( 2014-05-14 17:03:30 -0700 )edit

@alphaemmeo :Yes i downloaded the source from the git , not by folloing this Tuto but I follewed this one : https://allseenalliance.org/docs-and-downloads/documentation/configuring-build-environment-linux-platform#unique_17. I think it's the same @georgen : I entered to the source chat project and I run the command ndk-build to build the jni folder.

tarek hentati ( 2014-05-15 07:30:57 -0700 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-05-15 07:47:17 -0700

georgen gravatar image

The build is not finding the header files because the build variable ALLJOYN_DIST is probably wrong.

open the chat sample. open the jni directory. in there you will find the Android.mk file. near the top of the file you will find the line

ALLJOYN_DIST := ../../

double check if this points to the AllJoyn CPP dist folder. you may need to modify the path so its able to find the /inc folder and the '/lib` folder.

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

Question Tools

Follow
1 follower

Stats

Asked: 2014-05-14 02:47:06 -0700

Seen: 585 times

Last updated: May 15 '14