-
Notifications
You must be signed in to change notification settings - Fork 258
Having trouble with "simulated device to cloud upload sample" #53
Comments
Hi @fcolumbu, can you share a few more details:
Thanks, |
Actually it looks like you built using the build scripts. Can you run an 'ldd' command on the libnanomsg.so.5.0.0 located in ~/azure-iot-gateway-sdk/install-deps/lib/? |
Hi Andrew, I used "build.sh" to install the sdk and related code. Here is the ldd output and location of the library: fcolumbu@fcolumbu-virtual-machine:/usr/local/lib$ sudo find / -name libnanomsg.so.5.0.0 -print | grep libnanomsg.so.5.0.0 Thanks, Frank |
We are still working on the fix for this issue. If you're interested, the fix required must happen in 2 places. We've made this pull request in the nanomsg repository to fix the pkgconfig configuration file to point to the correct location of the library. And from our end, we're working on fixing the RPATH of our targets to point to the correct location of the installed libraries that should work on all systems. For now, can you try setting your LD_LIBRARY_PATH to "/home/fcolumbu/azure-iot-gateway-sdk/install-deps/lib/x86_64-linux-gnu/" and see if that helps? Thanks, |
Gave it a try: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/fcolumbu/azure-iot-gateway-sdk/install-deps/lib/x86_64-linux-gnu/ Will wait for your bug fix. Thank you |
The json for that sample expects you to run the sample from the build directory which may be why it's unable to find the modules it's looking for. We're changing documentation right now to document this. Can you try running the sample from the build directory rather than from the project root? |
I have my Azure IoT hub all setup and all the keys appropriately set in the json file. I even moved both files to the same directory to rule out path errors but the result is the same:
drwxrwxr-x 5 fcolumbu fcolumbu 4096 Nov 20 16:44 bindings
drwxrwxr-x 8 fcolumbu fcolumbu 4096 Nov 20 16:52 build
-rw-rw-r-- 1 fcolumbu fcolumbu 76 Nov 20 16:44 CHANGELOG.md
-rw-rw-r-- 1 fcolumbu fcolumbu 9392 Nov 20 16:44 CMakeLists.txt
-rw-rw-r-- 1 fcolumbu fcolumbu 3183 Nov 20 16:44 Contributing.md
drwxrwxr-x 8 fcolumbu fcolumbu 4096 Nov 20 16:44 core
-rw-rw-r-- 1 fcolumbu fcolumbu 5080 Nov 20 16:44 dependencies.cmake
-rw-rw-r-- 1 fcolumbu fcolumbu 1321 Nov 20 16:44 dependencies-test.cmake
drwxrwxr-x 11 fcolumbu fcolumbu 4096 Nov 20 16:44 deps
drwxrwxr-x 3 fcolumbu fcolumbu 4096 Nov 20 16:44 doc
-rw-rw-r-- 1 fcolumbu fcolumbu 4701 Nov 20 16:44 gatewayFunctions.cmake
drwxrwxr-x 6 fcolumbu fcolumbu 4096 Nov 20 16:52 install-deps
drwxrwxr-x 2 fcolumbu fcolumbu 4096 Nov 20 16:44 jenkins
-rw-rw-r-- 1 fcolumbu fcolumbu 1109 Nov 20 16:44 License.txt
drwxrwxr-x 10 fcolumbu fcolumbu 4096 Nov 20 16:44 modules
-rw-rw-r-- 1 fcolumbu fcolumbu 5456 Nov 20 16:44 README.md
drwxrwxr-x 10 fcolumbu fcolumbu 4096 Nov 20 16:44 samples
-rw-rw-r-- 1 fcolumbu fcolumbu 1955 Nov 20 19:35 simulated_device_cloud_upload_lin.json
-rwxrwxr-x 1 fcolumbu fcolumbu 300471 Nov 20 19:34 simulated_device_cloud_upload_sample
-rw-rw-r-- 1 fcolumbu fcolumbu 47081 Nov 20 16:44 ThirdPartyNotices.txt
drwxrwxr-x 4 fcolumbu fcolumbu 4096 Nov 20 17:55 tools
fcolumbu@fcolumbu-virtual-machine:~/azure-iot-gateway-sdk$ ./simulated_device_cloud_upload_sample simulated_device_cloud_upload_lin.json
./simulated_device_cloud_upload_sample: error while loading shared libraries: libnanomsg.so.5.0.0: cannot open shared object file: No such file or directory
fcolumbu@fcolumbu-virtual-machine:~/azure-iot-gateway-sdk$
Looks like this is not a new issue but the issue was closed without a clear resolution.
nanomsg/nanomsg#737
Here is one of the comments, "(Disclosure: I wrote mangos -- but I'm also the "maintainer" of nanomsg, so you can consider the advice to prefer mangos more or less "official" from the nanomsg team. :-)"
Recommendations?
The text was updated successfully, but these errors were encountered: