Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Why qt6 would look for external libQt6Core.so.6 rather than its own built libQt6Core.so by default?

Why qt6 would look for external libQt6Core.so.6 rather than its own built libQt6Core.so by default?

Scheduled Pinned Locked Moved Unsolved Qt 6
7 Posts 3 Posters 1.6k 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.
  • jiapei100J Offline
    jiapei100J Offline
    jiapei100
    wrote on last edited by
    #1

    Hi, all:

    I'm trying to build Qt6 from source under Ubuntu 22.04, with gcc

    ➜  build lsb_release -a
    No LSB modules are available.
    Distributor ID:	Ubuntu
    Description:	Ubuntu 22.04.2 LTS
    Release:	22.04
    Codename:	jammy
    ➜  build gcc --version
    gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
    Copyright (C) 2021 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    

    But, got the following ERROR messages:

    [ 15%] Automatic QML type registration for target Qml
    cd /opt/qt/qt-everywhere-src-6.5.1/build/qtdeclarative/src/qml && ../../../qtbase/libexec/qmltyperegistrar --generate-qmltypes=/opt/qt/qt-everywhere-src-6.5.1/build/qtbase/qml/QtQml/Base/plugins.qmltypes --import-name=QtQml.Base --major-version=6 --minor-version=5 --follow-foreign-versioning @/opt/qt/qt-everywhere-src-6.5.1/build/qtdeclarative/src/qml/qmltypes/Qml_foreign_types.txt --private-includes -o /opt/qt/qt-everywhere-src-6.5.1/build/qtdeclarative/src/qml/qml_qmltyperegistrations.cpp /opt/qt/qt-everywhere-src-6.5.1/build/qtdeclarative/src/qml/meta_types/qt6qml_release_metatypes.json
    ../../../qtbase/libexec/qmltyperegistrar: /usr/lib/x86_64-linux-gnu/libQt6Core.so.6: version `Qt_6.5' not found (required by ../../../qtbase/libexec/qmltyperegistrar)
    make[2]: *** [qtdeclarative/src/qml/CMakeFiles/Qml.dir/build.make:90: qtdeclarative/src/qml/qml_qmltyperegistrations.cpp] Error 1
    make[2]: Leaving directory '/opt/qt/qt-everywhere-src-6.5.1/build'
    make[1]: *** [CMakeFiles/Makefile2:33713: qtdeclarative/src/qml/CMakeFiles/Qml.dir/all] Error 2
    make[1]: Leaving directory '/opt/qt/qt-everywhere-src-6.5.1/build'
    make: *** [Makefile:149: all] Error 2
    
    ➜  build find . -depth -iname "*.so" | grep Core
    ./qtbase/lib/libQt6Core5Compat.so
    ./qtbase/lib/libQt6QmlCore.so
    ./qtbase/lib/libQt6Core.so
    ./qtbase/lib/libQt63DCore.so
    ./qtbase/qml/QtCore/libqtqmlcoreplugin.so
    ./qtbase/qml/Qt3D/Core/libquick3dcoreplugin.so
    

    Don't know if anywhere suggested to look for /usr/lib/x86_64-linux-gnu/libQt6Core.so.6 FIRST before local ./qtbase/lib/libQt6Core.so ?

    Welcome to Longer Vision
    https://www.longervision.com

    sierdzioS JoeCFDJ 2 Replies Last reply
    0
    • jiapei100J jiapei100

      Hi, all:

      I'm trying to build Qt6 from source under Ubuntu 22.04, with gcc

      ➜  build lsb_release -a
      No LSB modules are available.
      Distributor ID:	Ubuntu
      Description:	Ubuntu 22.04.2 LTS
      Release:	22.04
      Codename:	jammy
      ➜  build gcc --version
      gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
      Copyright (C) 2021 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions.  There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
      

      But, got the following ERROR messages:

      [ 15%] Automatic QML type registration for target Qml
      cd /opt/qt/qt-everywhere-src-6.5.1/build/qtdeclarative/src/qml && ../../../qtbase/libexec/qmltyperegistrar --generate-qmltypes=/opt/qt/qt-everywhere-src-6.5.1/build/qtbase/qml/QtQml/Base/plugins.qmltypes --import-name=QtQml.Base --major-version=6 --minor-version=5 --follow-foreign-versioning @/opt/qt/qt-everywhere-src-6.5.1/build/qtdeclarative/src/qml/qmltypes/Qml_foreign_types.txt --private-includes -o /opt/qt/qt-everywhere-src-6.5.1/build/qtdeclarative/src/qml/qml_qmltyperegistrations.cpp /opt/qt/qt-everywhere-src-6.5.1/build/qtdeclarative/src/qml/meta_types/qt6qml_release_metatypes.json
      ../../../qtbase/libexec/qmltyperegistrar: /usr/lib/x86_64-linux-gnu/libQt6Core.so.6: version `Qt_6.5' not found (required by ../../../qtbase/libexec/qmltyperegistrar)
      make[2]: *** [qtdeclarative/src/qml/CMakeFiles/Qml.dir/build.make:90: qtdeclarative/src/qml/qml_qmltyperegistrations.cpp] Error 1
      make[2]: Leaving directory '/opt/qt/qt-everywhere-src-6.5.1/build'
      make[1]: *** [CMakeFiles/Makefile2:33713: qtdeclarative/src/qml/CMakeFiles/Qml.dir/all] Error 2
      make[1]: Leaving directory '/opt/qt/qt-everywhere-src-6.5.1/build'
      make: *** [Makefile:149: all] Error 2
      
      ➜  build find . -depth -iname "*.so" | grep Core
      ./qtbase/lib/libQt6Core5Compat.so
      ./qtbase/lib/libQt6QmlCore.so
      ./qtbase/lib/libQt6Core.so
      ./qtbase/lib/libQt63DCore.so
      ./qtbase/qml/QtCore/libqtqmlcoreplugin.so
      ./qtbase/qml/Qt3D/Core/libquick3dcoreplugin.so
      

      Don't know if anywhere suggested to look for /usr/lib/x86_64-linux-gnu/libQt6Core.so.6 FIRST before local ./qtbase/lib/libQt6Core.so ?

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @jiapei100 what is your configure line?

      (Z(:^

      jiapei100J 1 Reply Last reply
      0
      • jiapei100J jiapei100

        Hi, all:

        I'm trying to build Qt6 from source under Ubuntu 22.04, with gcc

        ➜  build lsb_release -a
        No LSB modules are available.
        Distributor ID:	Ubuntu
        Description:	Ubuntu 22.04.2 LTS
        Release:	22.04
        Codename:	jammy
        ➜  build gcc --version
        gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
        Copyright (C) 2021 Free Software Foundation, Inc.
        This is free software; see the source for copying conditions.  There is NO
        warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
        

        But, got the following ERROR messages:

        [ 15%] Automatic QML type registration for target Qml
        cd /opt/qt/qt-everywhere-src-6.5.1/build/qtdeclarative/src/qml && ../../../qtbase/libexec/qmltyperegistrar --generate-qmltypes=/opt/qt/qt-everywhere-src-6.5.1/build/qtbase/qml/QtQml/Base/plugins.qmltypes --import-name=QtQml.Base --major-version=6 --minor-version=5 --follow-foreign-versioning @/opt/qt/qt-everywhere-src-6.5.1/build/qtdeclarative/src/qml/qmltypes/Qml_foreign_types.txt --private-includes -o /opt/qt/qt-everywhere-src-6.5.1/build/qtdeclarative/src/qml/qml_qmltyperegistrations.cpp /opt/qt/qt-everywhere-src-6.5.1/build/qtdeclarative/src/qml/meta_types/qt6qml_release_metatypes.json
        ../../../qtbase/libexec/qmltyperegistrar: /usr/lib/x86_64-linux-gnu/libQt6Core.so.6: version `Qt_6.5' not found (required by ../../../qtbase/libexec/qmltyperegistrar)
        make[2]: *** [qtdeclarative/src/qml/CMakeFiles/Qml.dir/build.make:90: qtdeclarative/src/qml/qml_qmltyperegistrations.cpp] Error 1
        make[2]: Leaving directory '/opt/qt/qt-everywhere-src-6.5.1/build'
        make[1]: *** [CMakeFiles/Makefile2:33713: qtdeclarative/src/qml/CMakeFiles/Qml.dir/all] Error 2
        make[1]: Leaving directory '/opt/qt/qt-everywhere-src-6.5.1/build'
        make: *** [Makefile:149: all] Error 2
        
        ➜  build find . -depth -iname "*.so" | grep Core
        ./qtbase/lib/libQt6Core5Compat.so
        ./qtbase/lib/libQt6QmlCore.so
        ./qtbase/lib/libQt6Core.so
        ./qtbase/lib/libQt63DCore.so
        ./qtbase/qml/QtCore/libqtqmlcoreplugin.so
        ./qtbase/qml/Qt3D/Core/libquick3dcoreplugin.so
        

        Don't know if anywhere suggested to look for /usr/lib/x86_64-linux-gnu/libQt6Core.so.6 FIRST before local ./qtbase/lib/libQt6Core.so ?

        JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by JoeCFD
        #3

        @jiapei100 also do not build Qt under /opt/ since you do not want to use sudo to build it. Build Qt anywhere under your $HOME and install it under /opt

        jiapei100J 1 Reply Last reply
        1
        • JoeCFDJ JoeCFD

          @jiapei100 also do not build Qt under /opt/ since you do not want to use sudo to build it. Build Qt anywhere under your $HOME and install it under /opt

          jiapei100J Offline
          jiapei100J Offline
          jiapei100
          wrote on last edited by
          #4

          @JoeCFD Thank you.. I've already chmod my /opt folder .. That's not this issue. But, thanks anyway..

          Welcome to Longer Vision
          https://www.longervision.com

          JoeCFDJ 1 Reply Last reply
          0
          • sierdzioS sierdzio

            @jiapei100 what is your configure line?

            jiapei100J Offline
            jiapei100J Offline
            jiapei100
            wrote on last edited by
            #5

            @sierdzio Hi, I have my CMakeCache.txt pasted here.

            Can you help to take a look ? Thank you

            Welcome to Longer Vision
            https://www.longervision.com

            sierdzioS 1 Reply Last reply
            0
            • jiapei100J jiapei100

              @sierdzio Hi, I have my CMakeCache.txt pasted here.

              Can you help to take a look ? Thank you

              sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              @jiapei100 I don't even know what to look for there. I do know what to do with a configure call.

              (Z(:^

              1 Reply Last reply
              0
              • jiapei100J jiapei100

                @JoeCFD Thank you.. I've already chmod my /opt folder .. That's not this issue. But, thanks anyway..

                JoeCFDJ Offline
                JoeCFDJ Offline
                JoeCFD
                wrote on last edited by
                #7

                @jiapei100 check here out about configure settings:
                http://bin.ceicer.com/qt/Linux/

                Just curious: why do you want to build 6.5.1 on Ubuntu 22.04? You can simply install it.

                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