Skip to content

Build error after running switch_ms-van3t-CARLA.sh #61

@jakir-ansari

Description

@jakir-ansari

After installing CARLA, OpenCDA and then running the switch_ms-van3t-CARLA.sh script, I am getting the following error upon executing "./ns3 build":

[8/1840] Building CXX object src/autom...dir/v2v-cam-exchange-sionna-nrv2x.cc.o
FAILED: src/automotive/examples/CMakeFiles/v2v-cam-exchange-sionna-nrv2x.dir/v2v-cam-exchange-sionna-nrv2x.cc.o 
ccache /usr/bin/clang++  -DCARES_STATICLIB -DCMAKE_EXAMPLE_AS_TEST -DHAVE_GSL -DHAVE_LIBXML2 -DHAVE_SQLITE3 -DNS3_ASSERT_ENABLE -DNS3_BUILD_PROFILE_DEBUG -DNS3_ENABLE_EXAMPLES -DNS3_LOG_ENABLE -DPROJECT_SOURCE_PATH=\"/home/jakir/VaN3Twin/ns-3-dev\" -D__LINUX__ -I/usr -Iinclude -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gtk-3.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/libxml2 -I/usr/include/python3.8 -isystem /usr/local/include/opencv4 -g -fPIE   -fcolor-diagnostics -Wall -std=gnu++17 -MD -MT src/automotive/examples/CMakeFiles/v2v-cam-exchange-sionna-nrv2x.dir/v2v-cam-exchange-sionna-nrv2x.cc.o -MF src/automotive/examples/CMakeFiles/v2v-cam-exchange-sionna-nrv2x.dir/v2v-cam-exchange-sionna-nrv2x.cc.o.d -o src/automotive/examples/CMakeFiles/v2v-cam-exchange-sionna-nrv2x.dir/v2v-cam-exchange-sionna-nrv2x.cc.o -c ../src/automotive/examples/v2v-cam-exchange-sionna-nrv2x.cc
In file included from ../src/automotive/examples/v2v-cam-exchange-sionna-nrv2x.cc:29:
In file included from include/ns3/BSMap.h:4:
In file included from include/ns3/BSContainer.h:10:
In file included from include/ns3/cpBasicService_v1.h:19:
In file included from include/ns3/CPMV1.h:16:
In file included from include/ns3/CollectivePerceptionMessageV1.h:16:
In file included from include/ns3/CpmParametersV1.h:57:
In file included from include/ns3/SensorInformationContainerV1.h:44:
In file included from include/ns3/SensorInformationV1.h:17:
In file included from include/ns3/DetectionAreaV1.h:16:
In file included from include/ns3/AreaRadialV1.h:56:
In file included from include/ns3/OffsetPointV1.h:15:
In file included from include/ns3/NodeOffsetPointXY.h:22:
include/ns3/RegionalExtension.h:37:3: warning: empty union has size 0 in C, size 1 in C++ [-Wextern-c-compat]
                union RegionalExtension_369P0__regExtValue_u {
                ^
../src/automotive/examples/v2v-cam-exchange-sionna-nrv2x.cc:587:53: error: no member named 'getAverageSINR_overall' in 'ns3::MetricSupervisor'; did you mean 'getAveragePRR_overall'?
  outputFile << "Average SINR (dB): " << metSup_nr->getAverageSINR_overall() << std::endl;
                                                    ^~~~~~~~~~~~~~~~~~~~~~
                                                    getAveragePRR_overall
include/ns3/MetricSupervisor.h:111:10: note: 'getAveragePRR_overall' declared here
  double getAveragePRR_overall(void) {return m_avg_PRR;}
         ^
1 warning and 1 error generated.
ninja: build stopped: subcommand failed.
Finished executing the following commands:
cd build; cmake --build . -j 7 ; cd ..

I am thinking that it may be due to a bug in the adapt_files.py script but I'm not sure.

Note: I installed CARLA 0.9.12 externally and OpenCDA externally as well through conda. I am running on Ubuntu 20.04.

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