[Live-devel] RTSP URL is error when cross compiled and mixed with C for arm platform

Xingjun Chen xjchen at email.arizona.edu
Sat Mar 28 12:20:59 PDT 2015


Hi, All

I cross compiled the dynamic library of live555 for ARM linux first, and
then mixed compiled the modified example “testH264VideoStreaming.cpp" with
my C routine for Arm platform, I add extend "C" for all the functions
called by C routine in “testH264VideoStreaming.cpp", no problem came out
when compile and link the source code and object file.

The only problem is that the URL is wrong, so I tracked back to the live555
library, and in the RTSPServer.cpp, in the function rtspURLPrefix(), the
address in urlBuffer is wrong when using sprintf, the portNumHostOrder is
defined as unsigned short, then %hu is right, but when urlBuffer is printed
out, 8554 is printed out as 20552, it seems the output is in its octonary
format, do have one have this problem similar with. Thank you.

I compile the code with CodeSoourcery G++ Lite 2009q1-203,  vesrion 4.3.3,
arm-none-linux-gnueabi-gcc for the C code, and arm-none-linux-gnueabi-g++
for the c++ code.


-- 
Xingjun Chen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20150328/00969dfe/attachment.html>


More information about the live-devel mailing list