LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-17-2011, 12:51 AM   #1
nikhilvs9999
LQ Newbie
 
Registered: Oct 2010
Posts: 7

Rep: Reputation: 0
Help me in implementing RTP protocol


Iam working on IPcamera .I want to use rtp protocol for streaming.It has MJPG streamer inside it ,and i want to take video from output plugin of MJPEG and send it to a server using RTP.
We don't want to use RTSP protocol.
please help me in this...

I have tried ccRTP but while configuring ,it shows

checking for COMMONCPP... no
configure: error: Package requirements (commoncpp >= 5.0.0) were not met:

No package 'commoncpp' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables COMMONCPP_CFLAGS
and COMMONCPP_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Iam fed up with this .
 
Old 12-17-2011, 06:02 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Entering commoncpp in your package manager or using
'apt-cache search commoncpp' should show the packages.

sudo apt-get install libcommoncpp2-dev
Not working ? Use an older version of ccRTP like ccrtp-1.8.0
ftp://ftp.gnu.org/pub/gnu/ccrtp/ccrtp-1.8.0.tar.gz
ftp://ftp.gnu.org/pub/gnu/ccrtp/

... Or install the ccrtp package : sudo apt-get install libccrtp-dev


More questions ? Then please specify your Ubuntu version.
http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html

..

Last edited by knudfl; 12-17-2011 at 06:07 AM.
 
Old 12-18-2011, 10:00 PM   #3
nikhilvs9999
LQ Newbie
 
Registered: Oct 2010
Posts: 7

Original Poster
Rep: Reputation: 0
I downloaded ccrtp1.8, but there when i try to make ,i got following error, again what shud i do ................
I have other options earlier ,that too is not working........





Making all in src
make[1]: Entering directory `/home/durgaprasad/Desktop/code_rtp/ccrtp-1.8.0/src'
make all-recursive
make[2]: Entering directory `/home/durgaprasad/Desktop/code_rtp/ccrtp-1.8.0/src'
Making all in ccrtp
make[3]: Entering directory `/home/durgaprasad/Desktop/code_rtp/ccrtp-1.8.0/src/ccrtp'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/durgaprasad/Desktop/code_rtp/ccrtp-1.8.0/src/ccrtp'
Making all in ccrtp/crypto
make[3]: Entering directory `/home/durgaprasad/Desktop/code_rtp/ccrtp-1.8.0/src/ccrtp/crypto'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/durgaprasad/Desktop/code_rtp/ccrtp-1.8.0/src/ccrtp/crypto'
make[3]: Entering directory `/home/durgaprasad/Desktop/code_rtp/ccrtp-1.8.0/src'
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I/usr/local/include -fno-strict-aliasing -Wall -ansi -pedantic -g -O2 -D_GNU_SOURCE -c -o source.lo source.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I/usr/local/include -fno-strict-aliasing -Wall -ansi -pedantic -g -O2 -D_GNU_SOURCE -c source.cpp -fPIC -DPIC -o .libs/source.o
In file included from source.cpp:45:0:
./ccrtp/sources.h:409:11: error: ‘ptrdiff_t’ does not name a type
make[3]: *** [source.lo] Error 1
make[3]: Leaving directory `/home/durgaprasad/Desktop/code_rtp/ccrtp-1.8.0/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/durgaprasad/Desktop/code_rtp/ccrtp-1.8.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/durgaprasad/Desktop/code_rtp/ccrtp-1.8.0/src'
make: *** [all-recursive] Error 1
 
Old 12-19-2011, 02:28 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
****

Repeat : Please specify your Ubuntu version.

Like Ubuntu 10.04 -- 32bits, or Ubuntu 11.10 -- 64bits.
The commands 'cat /etc/issue' and 'uname -m' will tell.
 
Old 12-19-2011, 05:23 AM   #5
nikhilvs9999
LQ Newbie
 
Registered: Oct 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Ubuntu 11.10 -32 bit
kernel 3.0.0-14-generic-pae
 
Old 12-19-2011, 06:33 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Ubuntu 11.10.

The command : sudo apt-get install libccrtp-dev
... will install ccrtp version 1.8.0


.

Last edited by knudfl; 12-19-2011 at 06:59 AM.
 
Old 12-19-2011, 07:26 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Building an extra version of ccrtp-1.8.0 on Ubuntu 11.10 :

1) sudo apt-get install g++-4.4 libcommoncpp2-dev

2)
cd ccrtp-1.8.0/ && export CC=gcc-4.4 CXX=g++-4.4 && ./configure && make

.
 
Old 12-19-2011, 08:11 AM   #8
nikhilvs9999
LQ Newbie
 
Registered: Oct 2010
Posts: 7

Original Poster
Rep: Reputation: 0
thaks for the reply
 
Old 12-19-2011, 08:14 AM   #9
nikhilvs9999
LQ Newbie
 
Registered: Oct 2010
Posts: 7

Original Poster
Rep: Reputation: 0
again that didn't work, same error



/Desktop/code_rtp/ccrtp-1.8.0$ sudo make
Making all in src
make[1]: Entering directory `/home/durgaprasad/Desktop/code_rtp/ccrtp-1.8.0/src'
make all-recursive
make[2]: Entering directory `/home/durgaprasad/Desktop/code_rtp/ccrtp-1.8.0/src'
Making all in ccrtp
make[3]: Entering directory `/home/durgaprasad/Desktop/code_rtp/ccrtp-1.8.0/src/ccrtp'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/durgaprasad/Desktop/code_rtp/ccrtp-1.8.0/src/ccrtp'
Making all in ccrtp/crypto
make[3]: Entering directory `/home/durgaprasad/Desktop/code_rtp/ccrtp-1.8.0/src/ccrtp/crypto'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/durgaprasad/Desktop/code_rtp/ccrtp-1.8.0/src/ccrtp/crypto'
make[3]: Entering directory `/home/durgaprasad/Desktop/code_rtp/ccrtp-1.8.0/src'
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -fno-strict-aliasing -Wall -ansi -pedantic -g -O2 -D_GNU_SOURCE -c -o source.lo source.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -fno-strict-aliasing -Wall -ansi -pedantic -g -O2 -D_GNU_SOURCE -c source.cpp -fPIC -DPIC -o .libs/source.o
In file included from source.cpp:45:0:
./ccrtp/sources.h:409:11: error: 'ptrdiff_t' does not name a type
make[3]: *** [source.lo] Error 1
make[3]: Leaving directory `/home/durgaprasad/Desktop/code_rtp/ccrtp-1.8.0/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/durgaprasad/Desktop/code_rtp/ccrtp-1.8.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/durgaprasad/Desktop/code_rtp/ccrtp-1.8.0/src'
make: *** [all-recursive] Error 1
 
Old 12-19-2011, 10:36 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
... ... ... g++ -DHAVE_CONFIG_H -I. -fno-strict-aliasing
'g++-4.4' must be used, not 'g++' !


The 'export CC=gcc-4.4 CXX=g++-4.4' command is temporary :
Will reset to g++ if you exit the terminal.

Hence the "one line command" :
'export CC=gcc-4.4 CXX=g++-4.4 && ./configure && make'

..
 
Old 12-20-2011, 02:50 AM   #11
nikhilvs9999
LQ Newbie
 
Registered: Oct 2010
Posts: 7

Original Poster
Rep: Reputation: 0
thanks for your suggestion knudfl



anyway i solved the problem of version ccrtp2....

i got ucommoncpp ver 5.1 from here
http://www.gnutelephony.org/dist/debian/

that worked well...
 
Old 09-06-2012, 06:26 AM   #12
yahoosam
Member
 
Registered: Jun 2012
Posts: 79

Rep: Reputation: Disabled
rtp ways in c

is there any suggestions of using rtp via c programming..
any real time library examples with any one it's implementations..plz share

thnx in advance
 
  


Reply



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
how can i add rtp protocol to my iptables rule of netfilter hdinn Linux - Newbie 1 07-30-2009 07:12 PM
how can i add the rtp protocol to my iptables rule hdinn Linux - Networking 1 07-29-2009 12:29 PM
ns-2 simulator implementing a manet routing protocol myrto Programming 1 07-09-2007 03:27 PM
Apache: Implementing a protocol on top of HTTP tux_addicted Programming 1 08-01-2005 08:58 AM
implementing multicast protocol using mrouted or pimd abirami Linux - Networking 0 10-27-2004 10:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:49 AM.

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
Open Source Consulting | Domain Registration