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. How to install qt application in /opt
QtWS25 Last Chance

How to install qt application in /opt

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

    i want to install my qt application in app i want to take part in ubuntu app show down contest and the rule is application must be installed to /opt http://developer.ubuntu.com/showdown after asking on askubuntu
    http://askubuntu.com/questions/152464/how-to-run-our-application-in-opt
    i got that i will have to state it how do i do this
    by default most frameworks install to /usr/share
    in my build steps it shows qmake and then make please tell me a trusted way to do that i dont want at the deployment my application is rejected and it should also be easily compiled into a debi want to use qt with qt creator and c++ because it suits me well

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tomma
      wrote on last edited by
      #2

      You have to tell qmake where to install your application http://qt-project.org/doc/qt-4.8/qmake-environment-reference.html#installs .
      Also remember to install every file your application depends on.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tucnak
        wrote on last edited by
        #3

        @
        cd qt-<version>-opensource
        ./configure <flags>
        make
        make install <flags>
        @
        sudo required for make install if you aren't under root.

        P.S. AFAIN, Qt5 builds to /opt for default.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          developer
          wrote on last edited by
          #4

          thanks man i iwll try that

          1 Reply Last reply
          0
          • D Offline
            D Offline
            developer
            wrote on last edited by
            #5

            it would be good if you could give me a sample code for my pro file

            1 Reply Last reply
            0
            • D Offline
              D Offline
              developer
              wrote on last edited by
              #6

              after update here is my pro file is it ok:
              @#-------------------------------------------------

              Project created by QtCreator 2012-05-30T18:47:13

              #-------------------------------------------------

              QT += core gui webkit sql

              TARGET = letssee
              TEMPLATE = app

              documentation.path = /opt
              documentation.files = docs/*
              INSTALLS+=documentation
              SOURCES += main.cpp
              mainwindow.cpp
              webview.cpp
              cuteurl.cpp
              tabwidget.cpp
              searchbar.cpp
              searchenginebox.cpp
              historymanager/historymanager.cpp

              HEADERS += mainwindow.h
              webview.h
              cuteurl.h
              tabwidget.h
              searchbar.h
              searchenginebox.h
              historymanager/historymanager.h

              FORMS += mainwindow.ui

              @

              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