Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. uic or uic-qt4 not found with make rpm-package
Qt 6.11 is out! See what's new in the release blog

uic or uic-qt4 not found with make rpm-package

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 2 Posters 3.6k Views 2 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.
  • thetoneT Offline
    thetoneT Offline
    thetone
    wrote on last edited by thetone
    #1

    Hi folks,
    I'm new to compiling programs from source. So my question is helllppppp!

    I've done a ./configure and qt is reported as version 5.5, all good

    I had to add PKG_CONFIG_PATH=/usr/lib64/qt/5.5/gcc_64/lib/pkgconfig:/usr/lib64
    and add to
    PATH=$PATH:/usr/lib64/qt5/bin:/usr/lib64/qt/5.5/gcc_64/bin

    Then ran make and got the above message.

    This is running on Centos 7.1

    cheers
    thetone

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

      Hi and welcome to devnet,

      What software are you trying to compile ? And how are you trying to compile it ?

      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
      • thetoneT Offline
        thetoneT Offline
        thetone
        wrote on last edited by thetone
        #3

        Hi SGaist,

        thanks. I'm trying to compile wireshark v1.12 by running the ./configure command to check all dependencies are installed or correct then run the make rpm-package command to build the binaries

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

          How did you install Qt ? Did you also install the other dependencies of WireShark ?

          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
          • thetoneT Offline
            thetoneT Offline
            thetone
            wrote on last edited by thetone
            #5

            I installed Qt5 using the install qt-unified-linux-x64-2.0.2-2-online.run but changed the install directory to usr/lib64/qt5 ...for no particular reason, left everythingelse to default just qt5 ticked
            Yes I installed all the dependencies for Wireshark.

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

              Since you have modified PATH, can you call uic from the command line ?

              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
              • thetoneT Offline
                thetoneT Offline
                thetone
                wrote on last edited by
                #7

                ok so I've updated the path correctly and uic --help now runs.

                But I get a different error when I run the make command.

                ==== snip
                In file included from /usr/include/QtGui/qplaintextedit.h:45:0,
                from /usr/include/QtGui/QPlainTextEdit:1,
                from ui_about_dialog.h:21,
                from about_dialog.cpp:25:
                /usr/include/QtGui/qtextedit.h:235:16: error: ‘QPrinter’ has not been declared
                void print(QPrinter *printer) const;
                ^
                In file included from /usr/include/QtGui/QPlainTextEdit:1:0,
                from ui_about_dialog.h:21,
                from about_dialog.cpp:25:
                /usr/include/QtGui/qplaintextedit.h:181:16: error: ‘QPrinter’ has not been declared
                void print(QPrinter printer) const;
                ^
                In file included from about_dialog.cpp:25:0:
                ui_about_dialog.h: In member function ‘void Ui_AboutDialog::retranslateUi(QDialog
                )’:
                ui_about_dialog.h:208:98: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’
                AboutDialog->setWindowTitle(QApplication::translate("AboutDialog", "About Wireshark", 0, QApplication::UnicodeUTF8));
                ^
                In file included from about_dialog.cpp:25:0:
                ui_about_dialog.h:210:155: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’
                label_title->setText(QApplication::translate("AboutDialog", "<span size=\"x-large\" weight=\"bold\">Network Protocol Analyzer</span>", 0, QApplication::UnicodeUTF8));
                ^
                ui_about_dialog.h:212:121: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’
                tabWidget->setTabText(tabWidget->indexOf(tab_wireshark), QApplication::translate("AboutDialog", "Wireshark", 0, QApplication::UnicodeUTF8));
                ^
                ui_about_dialog.h:213:117: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’
                tabWidget->setTabText(tabWidget->indexOf(tab_authors), QApplication::translate("AboutDialog", "Authors", 0, QApplication::UnicodeUTF8));

                ui_about_dialog.h:215:117: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’
                tabWidget->setTabText(tabWidget->indexOf(tab_folders), QApplication::translate("AboutDialog", "Folders", 0, QApplication::UnicodeUTF8));

                ui_about_dialog.h:217:117: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’
                tabWidget->setTabText(tabWidget->indexOf(tab_plugins), QApplication::translate("AboutDialog", "Plugins", 0, QApplication::UnicodeUTF8));

                ui_about_dialog.h:218:117: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’
                tabWidget->setTabText(tabWidget->indexOf(tab_license), QApplication::translate("AboutDialog", "License", 0, QApplication::UnicodeUTF8));

                ======= snip

                Cheers
                thetone

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

                  Looks like you are mixing Qt 4 and Qt 5

                  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
                  • thetoneT Offline
                    thetoneT Offline
                    thetone
                    wrote on last edited by
                    #9

                    are ok how do resolve this, uninstall qt4 ?

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

                      Check the configure options to see if you can set which versions of Qt you want to use.

                      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