Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Behind the Scenes
  3. Wiki Discussion
  4. Qt5 development primer
Forum Updated to NodeBB v4.3 + New Features

Qt5 development primer

Scheduled Pinned Locked Moved Wiki Discussion
166 Posts 72 Posters 202.0k 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.
  • D Offline
    D Offline
    DungeonLords
    wrote on last edited by DungeonLords
    #161

    I try build Qt 5.12 on my Ubuntu 18 with X11 on OrangePi 4 like here
    Qt soures are on qt5 folder
    build folder is parallel qt5
    I use
    cd build
    sudo ../configure -developer-build -opensource -nomake examples -namake tests -confirm-licence -skip webengine -v

    And there are errors like failed to create symbolic link 'libreduce_exports.so': Operation not permitted

    But I use sudo... Also I try use sudo su. The same. Is this error because of FAT32 file system for my qt5 and build folders?
    After make -j 4 I got build/qtbase/lib/libQt5Core.so No such file or directory

    jsulmJ 1 Reply Last reply
    0
    • D DungeonLords

      I try build Qt 5.12 on my Ubuntu 18 with X11 on OrangePi 4 like here
      Qt soures are on qt5 folder
      build folder is parallel qt5
      I use
      cd build
      sudo ../configure -developer-build -opensource -nomake examples -namake tests -confirm-licence -skip webengine -v

      And there are errors like failed to create symbolic link 'libreduce_exports.so': Operation not permitted

      But I use sudo... Also I try use sudo su. The same. Is this error because of FAT32 file system for my qt5 and build folders?
      After make -j 4 I got build/qtbase/lib/libQt5Core.so No such file or directory

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #162

      @DungeonLords Why do you use FAT32 on Linux?
      You should not use sudo at all - put Qt sources and build folder in your home directory.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • G Offline
        G Offline
        Gluttony
        wrote on last edited by Gluttony
        #163

        Hi,
        About this page: https://wiki.qt.io/Building_Qt_5_from_Git

        • For openSUSE (I'm on Leap 15), I had to install more software than the one listed (sudo zypper install git-core gcc-c++ make), they are llvm-devel clang clang-devel mozilla-nss-devel (not sure for clang if just clang is needed or just clang-devel or both),
        • And just out of curiosity, is there a reason why weneed run configure with ../qt5/configure and not just ./configure ?

        Thanks

        jsulmJ 1 Reply Last reply
        1
        • G Gluttony

          Hi,
          About this page: https://wiki.qt.io/Building_Qt_5_from_Git

          • For openSUSE (I'm on Leap 15), I had to install more software than the one listed (sudo zypper install git-core gcc-c++ make), they are llvm-devel clang clang-devel mozilla-nss-devel (not sure for clang if just clang is needed or just clang-devel or both),
          • And just out of curiosity, is there a reason why weneed run configure with ../qt5/configure and not just ./configure ?

          Thanks

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #164

          @Gluttony said in Qt5 development primer:

          And just out of curiosity, is there a reason why weneed run configure with ../qt5/configure and not just ./configure ?

          It is better to do out of source builds to not to pollute source tree with build artefacts.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • B Offline
            B Offline
            bhagerty
            wrote on last edited by
            #165

            I proposed a few edits over on the wiki to clarify the business about parallel directories and shadow builds, because I found the instructions very confusing. I now think it needs yet another edit, and I wanted to run it by this forum.

            If you follow the instructions about creating a build directory that is parallel to the source directory, you end up with two directories both in home: (1) ~/qt5, which holds the source (per the git clone instructions on the page, and (2) ~/qt5-build (or something like that), in which the source is built. Number (2) is not explicit in the existing instructions, but it has to be the intention, otherwise the command given for running configure, namely ../qt5/configure, would not work.

            But if you build Qt inside your home directory, then when you try to run qmake naked at a prompt, you get an error:

            qmake: could not exec '/usr/lib/qt5/bin/qmake': No such file or directory

            The error makes sense, because if we followed directions, we didn't build Qt into /usr/lib/qt5, but instead into ~/qt5-build (or something like it). So to run qmake, we need to provide the full path (or change the PATH environment variable).

            My question: Am I missing something? If I'm not, then I think that the wiki should be further edited to make this point about the path. But I hesitate to make yet another edit in case I am missing something. If anyone can shed some light either way, please do. If I'm right, I'll just edit the wiki page.

            SGaistS 1 Reply Last reply
            0
            • B bhagerty

              I proposed a few edits over on the wiki to clarify the business about parallel directories and shadow builds, because I found the instructions very confusing. I now think it needs yet another edit, and I wanted to run it by this forum.

              If you follow the instructions about creating a build directory that is parallel to the source directory, you end up with two directories both in home: (1) ~/qt5, which holds the source (per the git clone instructions on the page, and (2) ~/qt5-build (or something like that), in which the source is built. Number (2) is not explicit in the existing instructions, but it has to be the intention, otherwise the command given for running configure, namely ../qt5/configure, would not work.

              But if you build Qt inside your home directory, then when you try to run qmake naked at a prompt, you get an error:

              qmake: could not exec '/usr/lib/qt5/bin/qmake': No such file or directory

              The error makes sense, because if we followed directions, we didn't build Qt into /usr/lib/qt5, but instead into ~/qt5-build (or something like it). So to run qmake, we need to provide the full path (or change the PATH environment variable).

              My question: Am I missing something? If I'm not, then I think that the wiki should be further edited to make this point about the path. But I hesitate to make yet another edit in case I am missing something. If anyone can shed some light either way, please do. If I'm right, I'll just edit the wiki page.

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #166

              @bhagerty hi and welcome to devnet,

              What using a custom build of Qt: always use the full path to qmake. You may have the one provided by your distribution installed which will be the one invoked. One other thing you did not take into account is unless you are doing a developer build (because you want to hack on Qt) you have to call 'make install' as last step.

              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