-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in "cmake --build build --target run_example" #42
Comments
Dear @oscarmex1986, since this error does not occur with more recent OMNeT++ versions (e.g. OMNeT++ 5.4.1 on my system), please consider updating your OMNeT++ installation. |
It throws a different error now. After loading the graphical interface and selecting the veins configuration and clicking on play, it shows: Setting up Qtenv... Loading NED files from /home/oscar/artery/src/artery: 75 Loading images from './bitmaps': : 0 Loading configuration... done. |
I am sorry that you are experiencing a segmentation fault when running Artery. With your help @oscarmex1986 I hope to find and fix this bug: Can you please run the simulation in debug mode (set CMAKE_BUILD_TYPE to "Debug" and then "cmake --build build --target debug_example")? The debugger will then stop (near) the code line causing the problem. Thanks! PS: This example is not faulting on my system, hence I cannot reproduce the problem on my own. |
If I understand correctly, I have to change Line 44 of Makefile in the root directory to
and then run "cmake --build build --target debug_example" on the terminal in the root directory. The output is |
Also, when building the run_example, it showed a warning about Boost: -- Boost version: 1.65.1 CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message): Could it be related to the issue? |
No, do not change the Makefile! Go to your build directory and use |
I ran the debug_example, and this is where I am at: |
I ran the debugger and this is the output: Program received signal SIGSEGV, Segmentation fault. |
I rebuilt all in Debug mode and ran the debugger. These two are the outputs:
|
This might be related to #44. I am still wondering though why there is no such problem on my system. |
I checked out #44 and ran the debugger again. Then I built run_example and it worked. |
`OMNeT++ Discrete Event Simulation (C) 1992-2017 Andras Varga, OpenSim Ltd.
Version: 5.2, build: 170929-f95315d, edition: Academic Public License -- NOT FOR COMMERCIAL USE
See the license for distribution terms and warranty disclaimer
Setting up Qtenv...
Loading NED files from /home/oscar/artery/src/artery:
<!> Error: Could not load NED sources from '/home/oscar/artery/src/artery': Syntax error, at /home/oscar/artery/src/artery/networking/Vanetza.ned:26
End.
scenarios/artery/CMakeFiles/run_example.dir/build.make:57: recipe for target 'scenarios/artery/CMakeFiles/run_example' failed
make[3]: *** [scenarios/artery/CMakeFiles/run_example] Error 1
CMakeFiles/Makefile2:576: recipe for target 'scenarios/artery/CMakeFiles/run_example.dir/all' failed
make[2]: *** [scenarios/artery/CMakeFiles/run_example.dir/all] Error 2
CMakeFiles/Makefile2:583: recipe for target 'scenarios/artery/CMakeFiles/run_example.dir/rule' failed
make[1]: *** [scenarios/artery/CMakeFiles/run_example.dir/rule] Error 2
Makefile:259: recipe for target 'run_example' failed
make: *** [run_example] Error 2
`
I'm installing the newest version of the simulation environment, and this error shows up. I'm running it in buntu 16.04, with GCC , Boost 1.65.1 and OMNET++ 5.2. I've also tried to reset to previous releases, but different errors occur.
The text was updated successfully, but these errors were encountered: