You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I used Click before and wrote some Elements as a package according to this document in the click: There are two ways to add an element class to Click: in the main Click collection, or in a package. We recommend that you use packages for nontrivial collections of elements. It has several advantages -- for example, it will keep your code separate from the main Click code. Check out the sample package in 'etc/samplepackage'.
so I use the sample package and wrote my elements.
now i want to use fast click.
i use dpdk in my project and now when i compile my package element, i see this error.
In file included from /root/fastclick/include/click/array_memory.hh:3,
from /root/fastclick/include/click/vector.hh:4,
from /root/fastclick/include/click/args.hh:5,
from testelement.cc:20:
/root/fastclick/include/click/glue.hh:103:14: fatal error: rte_cycles.h: No such file or directory
#include <rte_cycles.h>
^~~~~~~~~~~~~~
I think the reason of problem is that when i include glue.hh in package element, when compiler goes to glue.hh and reaches to rte function cant find them, because in configure and makefile of package element we don't link them (i don't need them in package element)
i link fastclick with dpdk with configure flags but in sample package i don't know how to do this.
any idea how to fix this?
thanks.
The text was updated successfully, but these errors were encountered:
Ah yes, I don't use packages much. Here a dependy of DPDK is missing so you can't compile. Somehow the DPDK provided "-i" flags did not get to the package "Makefile".
Did you use the pkg-config/meson build for DPDK, or good old make?
Hi
I used Click before and wrote some Elements as a package according to this document in the click:
There are two ways to add an element class to Click: in the main Click collection, or in a package. We recommend that you use packages for nontrivial collections of elements. It has several advantages -- for example, it will keep your code separate from the main Click code. Check out the sample package in 'etc/samplepackage'.
so I use the sample package and wrote my elements.
now i want to use fast click.
i use dpdk in my project and now when i compile my package element, i see this error.
I think the reason of problem is that when i include glue.hh in package element, when compiler goes to glue.hh and reaches to rte function cant find them, because in configure and makefile of package element we don't link them (i don't need them in package element)
i link fastclick with dpdk with configure flags but in sample package i don't know how to do this.
any idea how to fix this?
thanks.
The text was updated successfully, but these errors were encountered: