Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Installation problems on Linux Mint
Hello. I am using Linux Mint Olivia 15
I have followed this procedure exactly as it is:
And it will install apparently fine.
But it won't install qtwebkit, which is an essential library requested by a program that we need to use.
And we need to use Qt4 without doubts (no Qt5 or other versions)
How can i install qtwebkit or the whole Qt4 correctly on my Linux Mint computer?
Hi and welcome to devnet,
Do you get any error messages ? Are you sure webkit was built ?
Hi. What was not compiled nor installed was QWebView.
It actually showed some clues about not installing webkit or something, when you do the './configure' step.
A program I have for compiling needs QWebView to compile, and it cannot find it. Here's a screenshot.
As you can see, 'make' fails, and qmake shows us that the current version installed is 4.8.5 in the Trolltech directory.
What the cpp file has in it that makes it fail is:
It actually fails on the line where it includes QWebView or QWebPage (both of them generates an error in 'make).
[quote author="SGaist" date="1385163343"]Hi and welcome to devnet,
Do you get any error messages ? Are you sure webkit was built ?[/quote]
Did you add
@QT += webkit@
to your pro file ?
No i didn't.
I never saw that file before. I will search for it, add that line before ./configure and post here if successfull or if fails.
[quote author="SGaist" date="1385241527"]Did you add
@QT += webkit@
to your pro file ?[/quote]
It seems I've misunderstood you, what were the error messages related to webkit when you configured Qt ?
Maybe i didn't express myself clearly.
Here's a resume of what has happened so far:
I have a program which makes use of Qt4. Apparently, needs Qt4webkit also.
In Ubuntu, it was pretty straight-forward. but it doesn't matter since it needs to work on Linux Mint 15.
In Linux Mint: i downloaded, compiled and installed Qt4.8.5 exactly as the tutorial suggested: http://qt-project.org/doc/qt-4.8/install-x11.html
Everything installed fine (at least with no errors)
Then, when trying to compile the libraries for my program, it won't finish because it lacks QwebView and Qtwebkit: http://img856.imageshack.us/img856/6901/dqff.png
You suggested to reinstall Qt modifying the arguments passed to the configuration part. Probably webkit is not installed by default? I haven't tested this yet (i will today in my VM or tomorrow on a real PC)
No I didn't suggested anything like that. I asked you if you had in your project pro file a line containing QT += webkit. That lines enable the use of the webkit module and related classes.
I have checked the sources and files for the program that I need to run and there's no file with extension *.pro
So I guess that it makes calls to webkit headers anyway, and assumes that the module is installed.
I am not very familiar with Linux Systems; what I am figuring out is that the program needs webkit and that Qt does not install it by default. Is that correct?
Also, I don't find reinstalling Qt as a bad solution, as long as this program runs in Linux Mint 15. Will a reinstalation break anything important or make something crash?
Let's rewind a bit.
You are running Linux Mint which is a Ubuntu/Debian derivative -> Ok ?
You have a program/library that uses Qt 4 and QtWebkit -> Ok ?
You are using cmake to build that project -> Ok ?
Then unless you need the latest Qt 4, you can use your distribution packages and install the development packages for Qt 4
@apt-get install libqtwebkit-dev@
Then you should be good to go