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. Install QT5.1 in ubuntukylin 13.04
Qt 6.11 is out! See what's new in the release blog

Install QT5.1 in ubuntukylin 13.04

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 3 Posters 3.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.
  • qazaq408Q Offline
    qazaq408Q Offline
    qazaq408
    wrote on last edited by
    #1

    my OS is ubuntuylin 13.04,I download QT 5.1 int http://qt-project.org,

    then I use- cmd "chmod 755 ./QT......run"
    "./QT.....run"

    try to install QT5.1 and finish it work. and I going to make a first QT project.

    I edit simple code by VIM, and move the file to a new file directory.(path = /home/jxf/gui)

    I use cmd " cd /home/jxf/gui"
    "qmake -project"

    and system tell me " qmake: could not find a Qt installation of ' ' ".....

    now I use the IDE(QT creator)
    
    the question is "can't find file or directory"(it's chinese error ,I try to translate,my english is poor.........)
    
    code  : 
       #include<QApplication>     // <==this line ,IDE tell me "can't find file or directory"
    
      #include<QLabel>
    
       int main(int argc, char* argv[])
    
    {
    
         QApplication app(argc,argv);
    
         QLabel label = new QLabel("hello QT!");
    
         label->show();
    
        return app.exec&#40;&#41;;
    
    }
    
    what should I do ......
    1 Reply Last reply
    0
    • qazaq408Q Offline
      qazaq408Q Offline
      qazaq408
      wrote on last edited by
      #2

      @#include<QApplication> // <==this line ,IDE tell me “can’t find file or directory”
      #include<QLabel>
      int main(int argc, char* argv[])
      {
      QApplication app(argc,argv);
      QLabel label = new QLabel(“hello QT!”);
      label->show();
      return app.exec();
      }
      @

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

        Hi and welcome to devnet,

        Since you are using Qt 5 you are missing:

        @QT += widgets@

        in 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
        • qazaq408Q Offline
          qazaq408Q Offline
          qazaq408
          wrote on last edited by
          #4

          excuse me..
          I'm a noob and thanks your E-mail,

          first,I building a new file that include these code.
          @
          #include<QApplication>
          #include<QLabel>
          int main(int argc, char* argv[])
          {
          QApplication app(argc,argv);
          QLabel label = new QLabel(“hello QT!”);
          label->show();
          return app.exec();
          }
          @

          the name of file is qt.cpp.(path = /home/jxf/gui)

          the second ,cmd "cd /home/jxf/gui"
          so far,everything go well,

          for build a .pro, I use cmd "qmake -project", if all go well, I'll get a .pro(file).
          but systen tell me " qmake: could not find a Qt installation of '' "

          what happen....

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

            Are you sure you are using the qmake from Qt 5.1 ?

            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
            • G Offline
              G Offline
              guru
              wrote on last edited by
              #6

              use this in your terminal mode:

              @sudo apt-get install build-essential@

              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