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. Example path question
QtWS25 Last Chance

Example path question

Scheduled Pinned Locked Moved Installation and Deployment
9 Posts 2 Posters 3.7k 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
    deleted28
    wrote on last edited by
    #1

    Hello,

    after a fresh setupt using the installer: "qt-opensource-linux-x86-1.6.0-4-online.run"
    i do not have the examples in WelcomeTAB. Installation path is /opt/QtSDK
    and the examples appears to be in /opt/QtSDK/Examples/Qt-5.3/
    QTDIR environment is set to /opt/QtSDK/5.3/gcc but there are no examples under gcc folder.
    Should i copy the examples from /opt/QtSDK/Examples/Qt-5.3/* to /opt/QtSDK/5.3/gcc
    or better to set paths in different way ?

    On creator start i get an error message:
    Plugin initialization failed: Could not find maintenance tool at '/opt/Qt5v3/MaintenanceTool'. Check your installation.
    /opt/Qt5v3/ was the path of an older setup, now its /opt/QtSDK/.
    I do not know where this pathsetting still exists so i can not change yet.
    ~/.bashrc does not.

    Is there somewhere an instruction how to set all the necessary paths
    on a Linux 32 machine ?

    Which additionla repositories are available t add to maintenance tool ?
    So far i have the set after a fresh install.

    little confusing, i know

    I can not find out where to set all the necessary paths, here i need advice.

    wally

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on last edited by
      #2

      Do you use qtcreator from QtSDK or from Qt5v3 ?
      Try to move $HOME/.config/QtProject/ to some other name and re-run qtcreator from QtSDK.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        deleted28
        wrote on last edited by
        #3

        The recent new installation puts all stuff in /opt/QtSDK.
        /opt/Qt5v3 was the old installtion path and do not exists anymore.

        I did what you suggested and the Plugin initialization problem
        does not appear anymore and a set of examples are shown in Welcome TAB now, but examples titled with "Qt 4.8.5 in PATH (System).
        The only other Qt i have on my system is in /usr/lib/qt3 (and qt4, qt5) which is installed by OpenSuse for KDE ( at least i think so)

        Problem is i do not know how to setup paths or whatever to
        do my work with the Qt stuff installed using online-installer /opt/QtSDK.

        In QtCreator->Options->Buil;d & Run->Qt Versions:
        @Autodetected
        Qt 5.3 GCC 32bit /opt/QtSDK/5.3/gcc/bin/qmake
        Manual
        Qt 4.8.5 in PATH (System) /usr/bin/qmake@

        When i remove the Manual !t 4.8.5 version, no examples are shown in Welcome TAB anymore.

        I do not need 4.8.5 but i think KDE needs it (?).
        For devel i want to use the version in /opt/QtSDK and its eamples which are located in :
        /opt/QtSDK/Examples/Qt-5.3/
        and not under /opt/QtSDK/5.3/gcc/

        I start QtCreator with /opt/QtSDK/Tools/QtCreator/bin/qtcreator.sh
        but it seems this setup does not find the approriate example folder for 5.3.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andreyc
          wrote on last edited by
          #4

          I think that qtcreator uses qmake from a Qt kit to locate the examples for the kit.
          Try to run
          @
          /opt/QtSDK/5.3/gcc/bin/qmake -query QT_INSTALL_EXAMPLES
          /opt/QtSDK/5.3/gcc/bin/qmake -query QT_INSTALL_DEMOS
          @
          and check if the directories are correct.

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

            thanks for help !

            @> /opt/QtSDK/5.3/gcc/bin/qmake -query QT_INSTALL_EXAMPLES
            /opt/QtSDK/5.3/gcc/examples

            /opt/QtSDK/5.3/gcc/bin/qmake -query QT_INSTALL_DEMOS
            /opt/QtSDK/5.3/gcc/examples@

            Same result is also shown when looking at:
            Options->Build&Run->Qt Versions->Details

            But the online installer puts all Examples here:
            /opt/QtSDK/Examples/Qt-5.3/

            I did a link to this examples in the place it is expected to be/opt/QtSDK/5.3/gcc/examples. This shows the correct Version in the Welcome-?Examples-> topmost ComboBox but the rest of the window is still empty. Any of the examples is shown as usual.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andreyc
              wrote on last edited by
              #6

              I think you can change these variables by putting qt.conf to the bin directory.
              Is /opt/QtSDK/5.3/gcc/bin/qt.conf present ?

              1 Reply Last reply
              0
              • D Offline
                D Offline
                deleted28
                wrote on last edited by
                #7

                bq. Is /opt/QtSDK/5.3/gcc/bin/qt.conf present ?

                No, but
                /opt/QtSDK/Tools/QtCreator/bin/qt.conf
                @[Paths]
                Libraries=../lib/qtcreator
                Plugins=plugins
                Imports=imports
                Qml2Imports=qml@

                On the other hand, I'm not the first who used online-installer
                and i think its tested a lot of times. Seems others do not have
                this problem, so maybe i did something stupid (?)

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  andreyc
                  wrote on last edited by
                  #8

                  Here is qt.conf that I've got

                  • $HOME/Qt5.3.1/5.3/gcc_64/bin/qt.conf
                    @
                    [Paths]
                    Prefix=..
                    Examples=../../Examples/Qt-5.3
                    Documentation=../../Docs/Qt-5.3
                    @
                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    deleted28
                    wrote on last edited by
                    #9

                    Do you think i should install again in $HOME instead of /opt ?
                    Maybe its an permission problem.
                    Which distro do you use ?

                    I created the a qt.conf file as a copy of yours above and put it to
                    /opt/QtSDK/5.3/gcc/bin/.
                    Seems to work now

                    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