that code seems to be seriously outdated, take sample plugin from the src/examples/sample-plugin
https://git.fd.io/vpp/tree/src/examples/sample-plugin <https://git.fd.io/vpp/tree/src/examples/sample-plugin> — Damjan > On 14 Apr 2020, at 15:14, tupai via lists.fd.io > <tupaithegreat=yahoo....@lists.fd.io> wrote: > > Hi All, > > I was following the Macswap Breakdown YouTube video and downloaded the > tarball. > > Steps: > tar -zxvf macswap-plugin.tar.gz -C /root/vpp-dev/vpp/devboot > cd /root/vpp-dev/vpp/devboot/macswap-plugin/ > autoreconf -i -f > mkdir build > cd build > ../configure --with-plugin-toolkit > [root@vpp-dev build]# make > mkdir -p `dirname macswap/macswap.api.h` ; \ > gcc -E -P -C -x c ../macswap/macswap.api \ > | vppapigen --input - --output macswap/macswap.api.h --show-name > macswap/macswap.api.h > /bin/sh: line 2: vppapigen: command not found > make: *** [macswap/macswap.api.h] Error 127 > [root@vpp-dev build]# > > I looked for vppapigen and it was present. Can someone guide me on where I am > going wrong? > > [root@vpp-dev vpp]# find ./ -name vppapigen > ./build-root/build-vpp_debug-native/vpp/tools/vppapigen > ./build-root/install-vpp_debug-native/vpp/bin/vppapigen > ./src/tools/vppapigen > ./src/tools/vppapigen/vppapigen > [root@vpp-dev vpp]# > > > VPP git hash is : > commit 81767d71a943fcf1196867549a6b48122f259695 > Author: neale ranns <nra...@cisco.com <mailto:nra...@cisco.com>> > Date: Thu Apr 9 13:03:45 2020 +0000 > > vom: Fixes for g++-9 > > Type: improvement > > Signed-off-by: neale ranns <nra...@cisco.com <mailto:nra...@cisco.com>> > Change-Id: I356251b750fcab05ff91e0295e96a8451e8b2f88 > > OS is: > [root@vpp-dev vpp]# cat /etc/redhat-release > CentOS Linux release 7.7.1908 (Core) > [root@vpp-dev vpp]# uname -r > 3.10.0-1062.el7.x86_64 > [root@vpp-dev vpp]# > > Also, make build and make rebuild works fine on the base directory. > VPP and all it’s other plugins compile fine but macswap plugin is not a part > of it. > > Regards, > Surajit >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16070): https://lists.fd.io/g/vpp-dev/message/16070 Mute This Topic: https://lists.fd.io/mt/73009799/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-