Closed ravi3442 closed 11 years ago
Something wrong with your compilation. The error error: ns3/ndnSIM-module.h: No such file or directory
means that ndnSIM was not compiled.
The problem most likely related to boost libraries.
Can you send me your build/config.log?
Here it is Alex.
thanks Ravi
On Mon, Oct 22, 2012 at 1:07 PM, Alex Afanasyev notifications@github.comwrote:
Something wrong with your compilation. The error error: ns3/ndnSIM-module.h: No such file or directory means that ndnSIM was not compiled.
The problem most likely related to boost libraries.
Can you send me your build/config.log?
— Reply to this email directly or view it on GitHubhttps://github.com/NDN-Routing/ndnSIM/issues/10#issuecomment-9678519.
I guess github doesn't allow attachments. Can you please copy-paste config.log to http://pastebin.com/ ?
Can i mail it to you, its quite a big file ?..or probably you can take a fresh clone and see if it works.
Thanks Ravi
On Mon, Oct 22, 2012 at 1:27 PM, Alex Afanasyev notifications@github.comwrote:
I guess github doesn't allow attachments. Can you please copy-paste config.log to http://pastebin.com/ ?
— Reply to this email directly or view it on GitHubhttps://github.com/NDN-Routing/ndnSIM/issues/10#issuecomment-9679186.
I tried building from the scratch yesterday and it was working perfectly. As I said before, you have the problem because ndnSIM was not compiled and most likely reason is that something wrong with boost libraries. Btw. Which OS/version are you using?
config.log
is not that big. I checked mine and it is only about 700 lines. But in any case, you can send it to me (email is in the header of all ndnSIM source files, and my name is Alexander :-))
The problem was related to missing boost libraries. I generally advise installing the latest distribution of Linux (e.g., Ubuntu 12.10) with a recent version (at least 1.48) of boost libraries. Old boost libraries are not compatible with ndnSIM.
For example how to build custom boost libraries as non-root user, please refer to the following documentation: http://ndnsim.net/boost-custom-install.html
actually it works with older boost libraries, just need a few modifications (header file locations, function names)
After all the compile, I copied ndn-grid.cc to scratch/ , and did a ./waf, i get the following :
Waf: Entering directory `/home/ravi/Documents/code/ndnSIM/ns-3/build' [ 708/1620] cxx: scratch/ndn-grid.cc -> build/scratch/ndn-grid.cc.2.o ../scratch/ndn-grid.cc:25:31: error: ns3/ndnSIM-module.h: No such file or directory ../scratch/ndn-grid.cc:29: error: ‘ndn’ is not a namespace-name ../scratch/ndn-grid.cc:29: error: expected namespace-name before ‘;’ token ../scratch/ndn-grid.cc: In function ‘int main(int, char**)’: ../scratch/ndn-grid.cc:84: error: ‘ndn’ has not been declared ../scratch/ndn-grid.cc:84: error: expected ‘;’ before ‘ndnHelper’ ../scratch/ndn-grid.cc:85: error: ‘ndnHelper’ was not declared in this scope ../scratch/ndn-grid.cc:89: error: ‘ndn’ has not been declared
The header file ndnSIM-module.h is not in the package, or am I missing something ?
Thanks Ravi