Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. more 6.3 error..,.
Forum Updated to NodeBB v4.3 + New Features

more 6.3 error..,.

Scheduled Pinned Locked Moved Solved General and Desktop
10 Posts 3 Posters 596 Views 1 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by
    #1

    ....the error is in library ?

    How can I trace it back to source code ?

    :-1: error: /media/q5/1T_NEW_COPY/QT_PROGRAMS_FULL/SOURCE/mdi/../bluetooth/btchat//libbtchat.so: undefined reference to `operator delete(void*, unsigned long)@Qt_5'

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @AnneRanch said in more 6.3 error..,.:

      undefined reference to `operator delete(void*, unsigned long)@Qt_5'

      As you can see you compiled this against Qt5 - remove your build folder and make sure everything is build with Qt6 (as told you many times when you fiddle around with different Qt versions but...)

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Anonymous_Banned275
        wrote on last edited by Anonymous_Banned275
        #3

        Are you positive ?
        Please realize that your are suggesting to remove source while the current project makes a library references to it. .
        Besides - the error is "missing reference " and you are suggesting because it is complied using wrong version
        ?
        Get real...

        How does it work anyway -why do I select "all kits " and the project was being build starting with 5...

        Are you saying "select all kits " is bogus?

        Are you saying that I cannot start subprojects using different versions - they all have to be same ?

        ... and please - skip "I told you so " attitude in the future or do not bother to reply to my posts.

        I am tired of your " I am better then you " attitude.

        I guess you had to be told ... let's see if YOU CAN FOLLOW the instructions...

        Christian EhrlicherC 1 Reply Last reply
        0
        • A Offline
          A Offline
          Anonymous_Banned275
          wrote on last edited by
          #4

          Here is a new build error message AFTER the offending file was "unmounted "

          f9355020-ff02-449d-9daa-98e5cab5859b-image.png

          I am still looking for a place , in my project , where the reference to this directory is made...

          (Technical ) help solving this would be appreciated.

          C 1 Reply Last reply
          0
          • A Anonymous_Banned275

            Here is a new build error message AFTER the offending file was "unmounted "

            f9355020-ff02-449d-9daa-98e5cab5859b-image.png

            I am still looking for a place , in my project , where the reference to this directory is made...

            (Technical ) help solving this would be appreciated.

            C Offline
            C Offline
            ChrisW67
            wrote on last edited by
            #5

            @AnneRanch said in more 6.3 error..,.:

            I am still looking for a place , in my project , where the reference to this directory is made...

            It is in your Qt Creator project settings:
            Screenshot_20220702_155617.png

            These are the default shadow-build paths for a project created by Qt Creator when you open a bare PRO file, select a kit or kits, and click "Configure project".
            Screenshot_20220702_160423.png

            My test.pro file was in /tmp/test. In your case, the project file you probably opened with Qt Creator was in a subfolder of folder:

            /media/q5/1T_NEW_COPY/QT_PROGRAMS_FULL/MDI_BT
            

            so the default shadow build folder is:

            /media/q5/1T_NEW_COPY/QT_PROGRAMS_FULL/MDI_BT/build-MDI_BT-Qt_6_3_1_GCC_64bit-Debug
            

            Your build is failing because you do not have permissions to create the shadow build folder in that location. Based on the location under /media my guess is that the source code is on a read-only medium (CDROM etc).

            A 1 Reply Last reply
            1
            • C Offline
              C Offline
              ChrisW67
              wrote on last edited by
              #6

              AnneRanch about 4 hours ago in response to @Christian-Ehrlicher

              Are you positive ?

              I am sure Christian is both positive and "real".
              The connection to Qt5 is also perfectly rational given the output.
              Qt5 and Qt6 are not binary compatible, mixing them will not end well.
              Being asked to remove your build folder (which is a shadow folder outside your source code based on your other posts) is a perfectly sane first step because it removes all compiled artifacts that are within your project. This ensure that these are, indeed, all rebuilt with the same Qt version, compiler etc.

              If you can be get past ad hominem responses perhaps your understanding will improve.

              @AnneRanch said in more 6.3 error..,.:

              ....the error is in library ?
              How can I trace it back to source code ?
              :-1: error: /media/q5/1T_NEW_COPY/QT_PROGRAMS_FULL/SOURCE/mdi/../bluetooth/btchat//libbtchat.so: undefined reference to `operator delete(void*, unsigned long)@__Qt_5__'

              You claim you are building your program with Qt 6.3.1. In some part of that code you are referring to a class or function from a library, btchat, that the linker has to resolve. The name that the linker has been given in the is operator delete(void*, unsigned long)@Qt_5. So, some part of your project appears to be already built with Qt 5 (probably libbtchat) and because Qt5 and Qt6 are not binary compatible the linker cannot make a match with the libraries it can see.

              To diagnose any further with the scant context afforded in the original post is not possible.

              You need to ensure that everything in your project, and any Qt-derived component it uses, has been built with Qt 6 and ensure that those compiled artifacts are the ones being found by your linker. If the situation persists after ensuring this then post the entire content of the Compile window in Qt Creator (pastebin.com or similar if it is too large) and ask for help.

              Alternatively, build everything in your project, and any Qt-derived component it uses, has been built with Qt 5.

              A 1 Reply Last reply
              2
              • A Anonymous_Banned275

                Are you positive ?
                Please realize that your are suggesting to remove source while the current project makes a library references to it. .
                Besides - the error is "missing reference " and you are suggesting because it is complied using wrong version
                ?
                Get real...

                How does it work anyway -why do I select "all kits " and the project was being build starting with 5...

                Are you saying "select all kits " is bogus?

                Are you saying that I cannot start subprojects using different versions - they all have to be same ?

                ... and please - skip "I told you so " attitude in the future or do not bother to reply to my posts.

                I am tired of your " I am better then you " attitude.

                I guess you had to be told ... let's see if YOU CAN FOLLOW the instructions...

                Christian EhrlicherC Offline
                Christian EhrlicherC Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @AnneRanch said in more 6.3 error..,.:

                Are you positive ?
                Please realize that your are suggesting to remove source while the current project makes a library references to it. .

                I never did suggest that you remove your source code but if you don't understand the difference between source and build directory / files then maybe deleting the source files is also a good idea...

                Why is the downvote button gone? :(

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                1 Reply Last reply
                0
                • C ChrisW67

                  AnneRanch about 4 hours ago in response to @Christian-Ehrlicher

                  Are you positive ?

                  I am sure Christian is both positive and "real".
                  The connection to Qt5 is also perfectly rational given the output.
                  Qt5 and Qt6 are not binary compatible, mixing them will not end well.
                  Being asked to remove your build folder (which is a shadow folder outside your source code based on your other posts) is a perfectly sane first step because it removes all compiled artifacts that are within your project. This ensure that these are, indeed, all rebuilt with the same Qt version, compiler etc.

                  If you can be get past ad hominem responses perhaps your understanding will improve.

                  @AnneRanch said in more 6.3 error..,.:

                  ....the error is in library ?
                  How can I trace it back to source code ?
                  :-1: error: /media/q5/1T_NEW_COPY/QT_PROGRAMS_FULL/SOURCE/mdi/../bluetooth/btchat//libbtchat.so: undefined reference to `operator delete(void*, unsigned long)@__Qt_5__'

                  You claim you are building your program with Qt 6.3.1. In some part of that code you are referring to a class or function from a library, btchat, that the linker has to resolve. The name that the linker has been given in the is operator delete(void*, unsigned long)@Qt_5. So, some part of your project appears to be already built with Qt 5 (probably libbtchat) and because Qt5 and Qt6 are not binary compatible the linker cannot make a match with the libraries it can see.

                  To diagnose any further with the scant context afforded in the original post is not possible.

                  You need to ensure that everything in your project, and any Qt-derived component it uses, has been built with Qt 6 and ensure that those compiled artifacts are the ones being found by your linker. If the situation persists after ensuring this then post the entire content of the Compile window in Qt Creator (pastebin.com or similar if it is too large) and ask for help.

                  Alternatively, build everything in your project, and any Qt-derived component it uses, has been built with Qt 5.

                  A Offline
                  A Offline
                  Anonymous_Banned275
                  wrote on last edited by
                  #8

                  @ChrisW67
                  Thanks you for very constructive post , I appreciate that .

                  I can post SOME of the compiler / build output to demonstrate that only 6.3 is being used . Would it help to analyze this ?

                  So, some part of your project appears to be already built with Qt 5 (probably libbtchat) and because Qt5 and Qt6 are not binary compatible the linker cannot make a match with the libraries it can see.

                  That is indeed what is happening and I cannot find HOW .

                  As I stated - I have few problems - one of them with implementing "chat" example . I have deleted a code using it and that "error" is no longer there.

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    Anonymous_Banned275
                    wrote on last edited by Anonymous_Banned275
                    #9

                    FYI
                    I am posting this to update my troubleshooting
                    Current output after loading the project, running "clear" and "rebuild" .

                    New sets of errors and NO LONGER "missing definitions " error .

                    ceb8598c-50a0-426f-a4a7-da3812b80b47-image.png

                    ...and this is the output when I "run" the project

                    fd481338-d37a-4554-976e-d72628cd068a-image.png

                    1 Reply Last reply
                    0
                    • C ChrisW67

                      @AnneRanch said in more 6.3 error..,.:

                      I am still looking for a place , in my project , where the reference to this directory is made...

                      It is in your Qt Creator project settings:
                      Screenshot_20220702_155617.png

                      These are the default shadow-build paths for a project created by Qt Creator when you open a bare PRO file, select a kit or kits, and click "Configure project".
                      Screenshot_20220702_160423.png

                      My test.pro file was in /tmp/test. In your case, the project file you probably opened with Qt Creator was in a subfolder of folder:

                      /media/q5/1T_NEW_COPY/QT_PROGRAMS_FULL/MDI_BT
                      

                      so the default shadow build folder is:

                      /media/q5/1T_NEW_COPY/QT_PROGRAMS_FULL/MDI_BT/build-MDI_BT-Qt_6_3_1_GCC_64bit-Debug
                      

                      Your build is failing because you do not have permissions to create the shadow build folder in that location. Based on the location under /media my guess is that the source code is on a read-only medium (CDROM etc).

                      A Offline
                      A Offline
                      Anonymous_Banned275
                      wrote on last edited by
                      #10

                      @ChrisW67 SOLVED I forgot to change the build directory after I moved the project .
                      That was why the library was linked to wrong directory too.
                      Still does not explain why I was getting "undefined " error - that alone put me in wrong direction to fix this.
                      Appreciate all help received from the group.
                      CASE CLOSED

                      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