Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. How to export QT path in 5.9.1 the old one is export QTDIR=/usr/lib/qt2?

How to export QT path in 5.9.1 the old one is export QTDIR=/usr/lib/qt2?

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
5 Posts 4 Posters 3.4k 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.
  • J Offline
    J Offline
    johng2017
    wrote on last edited by
    #1

    Dear sir.
    I downlaod QT and insalled in my home directory:
    john@john-GS63VR-6RF ~ $ ls /home/john/Qt/5.9.1/
    android_armv7 gcc_64
    I try to complier quiteinsanegimpplugin-0.3.
    https://sourceforge.net/projects/quiteinsane/
    and try mutiple way, it always fail:
    checking for Qt... configure: error: Qt (>= Qt 2.2.2) (headers and libraries) not found. Please check your installation!
    I also try:
    ./configure --enable-mt --with-qt-includes=/home/john/Qt/5.9.1/gcc_64/include --with-qt-libraries=/home/john/Qt/5.9.1/gcc_64/lib
    all failed.

    In the install Notes:
    -Make sure that QTDIR is set correctly. If it isn't set, then run
    :~>export QTDIR=path_to_qt, e.g.
    :~>export QTDIR=/usr/lib/qt2

    -If you want to use Qt version 3.x, then simply set QTDIR accordingly.
    -If you want to link against a Qt version with thread support,use the
    --enable-mt switch.

    Please help me out.
    Thanks
    John

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

      Hi and welcome to devnet,

      You can do it like suggested in the doc using exporthowever you have to first realise that this plugin was written when Qt was at version two so there has been tree major releases in between. Qt 3 to Qt 4 required some ports so even if your Qt version was detected, you may have to do some porting.

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

        I know this has been here for a year, but I came to run into the same situation, however, since I am not an experienced Ubuntu (Linux) I have no idea what does the term porting refers to? Is there a way to make that plugin to install? if there is please let me know, I only installed this qt thing for the specific plugin.

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

          @pesr0412 Hi and welcome to devnet,

          In this case porting means that you might have to rewrite parts of the code to accommodate the fact that there was several major releases since it was first written so the widget used might have changed name.

          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
          1
          • A Offline
            A Offline
            ambershark
            wrote on last edited by
            #5

            I've had to modify (port) code between minor versions like Qt 5.5 to 5.6, sometimes a lot of it like when webkit was dropped. If you are porting from Qt 2, that is like 20 years ago old. It will be a lot of work and you'll need to know Qt decently well.

            If you are just having an issue with mixing Qt versions though you can fix that by setting QTDIR (either in your bashrc or everytime in your shell) and potentially having to modify PATH to not point to the old Qt.

            My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

            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