LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 03-06-2013, 05:05 AM   #46
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,279

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664

# 41 . Testing your files on a 32bits Ubuntu OS.

Your files common/packet.h, common/agent.h, common/agent.cc work OK.
1) tar xvf ns-allinone-2.28.tar.gz
2) patch -p0 < ns228-gcc40.patch
3) patch -p0 < ns-2.28-gcc410.patch <Enter> <Enter> <Enter>
4) cd ns-allinone-2.28/ && tar xvf myevalvid2-ns228-patch.tar.gz
I.e. myevalvid2-ns228-patch.tar.gz = Your files + myevalvid/ + Makefile.in :
https://docs.google.com/file/d/0B7S2...it?usp=sharing
5) export CC=gcc41 CXX=g++41
6) ./install : OK.

A new i386 package, myevalvid2-ns-2.28-ubuntu10-1_i386.deb (3.7 MB) has been uploaded :
https://docs.google.com/file/d/0B7S2...it?usp=sharing
*** Replaces "myevalvid-ns-2.28-ubuntu10_i386.deb".

I will try if it is possible to compile the above ( 1)... 6)) on a 12.04 - x86_64.

-

Last edited by knudfl; 03-06-2013 at 10:13 AM.
 
1 members found this post helpful.
Old 03-06-2013, 06:15 AM   #47
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,279

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
# 41 etc., @ johnli : Ubuntu 12.04 - 64.

Same as #46, but gcc / g++ version 3.4.6 was used :
5) export CC=gcc34 CXX=g++34

The compiler packages used are : a) compat-gcc34-3.4.6-ubuntu1204-1_amd64.deb
https://docs.google.com/file/d/0B7S2...it?usp=sharing
b) compat-gcc-34-c++_3.4.6-20_amd64.deb
https://docs.google.com/file/d/0B7S2...it?usp=sharing

Package "myevalvid-ns-2.28-ubuntu12_amd64.deb" ( 4 MB ) :
https://docs.google.com/file/d/0B7S2...it?usp=sharing
.. providing /usr/local/bin/ns-myevalvid2


-

Last edited by knudfl; 03-06-2013 at 06:19 AM.
 
Old 03-08-2013, 02:31 AM   #48
biswa_feb15
LQ Newbie
 
Registered: Jan 2013
Posts: 22

Original Poster
Rep: Reputation: Disabled
ns2 video transmission

sir can i find out the psnr(peak signal to noise ratio) graph in in ns2 that is installed in ubuntu?
or i wil take help of cygin , which is running in windows.
 
Old 03-10-2013, 12:48 PM   #49
vijayukanirs
LQ Newbie
 
Registered: Mar 2013
Posts: 2

Rep: Reputation: Disabled
Unhappy Agent/myUDP Error in Fedora 16 ns2.35

I am trying to use Evalivid with ns2. I have followed all the steps mentioned. I have gone through many post related to this error(which occurs when I run $ ns be.tcl) but couldn't find the solution. Can someone help?? I am using fedora 16 (32-bit) ns2.35

invalid command name "Agent/myUDP"
while executing
"Agent/myUDP create _o82 "
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/myUDP"
invoked from within
"set udp1 [new Agent/myUDP]"
(file "be.tcl" line 24)
 
Old 03-10-2013, 03:48 PM   #50
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,279

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
Post # 49, @vijayukanirs : Welcome to LQ.
Quote:
invalid command name "Agent/myUDP"
Means : No "myudp" was compiled into the executable 'ns'.
? Did you forget myudp.cc / forget myudp.o in the Makefile.in ?

And how did you edit the "ns-2.28" files to be usable in ns-2.35 ?

What is be.tcl ? ? Is it a renamed be_a01.tcl ?

P.S.: The latest install instructions, please see post # 46.
( It would be 'export CC=gcc34 CXX=g++34' for Fedora 16 / ns-2.28.)

-

Last edited by knudfl; 03-10-2013 at 04:46 PM.
 
Old 03-11-2013, 10:00 AM   #51
vijayukanirs
LQ Newbie
 
Registered: Mar 2013
Posts: 2

Rep: Reputation: Disabled
Smile Solved

Thanks for the reply. Actually the problem was multiple versions of ns. I had ns2.34 and ns2.35 installed but I was referring to ns2.34. Changing the PATH variable I could do it.

I have followed all the instructions mentioned in http://140.116.164.80/~smallko/ns2/myevalvid2.htm for ns2.35 and it worked.

The be.tcl is a tcl file to transmit the video traces generated. Essentially it is like be_a01.tcl.

Thanks once again. Now I am trying to use Evalvid on Castalia Simulator.
 
Old 03-16-2013, 08:48 PM   #52
johnli
LQ Newbie
 
Registered: Mar 2013
Posts: 6

Rep: Reputation: Disabled
Thank you for clarifying that.

I started from scratch and tried installing ns2.28 on Ubuntu 10.04 32 bit on my PC. I followed the steps given in one of your posts. But when I try to "./install " I get an error.
.........
/home/johnli/ns-allinone-2.28/tk8.4.5/unix/../generic/tk3d.c:1400: error: ‘TkBorder’ has no member named ‘nextPtr’
/home/johnli/ns-allinone-2.28/tk8.4.5/unix/../generic/tk3d.c:1403: error: ‘TkBorder’ has no member named ‘resourceRefCount’
/home/johnli/ns-allinone-2.28/tk8.4.5/unix/../generic/tk3d.c:1405: error: ‘TkBorder’ has no member named ‘objRefCount’
make: *** [tk3d.o] Error 1
tk8.4.5 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com

Why do I get this error?
 
Old 03-17-2013, 01:52 AM   #53
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,279

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
# 52 .

Please read post #46 carefully.
Tk error : Probably start from scratch with a new unpacked ns-allinone-2.28.tar.gz.

Ubuntu 10.04 : § 5) is a little different, please do ..
export CC=gcc-4.1 CXX=g++-4.1
.. Be aware that the export command is temporary :
will reset to the default gcc/g++ if/when you exit the terminal.

-
 
Old 03-20-2013, 02:43 PM   #54
linuxuday
Member
 
Registered: Mar 2013
Posts: 31

Rep: Reputation: Disabled
Hi knudfl,

I have been reading this thread, I'm working on same topic.
I needed "mympeg-patch-to-ns2.28.patch", someone here written that they've found it here in the discussion thread but I'm not getting where it is.

Could you please provide me the download link for the same?

Thanks a lot in advance
 
Old 03-20-2013, 03:08 PM   #55
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,279

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
# 54 .

"mympeg-patch-to-ns2.28.patch" : Post # 2.
http://140.116.164.80/~smallko/ns2/m...o-ns2.28.patch
Ref. http://hpds.ee.ncku.edu.tw/~smallko/...vid_in_NS2.htm
Quote : " I suggest that you use my newer tool-set at ..
http://140.116.164.80/~smallko/ns2/myevalvid2.htm "

The latest version is myevalvid2-ns228-patch.tar.gz post # 46.
Download link https://docs.google.com/file/d/0B7S2...it?usp=sharing

Install instructions : Posts #46 (and #47).


-

Last edited by knudfl; 03-20-2013 at 03:16 PM.
 
1 members found this post helpful.
Old 03-23-2013, 07:35 PM   #56
johnli
LQ Newbie
 
Registered: Mar 2013
Posts: 6

Rep: Reputation: Disabled
Thanks Knudfl.

One more isuue I have is that etmp4 does not work with wine on Linux. Is there any other way I can use etmp4? Or a substitute for etmp4? I'm getting the following error when I run it with wine.


wine: Unhandled page fault on write access to 0x6835dd90 at address 0x68269c0d (thread 0009), starting debugger...
Unhandled exception: page fault on write access to 0x6835dd90 in 32-bit code (0x68269c0d).
Register dump:
CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
EIP:68269c0d ESP:0032e0f4 EBP:0032e134 EFLAGS:00210207( R- -- I - -P-C)
EAX:0032e189 EBX:68269c0a ECX:6f727265 EDX:6835dda1
ESI:00000001 EDI:0042d094
Stack dump:
.........
......
 
Old 03-31-2013, 06:31 PM   #57
suneel23
LQ Newbie
 
Registered: Feb 2013
Posts: 15

Rep: Reputation: Disabled
hi when i run make in my eval vid i get this error

myevalvid/myudp.cc: In constructor ‘myUdpAgent::myUdpAgent()’:
myevalvid/myudp.cc:19:21: error: cannot call constructor ‘myUdpAgent::UdpAgent’ directly [-fpermissive]
myevalvid/myudp.cc:19:21: error: for a function-style cast, remove the redundant ‘::UdpAgent’ [-fpermissive]
myevalvid/myudp.cc: In member function ‘virtual void myUdpAgent::sendmsg(int, AppData*, const char*)’:
myevalvid/myudp.cc:56:123: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ [-Wformat]
myevalvid/myudp.cc:78:123: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ [-Wformat]
make: *** [myevalvid/myudp.o] Error 1
 
Old 04-01-2013, 03:02 AM   #58
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,279

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
# 57 .

In post # 23 here you say that you have a solution :
http://www.linuxquestions.org/questi...ml#post4901708

Which OS are you using now ?

And you cannot just run 'make'.
You will have to configure before 'make', like this example :
export CXX=g++-4.1 && ./configure
I.e. the g++ you want to use must be specified with the export command.

-
 
Old 04-01-2013, 03:21 AM   #59
suneel23
LQ Newbie
 
Registered: Feb 2013
Posts: 15

Rep: Reputation: Disabled
post 23 is cygwin xp with tools installed, now i trying to install on ubuntu 12.04

Last edited by suneel23; 04-01-2013 at 04:11 AM.
 
Old 04-01-2013, 04:36 AM   #60
suneel23
LQ Newbie
 
Registered: Feb 2013
Posts: 15

Rep: Reputation: Disabled
I want to build evalvid ns2 virtual box image (ubuntu 12.04) ready to use for my friends who are struggling like me
 
  


Reply

Tags
myevalvid, myevalvid2, mympeg, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
calculate power transmission and define wireless parameter for zigbee with NS2 barthunder52 Linux - Networking 0 12-27-2012 07:44 AM
ns2 2.33 with lte patch transmission problem greg1 Linux - Newbie 0 08-14-2012 06:43 AM
No transmission circlesdisplayed for wirless transmission in ns2 susanthomas Linux - Newbie 2 05-23-2012 02:14 AM
Audio Video Transmission Thewyzewun Linux - Hardware 0 08-23-2004 07:04 PM
Want To Only Recive Video Transmission In Gnomemeeting ROORTOKES Linux - Software 3 08-10-2003 12:37 AM


All times are GMT -5. The time now is 11:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration