I'd love to use this package to send some telemetry data but I'm not able to build it. I've tried following the instructions and tips I saw in other issues (e.g. #36 ).
Simply following the instructions on the Readme will not work. For starters, sudo add-apt-repository ppa:aziotsdklinux/ppa-azureiot there is no release version for Ubuntu 20.04. Also it looks like it depends on parsons and for some reason it was removed on noetic-devel branch #34 . Below I'll list the steps that I took and also a file with the output of catkin_make.
First I downloaded and installed azure-iot-sdk-c following this instructions
git clone https://github.com/Azure/azure-iot-sdk-c.git
cd azure-iot-sdk-c/
git submodule update --init
mkdir cmake
cd cmake
cmake -DCMAKE_INSTALL_PREFIX=/usr .. # installing it to /usr because CMakeLists will look there and not in the default install location /usr/local
cmake --build .
sudo make install
Then:
git clone --recursive https://github.com/Microsoft/ros_azure_iothub
git revert 264c73d # Reverted this commit so that I have parsons lib
rosdep update
rosdep install --from-paths src --ignore-src -r -y
catkin_make
I uploaded the output of catkin_make output_catkin_make.txt but basically it looks that there is a linker problem. All errors are of the kind:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libhsm_security_client.a(hsm_client_tpm.c.o): in function `GetEkTemplate':
hsm_client_tpm.c:(.text+0xe): undefined reference to `ToTpmaObject'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libhsm_security_client.a(hsm_client_tpm.c.o): in function `unmarshal_array':
hsm_client_tpm.c:(.text+0x1f3): undefined reference to `UINT32_Unmarshal'
I'd really appreciate it if someone could tell me how to fix it, or what other steps to follow,
Hi all,
I'd love to use this package to send some telemetry data but I'm not able to build it. I've tried following the instructions and tips I saw in other issues (e.g. #36 ).
Simply following the instructions on the Readme will not work. For starters,
sudo add-apt-repository ppa:aziotsdklinux/ppa-azureiot
there is no release version for Ubuntu 20.04. Also it looks like it depends on parsons and for some reason it was removed onnoetic-devel
branch #34 . Below I'll list the steps that I took and also a file with the output of catkin_make.First I downloaded and installed azure-iot-sdk-c following this instructions
Then:
I uploaded the output of catkin_make output_catkin_make.txt but basically it looks that there is a linker problem. All errors are of the kind:
I'd really appreciate it if someone could tell me how to fix it, or what other steps to follow,
Thanks,