Error: qcc/Event.h and qcc/Environ.h: No such file or directory

asked 2014-07-23 01:18:10 -0700

congtam gravatar image

updated 2014-07-23 07:50:24 -0700

Hi everyone,

I'm trying to make a led application for alljoyn on Linux. I'm using ubuntu 14.04-i386, I have downloaded alljoyn-suite-14.06.00_beta and built C++ environment on linux for alljoyn. I'm using the example on this link: https://git.allseenalliance.org/cgit/core/alljoyn.git/tree/alljoyn_core/test/ledctrl.cc?h=RB14.02 . When I built the application in eclipse, there was an error:

qcc/Event.h: No such file or directory

I have looked up in alljoyn/core/alljoyn/build/linux/x86/debug/dist/cpp/inc/qcc, there weren't event.h and environ.h. I have added the alljoyn libraries into my eclipse, and set the includes for the application project is:


In fact, I don't know where I mad the mistake? Could anybody please help me to resolve it?


edit retag flag offensive close merge delete


Hi congtam, can you shows me which command you use to build this application? I just test it again and ran well, but I highly recommend you switch into Alljoyn version 14.06 with a lot of improvement.

congngale ( 2014-07-23 02:48:44 -0700 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2014-07-23 11:05:06 -0700

stevek gravatar image

qcc/Event.h and qcc/Environ.h are actually private header files. Code in the test/ directory can use the private header files when built with scons. Your Eclipse environment is trying to build the ledctrl test program as if it were external to AllJoyn. This has nothing to do with the fact that you are using 14.06 beta nor does it have anything to do with Linux. This has been true since before the AllJoyn code base was transitioned over to the AllSeen Alliance and it will continue to be true for all foreseeable future releases.

edit flag offensive delete publish link more


Hi stevek, Thanks for your answer! Could you please suggest how to start building my own project inside of alljoyn? Would I add the source files, the make files on my own and use scons to build all over again? I think it's rather complicated.

congtam ( 2014-07-23 14:54:11 -0700 )edit

That should probably be asked as a separate question. The short answer is don't build your project in alljoyn. Reference the public header files and libs from the dist/ directory. (Also, don't use ledctrl as a starting point for your program; use the official samples instead.)

stevek ( 2014-07-24 09:01:07 -0700 )edit

Is there a new version of the source code for ledctrl.exe that we could use as a test client for the Arduino Due AJLedService ? Thanks !

tomconte ( 2014-09-01 06:42:14 -0700 )edit

@tomconte This is not a discussion forum, it is a Q/A forum like StackOverflow. This should be asked as a separate question. That said, Arduino Due uses the AJTCL code base. This "ask" is in regard to standard client code. The very latest source is always available on the Alliance's git server.

stevek ( 2014-09-02 13:24:29 -0700 )edit

answered 2014-07-23 03:26:34 -0700

congngale gravatar image

updated 2014-07-23 11:13:49 -0700

Hi congtam,

I don't know which command you used to build, but if you were using Makefile then it was not a good way. I think you should use Scons, here is example command i used to build without any problems: "scons OS=linux CPU=x86_64 VARIANT=debug BINDINGS=cpp WS=off".

It's a problem when you build the application with eclipse (Missing includes the common header files). Want to know where are the event.h and environ.h check out "common/inc/qcc" in Alljoyn source code. If you use command "scons OS=linux CPU=x86_64 VARIANT=debug BINDINGS=cpp WS=of V=99" to build then you will see that it include "alljoyn/common/inc". You can update your setup in eclipse to include "alljoyn/common/inc" folder and it will run well. I used the Alljoyn source code from https://allseenalliance.org/source-code (compressed file or git are also fine).

edit flag offensive delete publish link more


Hi congngale, Thanks a lot for your response I tried to build again the environement with your command above, the building is successful, but I haven't yet achieved event.h and environ.h in alljoyn/core/alljoyn/build/linux/x86/debug/dist/cpp/inc/qcc. In fact, i'm using ubuntu14.04-i386 to implement alljoyn-suite-14.06.00_beta. Would the version of Alljoyn be the problem? Could you please show me where you could found your alljoyn source (git)? Thanks a lot,

congtam ( 2014-07-23 06:58:11 -0700 )edit

Hi congngale, sorry for the missing of detail. I have successfully built the C++ environment for linux. My problem is that I had the errors of missing <qcc event.h=""> and <qcc environ.h=""> while building the program in eclipse. I think that there aren't these libraries in qcc of linux alljoyn which I built the environment. Regards,

congtam ( 2014-07-23 07:05:14 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-07-23 01:18:10 -0700

Seen: 240 times

Last updated: Jul 23 '14