[ndnSIM] Error compiling ndnSIM
alexander.afanasyev at ucla.edu
Thu Feb 7 09:58:14 PST 2013
Your ns-3 commit is relatively old, which caused the original (there were changes in NS-3 regarding random variables) and this new problem (there is one custom extension of NS-3 that is necessary).
If you didn't make your own modifications in NS-3, i would suggest the following:
git fetch origin
git reset --hard 66f29d7ee66d1eed8
git merge origin/master
**DO IT ONLY IF YOU HAVE NOT MODIFIED NS-3**, otherwise you will lose your changes (as reset --hard will reset everything).
If you have modified, then I would suggest other options to synchronize.
On Feb 7, 2013, at 9:45 AM, Chiara Contoli <chiara.contoli at gmail.com> wrote:
> Sorry, I've forgotten to tell you that
> ns-3 is at 0ccbbd580b69ea03e8ecc70c18a7d0469fc825b4
> ndnSIM is at eec6629e3c04689116ecd866ec5cb6b2784cf996
> Il giorno 07/feb/2013, alle ore 09:40, Chiara Contoli ha scritto:
>> I compiled without the "mobility" option from configure command, but now I get another error:
>> ../src/ndnSIM/tools/rocketfuel-maps-cch-to-annotaded.cc: In function ‘int main(int, char**)’:
>> ../src/ndnSIM/tools/rocketfuel-maps-cch-to-annotaded.cc:64:15: error: no match for ‘operator<<’ in ‘std::cerr << cmd’
>> ../src/ndnSIM/tools/rocketfuel-maps-cch-to-annotaded.cc:64:15: note: candidates are:
>> and the output is very long due to this error, but if you I attach all the output.
>> Il giorno 07/feb/2013, alle ore 08:45, Alex Afanasyev ha scritto:
>>> Hi Chiara,
>>> You can try to remove "mobility" from configure command.
>>> Btw, are you using ndnSIM with customized version of NS3? Can you tell me which commits (commit hashes) for ndnSIM and NS3 you are using?
>>> On Feb 7, 2013, at 8:31 AM, Chiara Contoli <chiara.contoli at gmail.com> wrote:
>>>> Hi Alex,
>>>> yesterday I have update the code of ndnSIM with which I'm currently working, with the code placed in your repo, but now when I compile I get the following error:
>>>> In file included from ../src/ndnSIM/plugins/mobility/highway-position-allocator.cc:22:0:
>>>> ../src/ndnSIM/plugins/mobility/highway-position-allocator.h:53:11: error: ‘UniformRandomVariable’ does not name a type
>>>> ../src/ndnSIM/plugins/mobility/highway-position-allocator.cc: In member function ‘virtual ns3::Vector ns3::HighwayPositionAllocator::GetNext() const’:
>>>> ../src/ndnSIM/plugins/mobility/highway-position-allocator.cc:64:23: error: ‘m_random_gap_var’ was not declared in this scope
>>>> ../src/ndnSIM/plugins/mobility/highway-position-allocator.cc: In member function ‘virtual int64_t ns3::HighwayPositionAllocator::AssignStreams(int64_t)’:
>>>> ../src/ndnSIM/plugins/mobility/highway-position-allocator.cc:107:3: error: ‘m_random_gap_var’ was not declared in this scope
>>>> This is what I typed after the update:
>>>> ./waf clean
>>>> ./waf configure --enable-examples --enable-ndn-plugins=topology,mobility
>>>> and after the above commands everything was ok, but then, when I typed
>>>> I got the error above mentioned. How could i fixed that?
More information about the ndnSIM