Task #2303
closedCygwin compilation
0%
Description
This task is to track progress and report issues for cygwin compilation (windows platform)
Files
Updated by Alex Afanasyev about 10 years ago
- File packages.txt packages.txt added
I was able to compile both ndn-cxx and NFD on windows platform using Cygwin64.
Most of the tools and dependencies can be installed using cygwin-provided packages. The only exception is CryptoPP library, which has small problem with compilation under cygwin. I have created a fork of cryptopp with one small patch that addresses the issue:
git clone https://github.com/cawka/cryptopp
cd cryptopp
make
make install
I'm attaching a list of packages that are installed on my system that are enough to compile the code.
Due to bugs in cygwin, code needs to be compiled with customized C++ flags. The following worked for me:
ndn-cxx¶
Debug mode
CXXFLAGS="-std=c++0x -std=c++11 -pedantic -Wall -O0 -Og -g3 -Werror -Wno-error=maybe-uninitialized -U__STRICT_ANSI__ -D_GLIBCXX_USE_C99_DYNAMIC -D_GLIBCXX_USE_C99" ./waf configure --debug --with-tests
Optimized mode
CXXFLAGS="-std=c++0x -std=c++11 -pedantic -Wall -O2 -g -Werror -Wno-error=maybe-uninitialized -U__STRICT_ANSI__ -D_GLIBCXX_USE_C99_DYNAMIC -D_GLIBCXX_USE_C99" ./waf configure
NFD¶
Debug mode
CXXFLAGS="-std=c++0x -std=c++11 -pedantic -Wall -O0 -Og -g3 -Werror -Wno-error=maybe-uninitialized -U__STRICT_ANSI__ -D_GLIBCXX_USE_C99_DYNAMIC -D_GLIBCXX_USE_C99 -D__STDC_FORMAT_MACROS" ./waf configure --debug --with-tests --without-libpcap
Optimized mode
CXXFLAGS="-std=c++0x -std=c++11 -pedantic -Wall -O2 -g -Werror -Wno-error=maybe-uninitialized -U__STRICT_ANSI__ -D_GLIBCXX_USE_C99_DYNAMIC -D_GLIBCXX_USE_C99 -D__STDC_FORMAT_MACROS" ./waf configure --without-libpcap
Updated by Davide Pesavento about 6 years ago
- Status changed from New to Abandoned
- Start date deleted (
12/15/2014)
With WSL in Windows 10 making things much simpler, I don't think it makes sense to pursue this task anymore. For native Windows builds, recent versions of MSVC have much better support for modern C++ features.