I changed the “amqpcpp_Jetson.BUILD” file to:
cc_library(
name = “amqpcpp_jetson”,
srcs = glob([“lib/aarch64-linux-gnu/amqpcpp/lib/libamqpcpp.so*”]),
hdrs = glob([“/lib/aarch64-linux-gnu/amqpcpp/include/amqpcpp.h”,
“/lib/aarch64-linux-gnu/amqpcpp/include/amqpcpp/.h",
"/lib/aarch64-linux-gnu/amqpcpp/include/amqpcpp/**/.h”]),
visibility = [“//visibility:public”],
strip_include_prefix = “lib/aarch64-linux-gnu/amqpcpp/include”,
linkopts = [“-L/usr/lib/aarch64-linux-gnu/amqpcpp/lib”],
linkstatic = True,
)
It seemed as though I specified the repository path as “/usr/lib/aarch64-linux-gnu/”, when searching for .so files, the path being searched was /usr/lib. At this point I can now deploy to the robot. However, when I run my application, I get the following error:
“2019-09-23 09:26:01.850 ERROR engine/alice/backend/modules.cpp@307: iam-devices:rabbitMq: /home/iam/deploy/jake/moveBolt-pkg//external/com_nvidia_isaac/packages/iam-devices/librabbitMq_module.so: cannot open shared object file: No such file or directory
2019-09-23 09:26:01.850 PANIC engine/alice/backend/modules.cpp@309: Could not load all required modules for application”
rabbitMq is the module I created in my build file where my actual project is located. Removing any mention of the rabbitMq file will let me run my application without any issue and other modules I created and added have no problem. The main difference between this one and the others is that I have a third_party dependency referencing all the above comments I added.
I have run into a similar issue like this before. When deploying, librabbitMq.so module is put in my package folder under ~/deploy/jake/moveBolt-pkg/packages/iam-devices just like all my other modules, but when running the program, the location that is searched for the rabbitMq module is in:
“/home/iam/deploy/jake/moveBolt-pkg//external/com_nvidia_isaac/packages/iam-devices/librabbitMq_module.so”
This does not exist. Below is the creation of my module:
isaac_cc_module(
name=“rabbitMq”,
srcs=[“isaac/OrchestratorGoalListener.cpp”],
hdrs=[“isaac/OrchestratorGoalListener.hpp”, “isaac/conn_handler.h”],
deps=[“//third_party:amqpcpp”, “//third_party:libevent”]
)
It is also included at the top of the build file under mdoules as “//packages/iam-devices:rabbitMq”. It is also in my “*.app.json” file under modules as “iam-devices:rabbitMq”. (iam-devices is under the packages folder of my isaac root directory)