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

Unable to add include iothub_service_client_auth.h to an existing project #48

Closed
lph65724 opened this issue Jul 26, 2019 · 6 comments
Closed

Comments

@lph65724
Copy link

Hi there,
I am modifying the client sample project. When I add #include "iothub_service_client_auth.h" to the sample C file, the compiler shows "No such file or directory" unless I have an absolute path. However, even with absolute path, the compiler still shows undefined reference to 'IoTHubServiceClientAuth_CreateFromConnetionString'. Where else in the project I need to modify in order to make service_client APIs to work?

thank you

@shahpiyushv
Copy link
Collaborator

@lph65724 it is hard to tell what the exact issue could be. But, can you try with the release/v3.2 or release/v3.3 branches of ESP IDF?

@lph65724 lph65724 closed this as completed Aug 7, 2019
@lph65724 lph65724 reopened this Aug 7, 2019
@lph65724
Copy link
Author

lph65724 commented Aug 8, 2019

Hi @shahpiyushv,
with v3.2.2, I have run into other compile errors. I now have
*** No rule to make target 'C:/msys32/home/User/esp/esp-idf/components/bootloader/subproject/components/micro-ecc/micro-ecc/uECC.c', needed by 'micro-ecc/uECC.o'. Stop.
make[1]: *** [/home/User/esp/esp-idf/make/project.mk:530: component-micro-ecc-build] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [/home/User/esp/esp-idf/components/bootloader/Makefile.projbuild:41: /home/User/esp/esp-azure/examples/iothub_client_sample_mqtt/build/bootloader/bootloader.bin] Error 2

Thank you

@shahpiyushv
Copy link
Collaborator

@lph65724 , have you executed git submodule update --init --recursive once after switching to v3.2.2?

@lph65724
Copy link
Author

lph65724 commented Aug 8, 2019

@shahpiyushv, yes, I have.

@chhajedji
Copy link

chhajedji commented Aug 8, 2019

@lph65724 I regenerated the same issue, following steps helped me to solve it:

  1. update toolchain for v3.3
  2. git submodule update --init --recursive in $IDF_PAH
  3. run make -C $IDF_PATH/tools/kconfig clean
  4. run make -j8 defconfig
  5. run make clean
  6. then make -j8 flash monitor
    $IDF_PATH is path to my esp-idf directory

these steps should be sufficient

@lph65724
Copy link
Author

lph65724 commented Aug 8, 2019

@chinmaychhajed after updating to toolchain v3.3 and followed the steps you provided, it worked. Thank you

@lph65724 lph65724 closed this as completed Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants