Closed shahriar0651 closed 1 year ago
@shahriar0651 Please modify your "configure.user" file for OMNET++
Please modify the line with CXXFLAGS
(probably line 36) to CXXFLAGS=-std=c++14
Clean and recompile OMNET++, then try compiling VASP again.
Thanks. After updating CXXFLAGS I see the following error:
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Here are the versions of my compilers:
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
c++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
clang version 10.0.0-4ubuntu1
Do I need to update anything to make them compatible?
@shahriar0651 I tried to rebuild everything in an Ubuntu 20.04 instance.
I did encounter your earlier error with make_unique
. However, after changing CXXFLAGS
as suggested:
... everything built right on the OMNET++ front
... and on the VEINS-VASP front
I have the same compiler versions as you:
Are you sure you used make clean
or make cleanall
in both OMNET++ and VEINS directories before recompiling?
Have you configured your paths correctly in your ".bashrc" file?
Hi @raash1d, Thanks for your response. Rebuilding OMNet++ along with updating CXXFLAGS helped! Now there is no issue with the building. However, I am facing the following issue while running the simulation with ./run [-u Cmdenv]
Any suggestion would be highly appreciated. Thanks!
This is common convention of usage instructions, anything inside a []
is optional.
If you want to use those options, you need to use them without the []
. e.g., ./run -u Cmdenv
.
P.S.: Thanks for raising this issue, I have updated the instructions regarding CXXFLAGS in the README.
Got it. Now the simulation is working perfectly and generating the trace file. Thanks for your help!
Summary
While building vasp (See step 2 in Build:
./configure && make [-j6]
), there comes an error vasp/driver/CarApp.cc:258:19: error: no template named 'make_unique' in namespace 'std'; did you mean 'veins::make_unique'?After searching for the error, it appears that make_unique is a C++14 feature and thus might not be available on my compiler with the following
c++ --version
.To Reproduce (for bugs)
Steps to reproduce the behavior:
./configure && make [-j6]
Expected behavior
The building process should go smoothly as did for veins without an error (missing nameplate)
Screenshots
System Information (please complete the following information):
Additional context
Here are the PATH variables while I was building: