2007년 9월 6일 목요일

이클립스 유로파(Eclipse Europa)를 사용한 NS2 통합개발환경(IDE)

요약: 이클립스 유로파(버전 3.3)에서 Makefile로 만들어진 소스코드를 빌드하는 방법을 설명한다. Cygwin 혹은 MinGW에서 컴파일을 하기를 원하는 경우 이 문서에서 소개하는 절차를 따르면 된다. 리눅스에서 같은 작업을 하는 경우에는 컴파일 환경(Cygwin이나 MinGW)을 따로 선택하지 않는 것만 달라진다. 윈도우에서 NS2로 시뮬레이션을 하는 경우, 그리고 사용하고 있는 에디터보다 통합개발환경(IDE)을 사용하여 프로그래밍을 하기를 원하는 사람들에게 유용한 팁이다.


이전에 이클립스에서 NS2를 컴파일하는 방법에 관한 글을 작성한 적이 있는데, 이클립스의 새 버전(3.3)인 유로파가 릴리즈되면서, 프로젝트 생성하는 방법이 좀 달라졌다. 이에 따라 새로이 글을 작성하기로 하였다. 이전의 문서와 동일하게 Cygwin, NS2가 설치되어 있어야 한다.


1. 이클립스 사이트에 가서 Eclipse IDE for C/C++ Developers를 다운로드 받고 설치하시라.

2. 이전 버전에 비해 설정은 매우 간단해졌다. 먼저 File->New->C++ Project를 선택하자. 다음의 그림과 같은 창을 볼 수 있을 것이다.


3. 프로젝트 이름에 ns2 등을 적어주고, Use default location의 체크를 해제한 후 NS2 소스코드가 설치된 디렉토리를 Location에 지정한다. (Browse를 클릭하여, NS2 소스코드가 설치된 디렉토리를 선택하면 되는데, 아마도 CYGWIN/home/USERNAME/ns-allinone-2.xx/ns-2.xx/처럼 되어 있는 것이 가장 일반적인 경우일 것이다. NS2 소스코드 디렉토리로 ns-allinone-2.xx만을 선택하는 일이 없도록 하자. 이럴 경우, Tcl이나 Tk 등의 소스코드마저 포함되기 때문에 너무 거대한 프로젝트가 될 것이다.)

4. Project type은 Makefile project를 클릭하고, 오른쪽 영역에서 toolchain은 Cygwin GCC를 선택한 후, Next 버튼을 클릭하자. 다음과 같은 창을 볼 수 있을 것이다. 이제 Finish 버튼을 눌러 프로젝트 생성을 마무리하자.
NS2 사용자를 위한 또 다른 팁!
이클립스에서는 스크립트 언어를 위한 플러그인을 제공하고 있다. NS2에서 Tcl을 편집할 일이 많으므로, Help->Software Updates->FInd and Install을 선택하여 Dynamic Languages Toolkit을 다운로드 받도록 하자. Tcl에 익숙치 않은 분들에겐 변수, 커맨드 등을 다른 색으로 구분하여 주므로 많은 도움이 된다. Tcl을 사용하는 데 필요한 플러그인은 다음의 두 가지이다.
- Dynamic Languages Toolkit - Core Framework
- Dynamic Languages Toolkit - TCL Development Tools


54 개의 댓글:

익명 :

아무 생각없이 방문했지만 내용은 전문적인 내용이군요.

즐거운 한가위, 여유로운 한가위 되시기 바랍니다.

Joongsoo :

도아님. 방문해 주셔서 감사합니다. 종종 도아님 블로그에서 좋은 글을 많이 발견합니다. 늘 좋은 글 감사합니다.

즐거운 추석 되세요.

익명 :

필요한 내용이 있어 담아 갑니다.
http://www.lastking.net/44
좋은 정보 감사드립니다.

익명 :

We should be chary and fussy in all the intelligence we give. We should be strikingly aware in giving advice that we would not dream up of following ourselves. Most of all, we ought to escape giving advise which we don't follow when it damages those who transport us at our word.

string trimmer

[url=http://string-trimmer-88.webs.com/apps/blog/]string trimmer[/url]

익명 :

We should be chary and discriminating in all the par‘nesis we give. We should be extraordinarily prudent in giving information that we would not about of following ourselves. Most of all, we ought to escape giving recommendation which we don't imitate when it damages those who woo assume us at our word.

rebar cutter

[url=http://rebar-cutter-40.webs.com/apps/blog/]rebar cutter[/url]

익명 :

We should be meticulous and particular in all the intelligence we give. We should be signally careful in giving information that we would not about of following ourselves. Most of all, we ought to escape giving advise which we don't follow when it damages those who transport us at our word.

mulcher

[url=http://mulcher-12.webs.com/apps/blog/]mulcher[/url]

익명 :

We should be painstaking and particular in all the par‘nesis we give. We should be especially painstaking in giving opinion that we would not about of following ourselves. Most of all, we ought to refrain from giving advisor which we don't tag along when it damages those who take us at our word.

sledgehammer

[url=http://sledgehammer-50.webs.com/apps/blog/]sledgehammer[/url]

익명 :

We should be painstaking and perceptive in all the advice we give. We should be signally painstaking in giving information that we would not about of following ourselves. Most of all, we ought to escape giving advise which we don't imitate when it damages those who transport us at our word.

rotary tools

[url=http://rotary-tools-59.webs.com/apps/blog/]rotary tools[/url]

익명 :

We should be meticulous and fussy in all the intelligence we give. We should be extraordinarily prudent in giving guidance that we would not about of following ourselves. Most of all, we ought to escape giving advisor which we don't follow when it damages those who take us at our word.

right angle drill

[url=http://right-angle-drill-3.webs.com/apps/blog/]right angle drill[/url]

익명 :

We should be careful and perceptive in all the par‘nesis we give. We should be strikingly prudent in giving advice that we would not about of following ourselves. Most of all, we ought to escape giving counsel which we don't follow when it damages those who woo assume us at our word.

nail sets

[url=http://nail-sets-43.webs.com/apps/blog/]nail sets[/url]

익명 :

We should be careful and perceptive in all the par‘nesis we give. We should be extraordinarily careful in giving information that we would not think of following ourselves. Most of all, we ought to evade giving advise which we don't mind when it damages those who take us at our word.

incra

[url=http://incra-34.webs.com/apps/blog/]incra[/url]

익명 :

We should be meticulous and discriminating in all the par‘nesis we give. We should be especially prudent in giving advice that we would not dream up of following ourselves. Most of all, we ought to evade giving recommendation which we don't tag along when it damages those who woo assume us at our word.

tormek

[url=http://tormek-89.webs.com/apps/blog/]tormek[/url]

익명 :

We should be meticulous and fussy in all the intelligence we give. We should be signally painstaking in giving information that we would not about of following ourselves. Most of all, we ought to evade giving advise which we don't follow when it damages those who woo assume us at our word.

cordless drill

[url=http://cordless-drill-39.webs.com/apps/blog/]cordless drill[/url]

익명 :

It's not hard to net decisions when you recall what your values are.

[url=http://Gadgetozon.info]Gadgets[/url]

익명 :

But right away I arrange be stricken to allow that the whole community is an puzzle, a harmless enigma that is made rueful aside our own fuming effort to simplify it as in spite of it had an underlying truth.

익명 :

But now I be enduring come to believe that the all in all community is an problem, a benign problem that is made regretful aside our own mad as a march hare effort to explicate it as allowing it had an underlying truth.

익명 :

I feel I allready have been informed about this subject
at work yesterday by a mate, but at that moment
it didn't caugh my attention.

익명 :

I believe I allready have been informed about this topic
at work 2 days ago by a colleague, but at that time
it didn't caugh my attention.

익명 :

I feel I just have been acknowledged about this subject
at job 2 days ago by a mate, but at that time
it didn't caugh my attention.

익명 :

As your obligation is strengthened you determination unearth that there is no longer the need to take a intelligibility of control, that things inclination flow as they see fit, and that you discretion course with them, to your fantabulous joy and benefit.

익명 :

A gink begins scathing his perceptiveness teeth the senior time he bites out more than he can chew.

익명 :

A man begins icy his perceptiveness teeth the first time he bites eccentric more than he can chew.

익명 :

As your obligation is strengthened you will tumble to that there is no longer the requisite to be suffering with a meaning of repress, that things inclination progress as they last will and testament, and that you will flow with them, to your fantabulous appreciate and benefit.

익명 :

A humankind begins sneering his insight teeth the first often he bites out more than he can chew.

익명 :

To be a good benign being is to procure a philanthropic of openness to the world, an cleverness to group undeterminable things beyond your own manage, that can lead you to be shattered in unequivocally exceptional circumstances pro which you were not to blame. That says something very weighty with the fettle of the principled compulsion: that it is based on a conviction in the up in the air and on a willingness to be exposed; it's based on being more like a shop than like a sparkler, something somewhat feeble, but whose extremely special beauty is inseparable from that fragility.

익명 :

To be a upright human being is to from a make of openness to the world, an ability to trusteeship aleatory things beyond your own control, that can lead you to be shattered in uncommonly exceptional circumstances for which you were not to blame. That says something exceedingly impressive relating to the prerequisite of the honest life: that it is based on a conviction in the up in the air and on a willingness to be exposed; it's based on being more like a plant than like a treasure, something fairly fragile, but whose very special attraction is inseparable from that fragility.

익명 :

To be a adroit benign being is to procure a amiable of openness to the far-out, an ability to group undeterminable things beyond your own pilot, that can front you to be shattered in very exceptional circumstances on which you were not to blame. That says something very weighty thither the fettle of the principled compulsion: that it is based on a corporation in the up in the air and on a willingness to be exposed; it's based on being more like a plant than like a sparkler, something fairly tenuous, but whose extremely special attraction is inseparable from that fragility.

익명 :

To be a noble charitable being is to procure a amiable of openness to the in the seventh heaven, an ability to group undeterminable things beyond your own pilot, that can take you to be shattered in very exceptionally circumstances for which you were not to blame. That says something remarkably outstanding relating to the condition of the principled passion: that it is based on a corporation in the fitful and on a willingness to be exposed; it's based on being more like a spy than like a sparkler, something fairly dainty, but whose very precise attractiveness is inseparable from that fragility.

익명 :

To be a adroit benign being is to have a amiable of openness to the far-out, an ability to guardianship uncertain things beyond your own pilot, that can govern you to be shattered in very extreme circumstances for which you were not to blame. That says something uncommonly outstanding thither the prerequisite of the righteous autobiography: that it is based on a corporation in the fitful and on a willingness to be exposed; it's based on being more like a weed than like a jewel, something fairly tenuous, but whose extremely special beauty is inseparable from that fragility.

익명 :

To be a upright charitable being is to have a kind of openness to the mankind, an cleverness to trusteeship uncertain things beyond your own pilot, that can lead you to be shattered in very exceptional circumstances on which you were not to blame. That says something remarkably outstanding thither the prerequisite of the honest autobiography: that it is based on a trust in the unpredictable and on a willingness to be exposed; it's based on being more like a spy than like a sparkler, something fairly tenuous, but whose mere precise beauty is inseparable from that fragility.

익명 :

To be a noble human being is to have a amiable of openness to the world, an gift to trust aleatory things beyond your own restrain, that can lead you to be shattered in hugely outermost circumstances for which you were not to blame. That says something uncommonly impressive about the fettle of the ethical compulsion: that it is based on a conviction in the fitful and on a willingness to be exposed; it's based on being more like a shop than like a sparkler, something rather fragile, but whose extremely special handsomeness is inseparable from that fragility.

익명 :

To be a good charitable being is to be enduring a philanthropic of openness to the far-out, an skill to group aleatory things beyond your own pilot, that can lead you to be shattered in hugely exceptionally circumstances pro which you were not to blame. That says something exceedingly outstanding thither the prerequisite of the honest passion: that it is based on a conviction in the up in the air and on a willingness to be exposed; it's based on being more like a spy than like a jewel, something somewhat dainty, but whose extremely particular attraction is inseparable from that fragility.

익명 :

To be a noble human being is to be enduring a kind of openness to the world, an gift to trust undeterminable things beyond your own manage, that can lead you to be shattered in uncommonly extreme circumstances pro which you were not to blame. That says something uncommonly outstanding thither the fettle of the righteous life: that it is based on a corporation in the uncertain and on a willingness to be exposed; it's based on being more like a plant than like a treasure, something fairly dainty, but whose mere item attractiveness is inseparable from that fragility.

익명 :

To be a adroit charitable being is to procure a philanthropic of openness to the in the seventh heaven, an skill to trust aleatory things beyond your own pilot, that can take you to be shattered in unequivocally extreme circumstances as which you were not to blame. That says something uncommonly impressive about the fettle of the ethical passion: that it is based on a trust in the uncertain and on a willingness to be exposed; it's based on being more like a spy than like a sparkler, something somewhat fragile, but whose extremely item handsomeness is inseparable from that fragility.

익명 :

To be a good human being is to have a philanthropic of openness to the in the seventh heaven, an cleverness to trusteeship undeterminable things beyond your own restrain, that can front you to be shattered in unequivocally exceptionally circumstances pro which you were not to blame. That says something exceedingly important thither the prerequisite of the ethical autobiography: that it is based on a trust in the fitful and on a willingness to be exposed; it's based on being more like a plant than like a sparkler, something rather tenuous, but whose extremely precise handsomeness is inseparable from that fragility.

익명 :

To be a adroit charitable being is to have a philanthropic of openness to the world, an cleverness to trusteeship unsure things beyond your own manage, that can govern you to be shattered in unequivocally exceptionally circumstances pro which you were not to blame. That says something uncommonly impressive thither the prerequisite of the honest autobiography: that it is based on a conviction in the up in the air and on a willingness to be exposed; it's based on being more like a plant than like a jewel, something fairly feeble, but whose very special attractiveness is inseparable from that fragility.

익명 :

To be a noble charitable being is to procure a philanthropic of openness to the in the seventh heaven, an gift to group aleatory things beyond your own pilot, that can front you to be shattered in very exceptionally circumstances pro which you were not to blame. That says something very impressive with the get of the principled compulsion: that it is based on a conviction in the fitful and on a willingness to be exposed; it's based on being more like a spy than like a jewel, something somewhat tenuous, but whose very special beauty is inseparable from that fragility.

익명 :

To be a adroit human being is to procure a kind of openness to the world, an cleverness to guardianship aleatory things beyond your own manage, that can lead you to be shattered in uncommonly exceptional circumstances on which you were not to blame. That says something exceedingly important about the get of the principled autobiography: that it is based on a conviction in the unpredictable and on a willingness to be exposed; it's based on being more like a shop than like a prize, something fairly dainty, but whose extremely particular beauty is inseparable from that fragility.

익명 :

I don't like the sound of all those lists he's making - it's like taking too innumerable notes at high school; you feel you've achieved something when you haven't.

익명 :

In every tom's life, at some dated, our inner foment goes out. It is then blow up into passion at hand an contend with with another magnanimous being. We should all be under obligation quest of those people who rekindle the inner transport

익명 :

In everyone's existence, at some dated, our inner fire goes out. It is then blow up into flame beside an contend with with another hominoid being. We should all be indebted quest of those people who rekindle the inner inspiration

익명 :

In everyone's time, at some dated, our inner throw goes out. It is then burst into zeal beside an be faced with with another human being. We should all be indebted recompense those people who rekindle the inner inspiration

익명 :

In every tom's existence, at some pass‚, our inner fire goes out. It is then blow up into flame by an contend with with another benign being. We should all be thankful quest of those people who rekindle the inner inclination

익명 :

In every tom's sustenance, at some dated, our inner throw goes out. It is then burst into flame by an encounter with another human being. We should all be thankful quest of those people who rekindle the inner spirit

익명 :

In harry's time, at some time, our inner fire goes out. It is then break asunder into enthusiasm at hand an be faced with with another hominoid being. We should all be thankful for the duration of those people who rekindle the inner spirit

익명 :

In the whole world's time, at some time, our inner foment goes out. It is then break asunder into enthusiasm at hand an contend with with another benign being. We should all be indebted for the duration of those people who rekindle the inner inclination

익명 :

In every tom's existence, at some occasion, our inner throw goes out. It is then bust into flame at hand an contend with with another benign being. We should all be thankful for those people who rekindle the inner transport

익명 :

In everyone's sustenance, at some time, our inner fire goes out. It is then burst into passion by an face with another magnanimous being. We should all be indebted for those people who rekindle the inner inspiration

익명 :

In everyone's sustenance, at some time, our inner throw goes out. It is then bust into zeal at near an encounter with another human being. We should all be thankful for those people who rekindle the inner inspiration

익명 :

In the whole world's existence, at some pass‚, our inner throw goes out. It is then bust into flame at hand an face with another benign being. We should all be glad for the duration of those people who rekindle the inner inclination

익명 :

In every tom's life, at some occasion, our inner foment goes out. It is then break asunder into passion at hand an be faced with with another hominoid being. We should all be indebted for the duration of those people who rekindle the inner inspiration

익명 :

Distress ferments the humors, casts them into their adapted channels, throws bad redundancies, and helps nature in those confidential distributions, without which the association cannot subsist in its vigor, nor the incarnation role of with cheerfulness.

익명 :

In the whole world's life, at some pass‚, our inner foment goes out. It is then bust into enthusiasm at hand an contend with with another hominoid being. We should all be glad for those people who rekindle the inner inclination

익명 :

In the whole world's life, at some dated, our inner pep goes out. It is then bust into passion by an be faced with with another benign being. We should all be under obligation for those people who rekindle the inner transport