Hello,
Yes, you have to update the wscript in the main ns-3 folder.
In the wscript,you will find the following lines:
bld.env['NS3_MODULES_WITH_TEST_LIBRARIES'] = []
bld.env['NS3_ENABLED_MODULE_TEST_LIBRARIES'] = []
bld.env['NS3_SCRIPT_DEPENDENCIES'] = []
bld.env['NS3_RUNNABLE_PROGRAMS'] = []
bld.env['NS3_RUNNABLE_SCRIPTS'] = []
Add the gurobi library lines below:
bld.env.append_value("CXXFLAGS", "-I//home/username/gurobi650/linux64/include")
bld.env.append_value("LINKFLAGS", ["-L/home/username/gurobi650/linux64/lib"])
bld.env.append_value('LIBPATH', ['-L/home/username/gurobi650/linux64/lib'])
bld.env.append_value("LIB", ["gurobi_c++","gurobi_g++4.1","gurobi65"])
Finally, in the terminal after changing the directory to wokspace/ns-3.version, write the following line:
export LD_LIBRARY_PATH="/home/username/gurobi650/linux64/lib"
P.s.: don't forget to update the paths and gurobi versions in the above lines
Good luck,
Ramy