how to use ns3-ai together with NS3-NR

25 views
Skip to first unread message

lu wei lu

unread,
May 15, 2024, 10:05:22 AMMay 15
to ns-3-users
I would like to use ns3-ai together with NS3-NR
i have try to add "ns3/nr-module.h" to apb.cc
then 
FAILED: ../build/contrib/ai/examples/a-plus-b/ns3.41-ns3ai_apb_msg_stru-default
: && /usr/bin/c++ -O2 -g -DNDEBUG  contrib/ai/examples/a-plus-b/CMakeFiles/ns3ai_apb_msg_stru.dir/use-msg-stru/apb.cc.o -o ../build/contrib/ai/examples/a-plus-b/ns3.41-ns3ai_apb_msg_stru-default -L/home/ns3/ns-3-dev/build/lib -Wl,-rpath,/home/ns3/ns-3-dev/build/lib  -Wl,--no-as-needed  ../build/lib/libns3.41-ai-default.so  -Wl,--as-needed  ../build/lib/libns3.41-core-default.so  -Wl,--no-as-needed  -Wl,--as-needed  /usr/lib/x86_64-linux-gnu/libgsl.so  /usr/lib/x86_64-linux-gnu/libgslcblas.so  -lprotobuf && :
/usr/bin/ld: contrib/ai/examples/a-plus-b/CMakeFiles/ns3ai_apb_msg_stru.dir/use-msg-stru/apb.cc.o: in function `__static_initialization_and_destruction_0(int, int) [clone .constprop.0]':
/home/ns3/ns-3-dev/contrib/nr/model/beam-id.h:92: undefined reference to `ns3::BeamId::BeamId(unsigned short, double)'
/usr/bin/ld: /home/ns3/ns-3-dev/contrib/nr/model/beam-id.h:100: undefined reference to `ns3::BeamId::BeamId(unsigned short, double)'
/usr/bin/ld: contrib/ai/examples/a-plus-b/CMakeFiles/ns3ai_apb_msg_stru.dir/use-msg-stru/apb.cc.o: in function `__static_initialization_and_destruction_0(int, int) [clone .constprop.0]':
/home/ns3/ns-3-dev/contrib/nr/utils/traffic-generators/helper/xr-traffic-mixer-helper.h:78: undefined reference to `ns3::TrafficGenerator3gppPoseControl::GetTypeId()'
/usr/bin/ld: /home/ns3/ns-3-dev/contrib/nr/utils/traffic-generators/helper/xr-traffic-mixer-helper.h:78: undefined reference to `ns3::TrafficGenerator3gppGenericVideo::GetTypeId()'
/usr/bin/ld: /home/ns3/ns-3-dev/contrib/nr/utils/traffic-generators/helper/xr-traffic-mixer-helper.h:78: undefined reference to `ns3::TrafficGenerator3gppAudioData::GetTypeId()'
/usr/bin/ld: /home/ns3/ns-3-dev/contrib/nr/utils/traffic-generators/helper/xr-traffic-mixer-helper.h:78: undefined reference to `ns3::TrafficGenerator3gppPoseControl::GetTypeId()'
/usr/bin/ld: /home/ns3/ns-3-dev/contrib/nr/utils/traffic-generators/helper/xr-traffic-mixer-helper.h:78: undefined reference to `ns3::TrafficGeneratorNgmnVideo::GetTypeId()'
/usr/bin/ld: /home/ns3/ns-3-dev/contrib/nr/utils/traffic-generators/helper/xr-traffic-mixer-helper.h:78: undefined reference to `ns3::TrafficGenerator3gppAudioData::GetTypeId()'
/usr/bin/ld: /home/ns3/ns-3-dev/contrib/nr/utils/traffic-generators/helper/xr-traffic-mixer-helper.h:78: undefined reference to `ns3::TrafficGenerator3gppGenericVideo::GetTypeId()'
/usr/bin/ld: /home/ns3/ns-3-dev/contrib/nr/utils/traffic-generators/helper/xr-traffic-mixer-helper.h:78: undefined reference to `ns3::TrafficGenerator3gppGenericVideo::GetTypeId()'
/usr/bin/ld: /home/ns3/ns-3-dev/contrib/nr/utils/traffic-generators/helper/xr-traffic-mixer-helper.h:78: undefined reference to `ns3::TrafficGenerator3gppAudioData::GetTypeId()'
/usr/bin/ld: /home/ns3/ns-3-dev/contrib/nr/utils/traffic-generators/helper/xr-traffic-mixer-helper.h:78: undefined reference to `ns3::TrafficGenerator3gppPoseControl::GetTypeId()'
/usr/bin/ld: /home/ns3/ns-3-dev/contrib/nr/utils/traffic-generators/helper/xr-traffic-mixer-helper.h:78: undefined reference to `ns3::TrafficGenerator3gppGenericVideo::GetTypeId()'
/usr/bin/ld: /home/ns3/ns-3-dev/contrib/nr/utils/traffic-generators/helper/xr-traffic-mixer-helper.h:78: undefined reference to `ns3::TrafficGenerator3gppGenericVideo::GetTypeId()'
/usr/bin/ld: /home/ns3/ns-3-dev/contrib/nr/utils/traffic-generators/helper/xr-traffic-mixer-helper.h:78: undefined reference to `ns3::TrafficGenerator3gppAudioData::GetTypeId()'
/usr/bin/ld: /home/ns3/ns-3-dev/contrib/nr/utils/traffic-generators/helper/xr-traffic-mixer-helper.h:78: undefined reference to `ns3::TrafficGenerator3gppPoseControl::GetTypeId()'
/usr/bin/ld: /home/ns3/ns-3-dev/contrib/nr/utils/traffic-generators/helper/xr-traffic-mixer-helper.h:78: undefined reference to `ns3::TrafficGeneratorNgmnVoip::GetTypeId()'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

how can i solve it.
apb.cc
Reply all
Reply to author
Forward
0 new messages