Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Installation problems on Linux Mint
Forum Updated to NodeBB v4.3 + New Features

Installation problems on Linux Mint

Scheduled Pinned Locked Moved Installation and Deployment
10 Posts 2 Posters 4.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    aimc
    wrote on last edited by
    #1

    Hello. I am using Linux Mint Olivia 15
    I have followed this procedure exactly as it is:
    http://qt-project.org/doc/qt-4.8/install-x11.html

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Do you get any error messages ? Are you sure webkit was built ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        aimc
        wrote on last edited by
        #3

        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.

        http://img856.imageshack.us/img856/6901/dqff.png

        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:
        #include "qhelpviewer.h"
        #include <QVBoxLayout>

        #include <QDebug>
        #include <QDialogButtonBox>
        #include <QDesktopServices>
        #include <QWebView>
        #include <QWebPage>

        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]

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Did you add

          @QT += webkit@

          to your pro file ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • A Offline
            A Offline
            aimc
            wrote on last edited by
            #5

            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]

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              It seems I've misunderstood you, what were the error messages related to webkit when you configured Qt ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • A Offline
                A Offline
                aimc
                wrote on last edited by
                #7

                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)

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  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.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    aimc
                    wrote on last edited by
                    #9

                    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?

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      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
                      e.g.
                      @apt-get install libqtwebkit-dev@

                      Then you should be good to go

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved