Hello-I’m on Ubuntu 18.04 and I have a ROS project that builds and runs as expected. However, when I try to create a snap, I get the following build errors.
First, it can not seem to find any header files that would be below /usr/include. For example I get
file.c: fatal error: net-snmp/net-snmp-config.h: No such file or directory
** #include <net-snmp/net-snmp-config.h>**
** ^~~~~~~~~~~~~~~~~~~~~~~~~~~~**
If I look in /root/parts/workspace/install/usr/include, I do not see the net-snmp subdirectory of course and it seems to be a small subset of what is in /usr/include.
Second, if I just try and link an app that uses libsnmp, I get linker error:
/root/parts/workspace/install/usr/bin/ld: cannot find -lsnmp
Any insight on how to fix this would be appreciated. Not sure it’s needed, but my yaml is below. The errors occur when building package2.
name: my-code base: core18 version: '1.2' summary: Software description: | The Software grade: devel confinement: devmode parts: workspace: plugin: catkin source: . source-space: src source-type: local catkin-packages: [package1, package2] apps: roscore: command: roscore plugs: [network, network-bind]