[P4-dev] Error when running 'make p4ofagent' with bmv2 support

Antonin Bas antonin at barefootnetworks.com
Thu Sep 15 13:17:16 EDT 2016


Hi Sandaruwan,

Did you install bmv2 before compiling p4ofagent?
If you install bmv2 in a system location (with "sudo make install") then
you should not have this issue.

Best,

Antonin

On Thu, Sep 15, 2016 at 2:48 AM, Sandaruwan Jayaweera <
sandaruwangayantha at gmail.com> wrote:

> Hi all,
>
> I am trying to use bmv2 with openflow support. When I try to install
> p4ofagent using,
>
> *git submodule update --init --recursive*
>
> *./autogen.sh*
>
> *./configure **CPPFLAGS=-D_BMV2_ *
>
> *make p4ofagent*
>
> I get the error,
>
>
>
>
> *In file included from src/callbacks.c:21:0:src/state.h: At top
> level:src/state.h:31:31: fatal error: bm/pdfixed/pd_pre.h: No such file or
> directory #include <bm/pdfixed/pd_pre.h>*
>
> Then I manually copied the bm file in behavioral-model/pdfixed/include into
> p4ofagent/inc. After that I was able to install p4ofagent.
>
> Can anyone give any hints? Have I done something wrong while building?
>
>
> Sandaruwan
>
>
>
> _______________________________________________
> P4-dev mailing list
> P4-dev at lists.p4.org
> http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org
>



-- 
Antonin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20160915/ac9162c2/attachment-0002.html>


More information about the P4-dev mailing list