Skip to content

Some problems while linking the libraries #24

Description

@kirazero17

I seem to get undefined reference to objects in the bm_runtime namespace while building NS-3.39 with P4sim (with all examples).

This is only resolved after I copied libbmruntime.a from the behavioral model version 2 build artifact to /usr/local/lib, then create a pc file (I named it bmruntime.pc) in that directory with the following content:

prefix=/usr/local
exec_prefix=\${prefix}
libdir=\${exec_prefix}/lib
includedir=/usr/local/include/bm

Name: BMv2
Description: Behavioral Model
Version: 1.15.0
Libs: -L\${libdir} -lbmruntime
Cflags: -I\${includedir}

and added bmruntime and thrift to the third party libraries list in P4sim's CMakeLists.txt.

I dunno if anyone also encountered this behaviour ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions