Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem building a client app on Windows #536

Closed
dominicbetts opened this issue Jun 28, 2018 · 6 comments
Closed

Problem building a client app on Windows #536

dominicbetts opened this issue Jun 28, 2018 · 6 comments
Assignees
Labels

Comments

@dominicbetts
Copy link
Member

I'm using Windows 10 and Visual Studio 2017.

I'm stepping through this tutorial: https://docs.microsoft.com/en-us/azure/iot-accelerators/iot-accelerators-connecting-devices
I've added the following Nuget packages to the project:

  • Microsoft.Azure.IoTHub.Serializer
  • Microsoft.Azure.IoTHub.IoTHubClient
  • Microsoft.Azure.IoTHub.MqttTransport

I have the following include statements:

#include "iothubtransportmqtt.h"
#include "schemalib.h"
#include "iothub_client.h"
#include "serializer_devicetwin.h"
#include "schemaserializer.h"
#include "azure_c_shared_utility/threadapi.h"
#include "azure_c_shared_utility/platform.h"
#include <string.h>

With version 1.2.4 or earlier of the Microsoft.Azure.IoTHub.IoTHubClient package, the project builds. Any later version fails to build with:

Severity	Code	Description	Project	File	Line	Suppression State
Error (active)	E1696	cannot open source file "iothub_client_core_ll.h"	RMDevice	c:\temp\RMDevice\packages\Microsoft.Azure.IoTHub.IoTHubClient.1.2.5\build\native\include\iothub_client.h	24	
Error (active)	E1696	cannot open source file "iothub_client_core.h"	RMDevice	c:\temp\RMDevice\packages\Microsoft.Azure.IoTHub.IoTHubClient.1.2.5\build\native\include\iothub_client.h	25	

...

Error	C1083	Cannot open include file: 'iothub_client_core_ll.h': No such file or directory	RMDevice	c:\temp\rmdevice\packages\microsoft.azure.iothub.iothubclient.1.2.5\build\native\include\iothub_client.h	24	
@ewertons
Copy link
Contributor

Hi @dominicbetts ,
apologize for the issue, it indeed seems to be a bug either in the nuget (less likely) or in the documentation. We will address that briefly.

@ewertons ewertons added the bug label Jun 30, 2018
@yzhong94
Copy link
Contributor

@ewertons any update on this issue? Is it an issue with the sample/bug?

@ewertons
Copy link
Contributor

We are releasing a new set of nugets today, then I'll check the state of the failure.

@ewertons
Copy link
Contributor

Hi @dominicbetts ,
could you try again, using the new nuget packages released today (1.2.8)?

For reference:
https://www.nuget.org/packages/Microsoft.Azure.IoTHub.MqttTransport/1.2.8
https://www.nuget.org/packages/Microsoft.Azure.IoTHub.Serializer/1.2.8

@dominicbetts
Copy link
Member Author

It's working with the new nuget packages.

@ewertons
Copy link
Contributor

Thanks for contributing to the Azure IoT SDKs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants