1
최근 ns-3에서 일부 네트워크 시뮬레이션을 수행해야하지만 ns-3은 Linux에서 작동합니다. 그래서 Windows 7에 cygwin을 설치하고 튜토리얼에서 보여주는 것과 같이 'Base', 'Devel' 및 'Python' 모듈을 설치했습니다.cygwin에서 일부 ns-3 빌드 오류 windows7-64bit
첫 번째 문제는 내가 그런
./build.py
명령
을 사용하여 NS-3를 구축 할 때 그것은 파이썬 검사를 생략하기 때문에 마지막 줄이 이상하다$ ./build.py
# Skip NetAnim (platform not supported)
# Build NS-3
Entering directory `./ns-3-dev'
Note: configuring ns-3 without pybindgen
=> /usr/bin/python waf configure
Setting top to : /home/Dell/workspace/ns-3-allinone/ns-3-dev
Setting out to : /home/Dell/workspace/ns-3-allinone/ns-3-dev/build
Checking for 'gcc' (C compiler) : /usr/bin/gcc
Checking for cc version : 5.4.0
Checking for 'g++' (C++ compiler) : /usr/bin/g++
Python is not supported in CygWin environment. Try MingW instead.
같은 이상한 일을 보였으이다 라인
'configure' finished successfully (45.850s)
여전히 나타납니다. 그래서 무시해야합니까?
그리고 빌드 할 때 두 번째 문제는 보였다
[ 966/1741] Compiling src/spectrum/model/aloha-noack-mac-header.cc
../src/wifi/model/dsss-error-rate-model.cc: In static function ‘static double ns3::DsssErrorRateModel::DqpskFunction(double)’:
../src/wifi/model/dsss-error-rate-model.cc:38:54: Error:‘M_PI’ is not declared in this scope.
return ((std::sqrt (2.0) + 1.0)/std::sqrt (8.0 * M_PI * std::sqrt (2.0)))
^
Waf: Leaving directory `/home/Dell/workspace/ns-3-allinone/ns-3-dev/build'
Build failed
처럼 뭔가를했다. 그래서 나는이 문제를 봤어 그것이 내 C 컴파일러에 의해 발생할 수 있습니다 찾으십시오. 하지만 해결책은 없습니다.
그럼 어떻게해야합니까? (죄송합니다. 내 가난한 영어 ...)
CFLAGS 또는 CXXFLAGS에 범위를 제한하는 "-std = .."플래그가 포함되어 있는지 확인하십시오. – matzeri
좀 더 구체적으로 설명해 주시겠습니까? 전에 Cygwin이나 Linux를 사용하지 않았습니다 ... –