Closed MSKoWa closed 1 year ago
Which OS and hardware are you running on?
MacOS 12.4
I'm having the exact same issue. If I exclude the OTA libraries when I run the initial cmake
command with:
cmake -S . -Bbuild -DBUILD_DEMOS=0 -DBUILD_TESTS=0 -DINSTALL_TO_SYSTEM=1 -DINSTALL_LIBS="DEFENDER;SHADOW;JOBS;BACKOFF_ALGORITHM;HTTP;JSON;MQTT;PKCS"
then sudo make install
succeeds.
However if I don't exclude OTA libraries then sudo make install
fails with the same error shown above. When I run make -n install
it reveals the following issue:
...
make[2]: *** No rule to make target `lib/libtinycbor.dylib', needed by `lib/libaws_iot_ota_mqtt.dylib'. Stop.
make[1]: *** [CMakeFiles/aws_iot_ota_mqtt.dir/all] Error 2
make: *** [all] Error 2
This definitely seems like a library necessary for linking is not being built but I haven't been able to track it down yet.
Update:
If I run make
in aws-iot-device-sdk-embedded-C/build/libraries then libtinycbor.dylib is created and placed in the lib folder. However that results in another library build failure.
make[2]: *** No rule to make target `lib/libsockets_posix.dylib', needed by `lib/libplaintext_posix.dylib'. Stop.
make[1]: *** [platform/posix/transport/CMakeFiles/plaintext_posix.dir/all] Error 2
make: *** [all] Error 2
Hi, is there a specific reason you need to install the libraries? We don't recommend installing the libraries as system dynamic libraries; instead we would recommend you link the libraries statically as shown in our demos.
That definitely makes setting up a build more cumbersome but if dynamic linking isn't supported then I can go that route. Should the section on installing the libraries be removed if it isn't supported?
Should the section on installing the libraries be removed if it isn't supported?
That seems like the right suggestion. I'll share with the team.
Removing install instructions here: https://github.com/aws/aws-iot-device-sdk-embedded-C/pull/1850
Hello there,
I tried to install the libraries following the instructions in the README (clone and install section). I can download the repo and create a build folder using the cmake command. However, when it comes to
sudo make install
I receive the following error:Does anyone have an idea what can causes this error? I tried to add the -v option vor verbose output but it only gave me this:
so I suppose it is the wrong way I did it (I just did
sudo make install -v
)Thanks in advance!