Thanks Damjan. That worked. However, I think the file src/examples/sample-plugin/sample_plugin_doc.md is still outdated. sample.am file seems to be no longer required. Looks like CMakeLists.txt takes care of everything.
I will try to update this file once I figure it out. Regards, Surajit > On 14-Apr-2020, at 6:47 PM, Damjan Marion <[email protected]> wrote: > > > 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 <http://lists.fd.io/> >> <[email protected] >> <mailto:[email protected]>> 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 <[email protected] <mailto:[email protected]>> >> Date: Thu Apr 9 13:03:45 2020 +0000 >> >> vom: Fixes for g++-9 >> >> Type: improvement >> >> Signed-off-by: neale ranns <[email protected] <mailto:[email protected]>> >> 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 (#16073): https://lists.fd.io/g/vpp-dev/message/16073 Mute This Topic: https://lists.fd.io/mt/73009799/21656 Group Owner: [email protected] Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
