How Do I Compile VLC? I Keep Having Trouble With Qt.

blackneos940

Active Member
Joined
May 16, 2017
Messages
347
Reaction score
207
Credits
332
So I'm back with another conundrum..... :3 I'm trying to compile VLC and make my own version, called VLC Custard, and I took care of everything like xcb and friends..... :3 Now, it's telling me that I need a specific version of Qt, specifically:
Code:
configure: error: No package 'Qt5Core' found
No package 'Qt5Widgets' found
No package 'Qt5Gui' found
No package 'Qt5Quick' found
No package 'Qt5QuickWidgets' found
No package 'Qt5QuickControls2' found
No package 'Qt5Svg' found.

Lol, no way I'm passing the --disable-qt flag..... :3 VLC Custard needs a GUI!..... :3 I tried using apt to install Qt5Core, and Tab to try to autocomplete, but no dice..... :< Is there something-dev Package I need to install or somethin'.....? :3 It also wants the latest Qt, not whatever Qt5* installs..... :3 Thanks for any help guys, I really appreciate it as always..... :3
 


You need the "dev" packages.

ibqscintilla2-qt5-dev/bionic 2.10.2+dfsg-4 amd64
Scintilla source code editing widget for Qt5, development files
libqt5charts5-dev/bionic 5.9.5-0ubuntu1 amd64
Qt charts development files
libqt5gstreamer-dev/bionic 1.2.0-5 amd64
libqt5opengl5-dev/bionic-updates 5.9.5+dfsg-0ubuntu2 amd64
Qt 5 OpenGL library development files

The messages above are a little misleading, it doesn't really care if you have the actual package installed or nor.
For example you don't need Qt5Gui to compile it... but you do need the qt5gui-dev libraries and headers.

It's hard to give a complete list because the packages don't always have the same names across distros.

But something like "apt search qt5 | grep dev" should get you most of what you need.
 
But something like "apt search qt5 | grep dev" should get you most of what you need.
This! ^^

Also, it sounds as if you're using a debian based distro. So you could just use:
Code:
sudo apt-get build-dep vlc vlc-plugin-qt

And that should get all of the dependencies used to build the version of vlc that is packaged in the distros repos. With any luck - that should satisfy all of the pre-requisites for the latest version of vlc from their git repo.

So I'd try that first. And then try building vlc.

But, if the version in the git repo requires newer versions of any of the libraries used - and those versions are not available in your installed distros repos yet - you may have to get the source-code for the newer versions of the libraries and then build and install them from source before you can build VLC.

Over the years I've only had to do that kind of thing a handful of times - generally the build-deps from the repo are usually good enough to build a more recent version of a program from git.
So you should be fine with the build dependencies from your distros repos.

Give it a go and let us know how you get on!
 
Last edited:
You need the "dev" packages.

ibqscintilla2-qt5-dev/bionic 2.10.2+dfsg-4 amd64
Scintilla source code editing widget for Qt5, development files
libqt5charts5-dev/bionic 5.9.5-0ubuntu1 amd64
Qt charts development files
libqt5gstreamer-dev/bionic 1.2.0-5 amd64
libqt5opengl5-dev/bionic-updates 5.9.5+dfsg-0ubuntu2 amd64
Qt 5 OpenGL library development files

The messages above are a little misleading, it doesn't really care if you have the actual package installed or nor.
For example you don't need Qt5Gui to compile it... but you do need the qt5gui-dev libraries and headers.

It's hard to give a complete list because the packages don't always have the same names across distros.

But something like "apt search qt5 | grep dev" should get you most of what you need.
Thank you, good sir!..... :3 Once VLC Custard is finished, I'll list you in the credits!..... :3
 
This! ^^

Also, it sounds as if you're using a debian based distro. So you could just use:
Code:
sudo apt-get build-dep vlc vlc-plugin-qt

And that should get all of the dependencies used to build the version of vlc that is packaged in the distros repos. With any luck - that should satisfy all of the pre-requisites for the latest version of vlc from their git repo.

So I'd try that first. And then try building vlc.

But, if the version in the git repo requires newer versions of any of the libraries used - and those versions are not available in your installed distros repos yet - you may have to get the source-code for the newer versions of the libraries and then build and install them from source before you can build VLC.

Over the years I've only had to do that kind of thing a handful of times - generally the build-deps from the repo are usually good enough to build a more recent version of a program from git.
So you should be fine with the build dependencies from your distros repos.

Give it a go and let us know how you get on!
Hey good sir!..... :3 First, it gave me an error about URIs, so I had to run
Code:
sudo sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list
which I got from askubuntu.com ..... :3 Now the Commands you said to use are working!..... :3 But alas, it still complains about an older version of Qt, and still doesn't see those same Qt Packages..... :<
 
This! ^^

Also, it sounds as if you're using a debian based distro. So you could just use:
Code:
sudo apt-get build-dep vlc vlc-plugin-qt

And that should get all of the dependencies used to build the version of vlc that is packaged in the distros repos. With any luck - that should satisfy all of the pre-requisites for the latest version of vlc from their git repo.

So I'd try that first. And then try building vlc.

But, if the version in the git repo requires newer versions of any of the libraries used - and those versions are not available in your installed distros repos yet - you may have to get the source-code for the newer versions of the libraries and then build and install them from source before you can build VLC.

Over the years I've only had to do that kind of thing a handful of times - generally the build-deps from the repo are usually good enough to build a more recent version of a program from git.
So you should be fine with the build dependencies from your distros repos.

Give it a go and let us know how you get on!
Also, I'll actually list anyone who got me through this in the credits..... :3
 
You need the "dev" packages.

ibqscintilla2-qt5-dev/bionic 2.10.2+dfsg-4 amd64
Scintilla source code editing widget for Qt5, development files
libqt5charts5-dev/bionic 5.9.5-0ubuntu1 amd64
Qt charts development files
libqt5gstreamer-dev/bionic 1.2.0-5 amd64
libqt5opengl5-dev/bionic-updates 5.9.5+dfsg-0ubuntu2 amd64
Qt 5 OpenGL library development files

The messages above are a little misleading, it doesn't really care if you have the actual package installed or nor.
For example you don't need Qt5Gui to compile it... but you do need the qt5gui-dev libraries and headers.

It's hard to give a complete list because the packages don't always have the same names across distros.

But something like "apt search qt5 | grep dev" should get you most of what you need.
Nope, it still complains about wanting newer versions of those Qt Packages, even after running your Commands..... :<
 
What error messages are you getting?
I should mention that this is all being done through a Terminal Emulator, Sakura, from my Server..... :3 It's running Xubuntu 18.04 LTS..... :3 Does that help, good sir.....? :3
 
Did you run the bootstrapping script before attempting to run the configure script?

As specified here:
https://wiki.videolan.org/UnixCompile/
Yeah..... :3 Even went to me and my friend's Server to install Qt, Creator and all..... I'm navigating the Dirs to find the things VLC wants, but no go..... :< I'll run ./bootstrap again though, 'cuz funnier things have happened!..... :3 Well, you never know!..... :3
 
That's very strange. The QT5 development libraries are all available in the repos. And if you've installed all of the available QT5 development libraries, you should have them there already.

I don't see why VLC's configure scripts are unable to find the QT libraries.... Very odd....

Perhaps there is something not right about the environment.

Did you say you have QTCreator installed?
If you also have qmake installed, what is the output of qmake --version

That will tell you the version of qmake you're using and which version of the QT libraries are being used.
 
That's very strange. The QT5 development libraries are all available in the repos. And if you've installed all of the available QT5 development libraries, you should have them there already.

I don't see why VLC's configure scripts are unable to find the QT libraries.... Very odd....

Perhaps there is something not right about the environment.

Did you say you have QTCreator installed?
If you also have qmake installed, what is the output of qmake --version

That will tell you the version of qmake you're using and which version of the QT libraries are being used.
I'm getting it now buddy..... :)
 
That's very strange. The QT5 development libraries are all available in the repos. And if you've installed all of the available QT5 development libraries, you should have them there already.

I don't see why VLC's configure scripts are unable to find the QT libraries.... Very odd....

Perhaps there is something not right about the environment.

Did you say you have QTCreator installed?
If you also have qmake installed, what is the output of qmake --version

That will tell you the version of qmake you're using and which version of the QT libraries are being used.
Nope, even in the Qt Directory, in the /bin/ part, it doesn't recognize qmake..... :(
 
If I get a chance later, I'll try installing the pre-requisites and building vlc from source on my Debian Testing laptop. See if I can work out what's what!
 
If I get a chance later, I'll try installing the pre-requisites and building vlc from source on my Debian Testing laptop. See if I can work out what's what!
Thanks buddy..... :3 BTW, what is your Laptop's specs.....? :3 Mine's got liek 2GB of RAM and an Intel Atom Processor..... :)
 
Thanks buddy..... :3 BTW, what is your Laptop's specs.....? :3 Mine's got liek 2GB of RAM and an Intel Atom Processor..... :)
Mines a cheap Asus laptop, with dual i3 processors and a low-spec Intel/Nvidia optimus graphics card. But I recently replaced the HDD with a 1Tb HDD and maxed out the RAM to 8Gb. Not the most powerful machine in the world, but it has enough grunt to do what I need it to. So it works for me!

I didn't get a chance to try building vlc from source, so I'll try it now.
 
I've just installed the build-pre-requisites using the apt build-dep command in my post.
That definitely installed the qt5 libraries that you said you were getting errors about.
So running that should have got all of the pre-requisites.

I'm just about to download the source code for vlc now!
I'll keep you posted on how I get on!
 

Members online


Top