Page 1 of 1

Issues whilst compiling VLC from source

Posted: 14 Jun 2024 17:42
by foilandwater
Hi,

I am running Ubuntu 24 on a Beeline ser5.

I feel like I have been through every single search result online but I'm still unable to achieve what seems to be quite a simple task. My goal is to compile VLC from source so that I can include the live555 library which is not included when you you install vlc as a package on Ubuntu. I need live555 so that I can use VLC for viewing an rtsp:// stream from a local IP camera on the network. Actually, what I ultimately need is to use 'OBS' to push an rtsp stream from the local camera to a VPS via an rtmp:// stream. This whole setup is already functional - but the default plugin within OBS that takes the rtsp:// and pushes it to rtmp:// is randomly freezing (it's a known problem) and the solution according to many people is to use the VLC input source that comes with VLC. Except on Ubuntu, VLC does not include the live555 library and that is why I'm trying to compile VLC myself. The ultimate goal is take a local rtsp:// stream and push it to an rtmp:// server.

Disclaimer, my understanding of linux is very limited and my knowledge of compiling apps is almost zero. I am relying heavily on forums and solutions other people have found. I have followed the tutorial here https://wiki.videolan.org/UnixCompile/ and I used the git method of getting the sources files. After download, I ran bootstamp and then configure which then failed - at that point I worked out that libraries were missing so I started disabling the libraries and then the configure would get further and further each time. Despite following the tutorial on http://www.live555.com/liveMedia/ to get live555 installed correctly, I always run into an error with ./configure not being able to find it, so I eventually disabled live555 just so I could get to the next step.

This is the script I am currently running

Code: Select all

./configure --prefix=/usr --disable-lua --disable-postproc --disable-glx --disable-skins2 --disable-nls --disable-xcb --disable-alsa --disable-qt --disable-avcodec --disable-swscale --enable-debug
which finishes. Then I run

Code: Select all

make
and it gets to a point where I get the output mentioned below, and I can't figure out what to do next. Any ideas? I'm surprised there is not a publicly available release of vlc that can be installed as a package on Ubuntu which concludes live555, or in fact, a full version of vlc that includes all the libraries?? Would appreciate any suggestions, thanks Sean.


CXX demux/dash/mpd/libvlc_adaptive_la-ProgramInformation.lo
CXX demux/dash/mpd/libvlc_adaptive_la-Representation.lo
CXX demux/dash/mpd/libvlc_adaptive_la-TemplatedUri.lo
In file included from demux/dash/mpd/TemplatedUri.cpp:25:
demux/dash/mpd/TemplatedUri.hpp:56:25: error: ‘uint64_t’ does not name a type
56 | uint64_t value;
| ^~~~~~~~
demux/dash/mpd/TemplatedUri.hpp:25:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
24 | #include <string>
+++ |+#include <cstdint>
25 |
demux/dash/mpd/TemplatedUri.cpp:129:32: error: ‘uint64_t’ was not declared in this scope
129 | static std::string FormatValue(uint64_t value, int width)
| ^~~~~~~~
demux/dash/mpd/TemplatedUri.cpp:29:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
28 | #include <sstream>
+++ |+#include <cstdint>
29 |
demux/dash/mpd/TemplatedUri.cpp:129:48: error: expected primary-expression before ‘int’
129 | static std::string FormatValue(uint64_t value, int width)
| ^~~
demux/dash/mpd/TemplatedUri.cpp:130:1: error: expected ‘,’ or ‘;’ before ‘{’ token
130 | {
| ^
demux/dash/mpd/TemplatedUri.cpp: In static member function ‘static std::__cxx11::basic_string<char>::size_type dash::mpd::TemplatedUri::ReplaceDASHToken(std::string&, std::__cxx11::basic_string<char>::size_type, const Token&, const TokenReplacement&)’:
demux/dash/mpd/TemplatedUri.cpp:153:51: error: ‘const class dash::mpd::TemplatedUri::TokenReplacement’ has no member named ‘value’
153 | std::string newstr = FormatValue(repl.value, token.width);
| ^~~~~
make[4]: *** [Makefile:32903: demux/dash/mpd/libvlc_adaptive_la-TemplatedUri.lo] Error 1
make[4]: Leaving directory '/home/sean/vlc/modules'
make[3]: *** [Makefile:34274: all-recursive] Error 1
make[3]: Leaving directory '/home/sean/vlc/modules'
make[2]: *** [Makefile:14330: all] Error 2
make[2]: Leaving directory '/home/sean/vlc/modules'
make[1]: *** [Makefile:1587: all-recursive] Error 1
make[1]: Leaving directory '/home/sean/vlc'
make: *** [Makefile:1474: all] Error 2

Re: Issues whilst compiling VLC from source

Posted: 25 Jun 2024 16:41
by mfkl
Fastest workaround is to use the docker container and follow on what the CI does.