Posted on 2012/01/07 08:47
Filed Under 분류없음

mac에 mercurial이 설치되어 있어야 한다.


설치 명령은 다음과 같다. 기본적인 저장소인 ns-3-allinone 이다.
wondoui-MacBook-Air:ns3 yarang$ hg clone http://code.nsnam.org/ns-3-allinone destination directory: ns-3-allinone requesting all changes adding changesets adding manifests adding file changes added 49 changesets with 69 changes to 7 files updating to branch default 7 files updated, 0 files merged, 0 files removed, 0 files unresolved wondoui-MacBook-Air:ns3 yarang$


기본 저장소에서 ns-3를 다운로드받은 후에 전체 파일의 다운로드를 실행한다.


wondoui-MacBook-Air:ns-3-allinone yarang$ ls
README		constants.py	download.py
build.py	dist.py		util.py
wondoui-MacBook-Air:ns-3-allinone yarang$ ./download.py 

    #
    # Get NS-3
    #
    
Cloning ns-3 branch
 =>  hg clone http://code.nsnam.org/ns-3-dev ns-3-dev
requesting all changes
adding changesets
adding manifests
adding file changes
added 7678 changesets with 35905 changes to 6040 files
updating to branch default
2086 files updated, 0 files merged, 0 files removed, 0 files unresolved

    #
    # Get PyBindGen
    #
    
Required pybindgen version:  0.15.0.795
Trying to fetch pybindgen; this will fail if no network connection is available.  Hit Ctrl-C to skip.
 =>  bzr checkout -rrevno:795 https://launchpad.net/pybindgen pybindgen
 *** Did not fetch pybindgen; python bindings will not be available.

    #
    # Get NSC
    #
    
Architecture (darwin) does not support NSC... skipping
 *** Did not fetch NSC; NSC will not be available.
wondoui-MacBook-Air:ns-3-allinone yarang$ 


다운로드받은 파일을 확인하는 것은 ls명령으로 확인한다. 실제 ns-3용 소스들은 ns-3-dev 디렉토리에 다운로드가 완료되어있다.
wondoui-MacBook-Air:ns-3-allinone yarang$ ls README constants.py dist.py ns-3-dev util.pyc build.py constants.pyc download.py util.py wondoui-MacBook-Air:ns-3-allinone yarang$ ls ns-3-dev/ AUTHORS VERSION scratch utils.py wutils.py CHANGES.html bindings src waf LICENSE doc test.py waf-tools README examples testpy.supp waf.bat RELEASE_NOTES ns3 utils wscript wondoui-MacBook-Air:ns-3-allinone yarang$
크리에이티브 커먼즈 라이센스
Creative Commons License
2012/01/07 08:47 2012/01/07 08:47
TAG :

Posted on 2012/01/01 01:26
Filed Under 분류없음

NS3 소스에는 Python 소스들이 포함되어 있다. 이들 소스들은 기본적으로 보기 위해서는 Xcode와 같은 외부 에디터들이 호출되어 파일의 내용을 확인하게 된다.

PyDev Plugin은 Python을 위한 eclipse의 plugin이다. 설치 방법은 "update site"를 이용하는 방식이 유용하다. 이 방법은 저장소를 추가하여 update 형식으로 plugin을 설치하는 방법이다.

사용자 삽입 이미지

PyDev의 저장소의 URL은 "http://www.pydev.org/updates/"이다.

사용자 삽입 이미지

PyDev에서 제공하는 plugin 패키지는 PyDev와 Mylyn을 지원하는 plugin까지 두가지를 제공한다.

사용자 삽입 이미지

PyDev는 추가적인 certificate를 요구한다. aptana PyDev에 대한 것으로 선택하고 "OK"버튼을 클릭하면 다음 단계로 넘어간다.
크리에이티브 커먼즈 라이센스
Creative Commons License
2012/01/01 01:26 2012/01/01 01:26

Posted on 2012/01/01 01:16
Filed Under 분류없음

Eclipse에서 NS3 소스를 읽어들여 프로젝트를 만드는 방법에 대해서 기술한다.

1. empty C/C++ Project를 만드는 것으로 선택한다.

사용자 삽입 이미지

2. NS3 소스를 프로젝트에 추가하여 프로젝트 생성하기

사용자 삽입 이미지

본 글에서는 프로젝트의 이름을 ns-3-lr-wpan 으로 잡았다. 그리고 하단의 "Use default location" 부분의 선택을 없애 고 실제 소스가 있는 위치를 설정한다. 모든 설정을 마치고나면 "finish"버튼을 클릭하여 프로젝트를 생성한다.

크리에이티브 커먼즈 라이센스
Creative Commons License
2012/01/01 01:16 2012/01/01 01:16

About

by 야랑이

Counter

· Total
: 71711
· Today
: 70
· Yesterday
: 77