Results 1 to 7 of 7

Thread: Installed Qt5 Creator, Qt5 Qmake missing

  1. #1

    Question Installed Qt5 Creator, Qt5 Qmake missing

    Hello fellow openSUSE forum users,

    I'm not entirely sure if I'm posting this in the correct section, but it isn't really directly programming related, so I thought the Applications section
    would be appropriate. Please correct me if I'm wrong

    I recently did a fresh openSUSE 13.1 install after a period of using Fedora 19 because I hoped to get Qt5 via the official repositories, which wasn't available in openSUSE 12.3.
    I was very happy to see that openSUSE 13.1 officially included Qt5, so that I could switch back to my favourite Linux distro

    I installed the libqt5-creator and libQt5Declarative5 packages, the rest got dragged in automatically. So I booted up Qt 5.0 Creator after the installation had finished, I opened my old project that had worked fine using the Qt SDK downloaded from qt-project.org. And tried to compile it, but I got the following:
    error: QtGui/QGuiApplication: No such file or directory
    #include <QtGui/QGuiApplication>


    So I headed to Tools->Options->Build & Run->Qt Versions and to my surprise only Qt 4.8.5 was listed! Of course I tried to add Qt5 qmake but to no avail
    I had exactly the same problems on Fedora 19 with Qt 5.1 from the official repositories, on my both distro's I had installed the qt5-qttools package assuming that that would contain Qt5 qmake as I couldn't find any qt5-qmake or similarly named package.

    But I couldn't find any Qt5 qmake executable in /usr/bin/, just "qmake" which was meant for Qt4. I also ran "find -iname qmake" as root user in / but to no avail too.

    Does any know a solution to this problem and are there more installations suffering from this problem or am I on my own?

    Kind Regards,

    Superpelican

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,796
    Blog Entries
    15

    Default Re: Installed Qt5 Creator, Qt5 Qmake missing

    On Sat 23 Nov 2013 06:46:01 PM CST, Superpelican wrote:


    Hello fellow openSUSE forum users,

    I'm not entirely sure if I'm posting this in the correct section, but it
    isn't really directly programming related, so I thought the Applications
    section
    would be appropriate. Please correct me if I'm wrong

    I recently did a fresh openSUSE 13.1 install after a period of using
    Fedora 19 because I hoped to get Qt5 via the official repositories,
    which wasn't available in openSUSE 12.3.
    I was very happy to see that openSUSE 13.1 officially included Qt5, so
    that I could switch back to my favourite Linux distro

    I installed the libqt5-creator and libQt5Declarative5 packages, the rest
    got dragged in automatically. So I booted up Qt 5.0 Creator after the
    installation had finished, I opened my old project that had worked fine
    using the Qt SDK downloaded from qt-project.org. And tried to compile
    it, but I got the following:
    > error: QtGui/QGuiApplication: No such file or directory
    > #include <QtGui/QGuiApplication>
    >
    >

    So I headed to Tools->Options->Build & Run->Qt Versions and to my
    surprise only Qt 4.8.5 was listed! Of course I tried to add Qt5 qmake
    but to no avail
    I had exactly the same problems on Fedora 19 with Qt 5.1 from the
    official repositories, on my both distro's I had installed the
    qt5-qttools package assuming that that would contain Qt5 qmake as I
    couldn't find any qt5-qmake or similarly named package.

    But I couldn't find any Qt5 qmake executable in /usr/bin/, just "qmake"
    which was meant for Qt4. I also ran "find -iname qmake" as root user in
    / but to no avail too.

    Does any know a solution to this problem and are there more
    installations suffering from this problem or am I on my own?

    Kind Regards,

    Superpelican


    Hi
    You need to install libqt5-qtbase-devel which contains qmake-qt5

    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SLED 11 SP3 (x86_64) GNOME 2.28.0 Kernel 3.0.101-0.8-default
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!


  3. #3

    Default Re: Installed Qt5 Creator, Qt5 Qmake missing

    Yes, I found qmake-qt5 at
    Code:
    /usr/lib64/qt5/bin/qmake
    and
    Code:
    /usr/bin/qmake-qt5

  4. #4
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,742

    Default Re: Installed Qt5 Creator, Qt5 Qmake missing

    Make sure you have the Development version since what it need is the source the header files actually.

  5. #5
    Join Date
    Feb 2011
    Location
    Zagreb, Croatia
    Posts
    120

    Default Re: Installed Qt5 Creator, Qt5 Qmake missing

    Quote Originally Posted by Superpelican View Post


    So I headed to Tools->Options->Build & Run->Qt Versions and to my surprise only Qt 4.8.5 was listed! Of course I tried to add Qt5 qmake but to no avail
    I had exactly the same problems on Fedora 19 with Qt 5.1 from the official repositories, on my both distro's I had installed the qt5-qttools package assuming that that would contain Qt5 qmake as I couldn't find any qt5-qmake or similarly named package.
    As has been pointed out already, you need libqt5-qtbase-devel package. That one contains both qmake(-qt5), and needed headers from qtbase(5) module:
    Code:
    rpm -ql libqt5-qtbase-devel
    ...
    /usr/bin/moc-qt5
    /usr/bin/qdbuscpp2xml-qt5
    /usr/bin/qdbusxml2cpp-qt5
    /usr/bin/qdoc
    /usr/bin/qmake-qt5
    /usr/bin/rcc-qt5
    /usr/bin/syncqt.pl
    /usr/bin/uic-qt5
    .....
    /usr/include/qt5/QtGui/QGuiApplication
    ....
    /usr/lib64/qt5/bin/moc
    /usr/lib64/qt5/bin/moc-qt5
    /usr/lib64/qt5/bin/qdbuscpp2xml
    /usr/lib64/qt5/bin/qdbuscpp2xml-qt5
    /usr/lib64/qt5/bin/qdbusxml2cpp
    /usr/lib64/qt5/bin/qdbusxml2cpp-qt5
    /usr/lib64/qt5/bin/qdoc
    /usr/lib64/qt5/bin/qmake
    /usr/lib64/qt5/bin/qmake-qt5
    /usr/lib64/qt5/bin/rcc
    /usr/lib64/qt5/bin/rcc-qt5
    /usr/lib64/qt5/bin/syncqt.pl
    /usr/lib64/qt5/bin/uic
    /usr/lib64/qt5/bin/uic-qt5
    ...

  6. #6

    Default Re: Installed Qt5 Creator, Qt5 Qmake missing

    The same problem here. I've installed libqt5-qtbase-devel libqt5-qttools-devel and libqt5-creator. Files from these packages are on HDD but QtCreator sees only Qt4.

  7. #7
    Join Date
    Feb 2011
    Location
    Zagreb, Croatia
    Posts
    120

    Default Re: Installed Qt5 Creator, Qt5 Qmake missing

    You can manually add qmake-qt5

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •