[ndnSIM] Error Compiling ndn-cxx on Ubuntu 12.04 (32Bit)
Spyridon (Spyros) Mastorakis
spiros.mastorakis at gmail.com
Thu Feb 19 09:03:19 PST 2015
Hello Daniel,
I will forward your email to the mailing list related to the library. Here is the ndnSIM mailing list. :)
However, in general, I would like you to follow this link:
http://ndnsim.net/2.0/getting-started.html#portability
I have seen that you used gcc 4.8.1, but just keep in mind that there is an issue with boost libraries and gcc in Ubuntu 12.04.
--
Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/
Internet Research Laboratory
PhD Computer Science
UCLA
> On Feb 19, 2015, at 2:25 AM, Daniel Posch <poschdaniel2 at gmail.com> wrote:
>
> Hello,
>
> I have an error compiling ndn-cxx on Ubuntu 12.04.5 LTS (32 Bit). The output of the compiler is:
>
> In file included from /usr/include/cryptopp/filters.h:7:0,
> from /usr/include/cryptopp/asn.h:4,
> from ../src/encoding/../security/cryptopp.hpp:29,
> from ../src/encoding/oid.cpp:27:
> /usr/include/cryptopp/secblock.h: In instantiation of ‘CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned char; bool T_Align16 = false; CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer = unsigned char*; CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type = unsigned int]’:
> /usr/include/cryptopp/secblock.h:247:25: required from ‘CryptoPP::SecBlock<T, A>::SecBlock(CryptoPP::SecBlock<T, A>::size_type) [with T = unsigned char; A = CryptoPP::AllocatorWithCleanup<unsigned char>; CryptoPP::SecBlock<T, A>::size_type = unsigned int]’
> /usr/include/cryptopp/algparam.h:17:2: required from here
> /usr/include/cryptopp/secblock.h:91:14: error: ‘CheckSize’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
> CheckSize(n);
>
> I have searched for that error and found #Bug 1700: http://redmine.named-data.net/issues/1700
> The solution provided by Alex in this discussion does not work for me. My configure command is:
>
> ./waf configure --prefix=/local/users/ndnsim2 --boost-libs=/usr/lib/i386-linux-gnu --without-pch"
> Setting top to : /local/users/ndnsim2/ndnSIM/ndn-cxx
> Setting out to : /local/users/ndnsim2/ndnSIM/ndn-cxx/build
> Checking for 'g++' (C++ compiler) : /usr/bin/g++
> Checking supported CXXFLAGS : -std=c++11
> Checking supported CXXFLAGS : -pedantic -Wall -O2 -g
> Checking for program 'doxygen' : not found
> Checking for program 'tar' : /bin/tar
> Checking for program 'sphinx-build' : not found
> Checking for std::is_default_constructible : yes
> Checking for std::is_move_constructible : yes
> Checking for std::is_move_assignable : yes
> Checking for friend typename-specifier : yes
> Checking for program 'sh' : /bin/sh
> Checking for library pthread : yes
> Checking for library rt : yes
> Checking for compiler flags ['-fPIC'] : yes
> Checking for function getpass : yes
> Checking for rtnetlink : yes
> Checking for program 'pkg-config' : /usr/bin/pkg-config
> Checking for 'sqlite3' : yes
> Checking Crypto++ lib : 561
> Checking if CryptoPP library works : yes
> Checking boost includes : 1.55.0
> Checking boost libs : ok
> Checking for boost linkage : ok
> 'configure' finished successfully (1.665s)
>
> I have also tried the following configure command (which was suggested @ http://redmine.named-data.net/issues/1507):
>
> CXXFLAGS="-DCRYPTOPP_DISABLE_ASM" ./waf configure --prefix=/local/users/ndnsim2 --boost-libs=/usr/lib/i386-linux-gnu --without-pch
>
> The code is compiled with gcc version 4.8.1 (Ubuntu 4.8.1-2ubuntu1~12.04).
>
> Best regards,
> Daniel
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
More information about the ndnSIM
mailing list