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 ?
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.afrom the behavioral model version 2 build artifact to/usr/local/lib, then create a pc file (I named itbmruntime.pc) in that directory with the following content:and added
bmruntimeandthriftto the third party libraries list in P4sim's CMakeLists.txt.I dunno if anyone also encountered this behaviour ?