VOIP tool build error

463 views
Skip to first unread message

Jiva bagale

unread,
Dec 7, 2010, 12:17:28 PM12/7/10
to omnetpp
hi,

i am trying to run the VOIP tool that i downloaded from
http://www.tkn.tu-berlin.de/research/omnetVoipTool/
I have imported the inet framework as well. it builds successfully
with some warnings.
But when i try to build the VOIP tool i get the following error.


Description Resource Path Location Type
INETEndians.h: No such file or directory VoIPSinkApp.cc /voiptool/src
line 22 C/C++ Problem

What do i have to install or modify to solve this error.
I am new to omnetpp so please accept my apologies if i have not
followed the mailing lists rules.
Any help appreciated
Thank you in advance
Jiva

Philippe R.

unread,
Dec 8, 2010, 12:19:03 PM12/8/10
to omnetpp
Have you followed the installation instructions?

1) Once the archive file is downloaded and decompressed, switch to the
just created directory.

2) If you want to use the INET related version, open the shell script
makemake.sh with any text editor, and edit the following line
concering your system: INET="/path/to/your/INET"

3) Execute the shell script makemake.sh, which generates a Makefile
that includes all necessary libraries (using the opp_ makemake
command). Calling makemake.sh will also set links to the codec
libraries, which are stored in the libs\ folder.

3) Type 'make' to compile the generator code.

4) (a) If the compilation was successful, a 'VoIPGenerator' executable
has been created. The generator is started by executing it.

4) (b) In case you are using the INET related version: If the
compilation was successful, a dynamic library 'OMNeT_VoIPTool_INET.so'
has been created. The generator is started by executing the script
'InetVoIPTest'.

On Dec 7, 3:17 pm, Jiva bagale <jnbag...@gmail.com> wrote:
> hi,
>
> i am trying to run the VOIP tool that i downloaded fromhttp://www.tkn.tu-berlin.de/research/omnetVoipTool/

Philippe R.

unread,
Dec 9, 2010, 8:45:45 AM12/9/10
to omnetpp
Which version of the VoIP tool are you trying to install? The
instructions that I copied/pasted are for 1.x. If you are using the
latest OMNeT++ version (4.x) and INET then you should download the 2.0
version of the VoIP Tool and follow the instructions bellow:

PREREQUISITES.

This library is an add-on to the INET Framework for OMNeT++. It
requires a working
installation of OMNeT++ 4.1 or later, and INET Framework version
20100723.

VoIPTool requires a "devel" package of the avcodec library (part of
FFmpeg)
to be installed on your system. On Ubuntu, this package can be
installed with the

following command:

$ sudo apt-get install libavcodec-dev

The package name and installation command may vary for other Linux
systems.

INSTALLATION USING THE OMNeT++ IDE.

Start the IDE, and make sure you have a working INET Framework
installation
as a project named "inet".


Import the VoIPTool project into the IDE (File->Import->General-
>Existing

project into workspace), and make sure it has the "inet" project
marked
as dependency (Project->Properties->Project References).

Hit Ctrl+B to build.

Run the example simulations to check everything works fine.

I hope this works for you.

Jiva bagale

unread,
Dec 21, 2010, 9:59:04 AM12/21/10
to omnetpp
hi everyone

i am trying to run the VOIP tool 2.0 that i downloaded from
http://www.tkn.tu-berlin.de/research/omnetVoipTool/
I have imported the inet framework as well. i can run the inet examples. But when i try to build the VOIP tool i get the following error. i  followed the instructions on the website to build the voip tool.
I tired by installing in windows xp sp3 but i also tried in ubuntu 9.10. i get the same error in both occasions


Description     Resource        Path    Location        Type
INETEndians.h: No such file or directory        VoIPSinkApp.cc  /voiptool/src
line 22 C/C++ Problem

What do i have to install or modify to solve this error.
Any help is appreciated

david is-a-geek.net

unread,
Jan 21, 2011, 9:44:45 AM1/21/11
to omnetpp
Hello,
I ran into the same problem (debian squeeze x86).
I simply created the file. Its content is extracted from /usr/include/
stdint.h.
You may //comment the INT64_C definition on top on two .cc files.
(for an obscure reason, including stdint.h instead did not work)

david

INETEndians.h:
-----------------------
#ifndef INETEndians_H
#define INETEndians_H

/* Signed. */
# define INT8_C(c) c
# define INT16_C(c) c
# define INT32_C(c) c
# if __WORDSIZE == 64
# define INT64_C(c) c ## L
# else
# define INT64_C(c) c ## LL
# endif

/* Unsigned. */
# define UINT8_C(c) c
# define UINT16_C(c) c
# define UINT32_C(c) c ## U
# if __WORDSIZE == 64
# define UINT64_C(c) c ## UL
# else
# define UINT64_C(c) c ## ULL
# endif

/* Maximal type. */
# if __WORDSIZE == 64
# define INTMAX_C(c) c ## L
# define UINTMAX_C(c) c ## UL
# else
# define INTMAX_C(c) c ## LL
# define UINTMAX_C(c) c ## ULL
# endif


#endif // INETEndians_H

Jure

unread,
Jan 24, 2011, 9:02:17 AM1/24/11
to omnetpp
Hi!

Can you tell me more exactly in which two .cc files i should comment
INT64_C def.

Because i get error about UINT64

Br, Jure

On Jan 21, 3:44 pm, "david is-a-geek.net"

david

unread,
Jan 24, 2011, 9:10:52 AM1/24/11
to omnetpp

Hi,

I commented out INT64_C (not UINT64_C) definition in VoIPSinkApp.cc
and VoIPSourceApp.cc .
I'm not sure about your UINT64 error, you might try to remove the
UINT64_C lines in your
custom INETEndians.h. If you still get the error, please attach a
detailed copy-paste
of the compiler complaints.

Regards,

david

Jure Denk

unread,
Jan 24, 2011, 5:10:03 PM1/24/11
to omn...@googlegroups.com
Hi!

First of all i relay appreciate that you are willing to help. Very nice of you.

An second, here is the output if you have any idea what could be wrong:

**** Build of configuration gcc-debug for project voiptool ****

make MODE=debug CONFIGNAME=gcc-debug all
g++ -c -g -Wall -fno-stack-protector    -DHAVE_PCAP -DXMLPARSER=libxml -DWITH_PARSIM -DWITH_NETBUILDER  -I../../inet/src/networklayer/ipv4 -I../../inet/src/networklayer/common -I../../inet/src/networklayer/rsvp_te -I../../inet/src/networklayer/icmpv6 -I../../inet/src/transport/tcp -I../../inet/src/networklayer/mpls -I../../inet/src/base -I../../inet/src/networklayer/ted -I../../inet/src/util/headerserializers -I../../inet/src/networklayer/contract -I../../inet/src/util -I../../inet/src/transport/contract -I../../inet/src/linklayer/mfcore -I../../inet/src/transport/sctp -I../../inet/src/networklayer/ipv6 -I../../inet/src/world -I../../inet/src/applications/pingapp -I../../inet/src/linklayer/contract -I../../inet/src/networklayer/arp -I../../inet/src/networklayer/ldp -I../../inet/src/transport/udp -I../../inet/src/applications/udpapp -I. -I/home/jure/omnetpp-4.1/include -o ../out/gcc-debug/src/VoIPSourceApp.o VoIPSourceApp.cc
In file included from /usr/local/include/libavutil/avutil.h:96,
                 from /usr/local/include/libavcore/avcore.h:27,
                 from /usr/local/include/libavcore/samplefmt.h:22,
                 from /usr/local/include/libavcodec/avcodec.h:30,
                 from VoIPSourceApp.h:28,
                 from VoIPSourceApp.cc:19:
/usr/local/include/libavutil/common.h: In function ‘int32_t av_clipl_int32_c(int64_t)’:
/usr/local/include/libavutil/common.h:168: error: ‘UINT64_C’ was not declared in this scope
VoIPSourceApp.cc: In member function ‘virtual void VoIPSourceApp::openSoundFile(const char*)’:
VoIPSourceApp.cc:200: warning: ‘int av_get_bits_per_sample_format(AVSampleFormat)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3828)
VoIPSourceApp.cc:200: warning: ‘int av_get_bits_per_sample_format(AVSampleFormat)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3828)
VoIPSourceApp.cc:201: warning: ‘int av_get_bits_per_sample_format(AVSampleFormat)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3828)
VoIPSourceApp.cc:201: warning: ‘int av_get_bits_per_sample_format(AVSampleFormat)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3828)
VoIPSourceApp.cc:213: warning: ‘int av_get_bits_per_sample_format(AVSampleFormat)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3828)
VoIPSourceApp.cc:213: warning: ‘int av_get_bits_per_sample_format(AVSampleFormat)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3828)
VoIPSourceApp.cc:214: warning: ‘int av_get_bits_per_sample_format(AVSampleFormat)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3828)
VoIPSourceApp.cc:214: warning: ‘int av_get_bits_per_sample_format(AVSampleFormat)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3828)
VoIPSourceApp.cc: In member function ‘virtual VoIPPacket* VoIPSourceApp::generatePacket()’:
VoIPSourceApp.cc:223: warning: ‘int av_get_bits_per_sample_format(AVSampleFormat)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3828)
VoIPSourceApp.cc:223: warning: ‘int av_get_bits_per_sample_format(AVSampleFormat)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3828)
VoIPSourceApp.cc: In member function ‘virtual void VoIPSourceApp::readFrame()’:
VoIPSourceApp.cc:348: warning: ‘int av_get_bits_per_sample_format(AVSampleFormat)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3828)
VoIPSourceApp.cc:348: warning: ‘int av_get_bits_per_sample_format(AVSampleFormat)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3828)
VoIPSourceApp.cc:387: warning: ‘int avcodec_decode_audio2(AVCodecContext*, int16_t*, int*, const uint8_t*, int)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3594)
VoIPSourceApp.cc:387: warning: ‘int avcodec_decode_audio2(AVCodecContext*, int16_t*, int*, const uint8_t*, int)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3594)
make: *** [../out/gcc-debug/src/VoIPSourceApp.o] Error 1
 

--
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To post to this group, send email to omn...@googlegroups.com.
To unsubscribe from this group, send email to omnetpp+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/omnetpp?hl=en.


david

unread,
Jan 25, 2011, 5:55:43 AM1/25/11
to omnetpp
Try to include INETEndians.h before any other in VoIPSinkApp.cc and
VoIPSourceApp.cc.
If it does not work, try to put INT64_C definitions back into
INETEndians.h.
I can send you my tarball if you do not succeed.

(Maybe devs could check that current VOIP distribution is compatible
with current linux distributions (I'm running debian squeeze))

david
> > omnetpp+u...@googlegroups.com<omnetpp%2Bunsu...@googlegroups.com>
> > .

Arif Amin

unread,
Jan 25, 2011, 6:06:01 AM1/25/11
to omn...@googlegroups.com
Hi
 
I am following the emails regarding VoIP tool, I have imported it into OMNET 4.1 with a working INET framework(xMIPv6 module), but when I build the modue it gives two errors in VoIPGenerator.cc line 83 and line 496.
 
I am missing devel package and dont know how to install in windows.
 
any help is appreciated????
 
Thanks

To unsubscribe from this group, send email to omnetpp+u...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/omnetpp?hl=en.




--
Mohammed Arif Amin
Faculty IT Dept
Abu Dhabi Men's College
P. O Box 28985
Phone: 02-4048448
Fax: 02-4451571
Mobile: 971-50-6120064

david

unread,
Jan 25, 2011, 6:15:02 AM1/25/11
to omnetpp
Hi,

I'm not a VOIP tool dev. I have not such file (VoIPGenerator.cc) in
the latest distribution of VOIP I got.
Did you download the one designed for INET 20100723 (omnet 4.1) ?
Also, VOIP seems not be tested under win32 and it needs external-
ffmpeg dev files under linux.

david
> > <omnetpp%2Bunsu...@googlegroups.com<omnetpp%252Buns...@googlegroups.com>
>
> >  > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/omnetpp?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "omnetpp" group.
> > To post to this group, send email to omn...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > omnetpp+u...@googlegroups.com<omnetpp%2Bunsu...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/omnetpp?hl=en.
>
> --

Jure Denk

unread,
Jan 27, 2011, 1:54:53 PM1/27/11
to omn...@googlegroups.com
Hi!

I was trying all different options including replacing Ubuntu 10.04 with Debian. So if you are still willing to send me the tarball i relay wouldn't mind.

Just one more question - did you install ffmpeg from source or you just did what the manual for voiptool says: sudo apt-get install libavcodec-dev?

Br, Jure
 

To unsubscribe from this group, send email to omnetpp+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages