Below are the full list of header files I have included in Eclipse IDE:
Current Directory - Precedent of Other Folders: azure_c_shared_utility, azure_uamqp_c and azure_umqtt_c
What image version are you using? What Eclipse IDE version are you using? Can you list all the steps you did to configure Azure in the Eclipse IDE, were you following any guide, if so, which one?
I’d also suggest you to post your question in https://github.com/Azure/azure-iot-sdks so you can receive a response from Azure support.
What image version are you using?
weekly-159.devkit-2.0 (Get from cat /etc/version)
159.devkit (Get from configure_edison --version)
What Eclipse IDE version are you using?
Intel IoT Development Kit IDE (Eclipse)
Version: Luna (4.4.2)
Build id: M20150204-1700
Can you list all the steps you did to configure Azure in the Eclipse IDE, were you following any guide, if so, which one?
I did not found any online guides that teach compiling Azure in Eclipse IDE. Thus, I tried it out myself by coping Azure library files into Eclipse IDE.
I have posted questions on both Microsoft Forum and Azure Github Forum.
Here are the link for the posts:
1) Microsoft Forum
2) Azure Github Forum
Thank you for posting in the Azure Forum. Keep us updated on your progress. They’ll be able to provide a more accurate response for anything related to Azure.
So far the issue is not solved.
Do you have any idea on cross compiling MRAA stastically in Ubuntu OS and link against itself in same project folder?
I tried myself by putting all required mraa C code and header files in same project folder, but it failed.
It shows errors as per below:
Now, Microsoft Azure IoT code in Ubuntu OS works and MRAA code in Eclipse IDE works.
But not for combined code complied in Ubuntu OS or Eclipse IDE.
Currently there is no alternative/methods that can combine both codes and compile code successfully in Ubuntu OS/Eclipse IDE.
Due to this, I cant proceed further for my project.
Can your side suggest a method to solve this since this is code compiling issue?
Thanks in advance.
Could you please share your code so we can attempt to see why it’s not compiling? The issue could be related to the linker flags or the include paths in the Eclipse IDE when combining both libraries. We’re doing our best to help in any way we can, but since there’s no issue with MRAA, we cannot guarantee a solution to your problem.
I attached whole Eclipse project file to this link:
If Eclipse IDE can successfully build Azure sample project simplesample_amqp.c without any errors, then this issue topic can be closed.
Just by trying to compile your code I noticed the Eclipse was not able to find some of the header files. Although most of them are included in his project, some other header files require other files that are not included or the defined location is not correct. For example the header file umock_c_prod.h includes umock_c.h which is not included in the directory list that you provided. The Eclipse IDE lists the problems with a detailed description, the error name, the project, the path of the issue and the location, this is helpful to start eliminating encountered problems.
Take a look at this thread to get an idea on how to add this libraries into Eclipse IDE and add the necessary linker flags: https://communities.intel.com/thread/94227