Project

General

Profile

Actions

Task #2303

closed

Cygwin compilation

Added by Alex Afanasyev almost 10 years ago. Updated almost 6 years ago.

Status:
Abandoned
Priority:
Normal
Assignee:
-
Category:
Build
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

This task is to track progress and report issues for cygwin compilation (windows platform)


Files

packages.txt (15.8 KB) packages.txt List of packages to install (list has a little more than necessary) Alex Afanasyev, 12/15/2014 10:02 PM
Actions #1

Updated by Alex Afanasyev almost 10 years ago

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
Actions #2

Updated by Alex Afanasyev almost 8 years ago

  • Assignee deleted (Alex Afanasyev)
Actions #3

Updated by Davide Pesavento almost 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.

Actions

Also available in: Atom PDF