VeReMi veins 4.6 attacker app rapidjaon on windows

114 views Asked by At

So basically I'm using veins 4.6 for running this attacker app https://github.com/VeReMi-dataset/veins/tree/securecomm2018/src/veins/modules/application/attackerapp but in Windows now I have a problem regarding the rapid Jason

1) the full path where you have unpacked RapidJson; This is my path

C:\Users\Murad\Desktop\rapidjson\include

2) the content of make frag from the src directory of your veins; [enter image description here][1] **#

3) detailed error message these are the photos https://drive.google.com/file/d/11ln1ooG6bO9oG0-RwchaRrkw95wWo2pF/view?usp=sharing https://drive.google.com/file/d/1AZZfYsUbZMIYWqtpAII7alKK7PBGp7xi/view?usp=sharing [1]: https://i.stack.imgur.com/QZnO2.png

1

There are 1 answers

15
Jerzy D. On

OMNeT++ project usually uses Makefile that is generated automatically and it mustn't be edited manually. Try to add the include directory of Rapid JSON using Makefrag.
Let's assume that one unpacked Rapid JSON into the following directory:

C:\Users\Murad\Desktop\rapidjson\include

i.e. there is the file C:\Users\Murad\Desktop\rapidjson\include\rapidjson\stringbuffer.h

There are two ways of editing makefrag:

  • Method 1:
    Go to Project Properties, choose OMNeT++ | Makemake | select src | Options | Custom | Makefrag and write:

    INCLUDE_PATH += -I/c/Users/Murad/Desktop/rapidjson/include
    
  • Method 2:
    Open in any text editor makefrag from veins\src and add the above mentioned line with INCLUDE_PATH.

Note that /c/ means C:\.
Then use in your code:

#include "rapidjson/stringbuffer.h"