|
From: | Emeline Hershberger |
Subject: | [Linphone-developers] Compiling oRTP tests |
Date: | Thu, 28 Jan 2016 17:58:21 +0100 |
Hi all
I'm trying to incorporate oRTP into a project.
I tried to compile ‘rtpsend.c’ and ‘rtprecv.c’ in ‘oRTP/src/tests’ to test the functionality.
Compiling works fine - [ after altering ortp_set_log_level_mask(ORTP_MESSAGE|ORTP_WARNING|ORTP_ERROR); to ortp_set_log_level_mask(NULL,ORTP_MESSAGE|ORTP_WARNING|ORTP_ERROR); ].
However, when I run any of the the two binaries, a segfault occurs.
Following are my steps:
I downloaded the git repo using ‘git clone git://git.linphone.org/linphone-desktop.git --recursive’
I copied the ‘submodules/linphone/oRTP’ folder, as this is the only code I will need from the project.
‘./autogen.sh’
‘./configure’
‘make’
‘sudo make install’
‘cd ./src/tests’
‘gcc -g rtpsend.c -lortp -o send’
‘gcc -g rtprecv.c -lortp -o recv’
‘./recv out_file 1337’ -> seg fault
‘./send out_file 127.0.0.1 1337’ -> seg fault
Am I compiling the tests correctly?
If so, do you have any pointers how to debug this? With gdb I can only step through the two compiled files.
Thanks in advance.
All the best
Emeline
[Prev in Thread] | Current Thread | [Next in Thread] |