Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. cannot find library...
QtWS25 Last Chance

cannot find library...

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
22 Posts 4 Posters 5.9k 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.
  • J JonB
    13 Dec 2023, 07:59

    @AnneRanch
    Although I have not used this, I would imagine that an internal library means that Qt looks for the source code in your project and compiles and links it, while external presumably means you already have the compiled library files quite outside of your project and just specify where it is for your project to link against.

    If the .so files complained about in the error message do exist, whether externally or as a result of internal compilation, then it looks like they are in a path which is not looked in at runtime.

    @Axel-Spoerl asked earlier for the content of your .pro file, presumably so he can understand what is going on. Are you able to post that (as literal text inside ``` Code tags so it's readable)?

    A Offline
    A Offline
    Anonymous_Banned275
    wrote on 13 Dec 2023, 17:43 last edited by Anonymous_Banned275
    #13

    I wound like to continue this thread to point out some of the difficulty adding a library to sudir.

    As requested ,, here is a copy of .pro AFTER " Add library.. ' option. The code complies and runs.

    unix:!macx: LIBS += -L$$PWD/../BT_Utility_Library/ -lBT_Utility_Library

    INCLUDEPATH += $$PWD/../BT_Utility_Library
    DEPENDPATH += $$PWD/../BT_Utility_Library

    unix:!macx: LIBS += -L$$OUT_PWD/../BT_Utility_Library/ -lBT_Utility_Library

    INCLUDEPATH += $$PWD/../BT_Utility_Library
    DEPENDPATH += $$PWD/../BT_Utility_Library

    unix:!macx: LIBS += -L$$OUT_PWD/../Bluetoothctl_Dialog/ -lBluetoothctl_Dialog

    INCLUDEPATH += $$PWD/../Bluetoothctl_Dialog
    DEPENDPATH += $$PWD/../Bluetoothctl_Dialog

    It seems (works) that the library has to be added as "internal " - as the option is clearly given in "add library " dialog.

    9f135075-4be9-4101-9a78-d112907c19c0-image.png

    Then "compiled" and BEFORE run added AGAIN as external library - ".so " and recompiled and then it will link and run...

    The first "compile" builds the .so in different folder-
    AND it actually build a folder with " debug" in the name - it brings up a question

    WHAT is this ",,,, debug " folder ?
    What does it do ?

    It is clearly NOT given as option in Linux !

    Second subject for discussion
    it is really nice QT GUI "build / create /compile" hides the actual compiler / linker options , BUT
    it would be nice to have an option to show all these "low level " options . I assume there is some kind of configuration file which contains the "low level " commands.

    A 1 Reply Last reply 13 Dec 2023, 19:08
    0
    • A Anonymous_Banned275
      13 Dec 2023, 17:43

      I wound like to continue this thread to point out some of the difficulty adding a library to sudir.

      As requested ,, here is a copy of .pro AFTER " Add library.. ' option. The code complies and runs.

      unix:!macx: LIBS += -L$$PWD/../BT_Utility_Library/ -lBT_Utility_Library

      INCLUDEPATH += $$PWD/../BT_Utility_Library
      DEPENDPATH += $$PWD/../BT_Utility_Library

      unix:!macx: LIBS += -L$$OUT_PWD/../BT_Utility_Library/ -lBT_Utility_Library

      INCLUDEPATH += $$PWD/../BT_Utility_Library
      DEPENDPATH += $$PWD/../BT_Utility_Library

      unix:!macx: LIBS += -L$$OUT_PWD/../Bluetoothctl_Dialog/ -lBluetoothctl_Dialog

      INCLUDEPATH += $$PWD/../Bluetoothctl_Dialog
      DEPENDPATH += $$PWD/../Bluetoothctl_Dialog

      It seems (works) that the library has to be added as "internal " - as the option is clearly given in "add library " dialog.

      9f135075-4be9-4101-9a78-d112907c19c0-image.png

      Then "compiled" and BEFORE run added AGAIN as external library - ".so " and recompiled and then it will link and run...

      The first "compile" builds the .so in different folder-
      AND it actually build a folder with " debug" in the name - it brings up a question

      WHAT is this ",,,, debug " folder ?
      What does it do ?

      It is clearly NOT given as option in Linux !

      Second subject for discussion
      it is really nice QT GUI "build / create /compile" hides the actual compiler / linker options , BUT
      it would be nice to have an option to show all these "low level " options . I assume there is some kind of configuration file which contains the "low level " commands.

      A Offline
      A Offline
      Anonymous_Banned275
      wrote on 13 Dec 2023, 19:08 last edited by
      #14

      @AnneRanch Here is an example of "...debug" folder / directory created by compiler :

      d4bca327-3236-464f-bd10-d30b6666fe95-image.png

      That basically stops the linker from finding the .so library.

      This is just an example...

      A 1 Reply Last reply 13 Dec 2023, 20:47
      0
      • A Anonymous_Banned275
        13 Dec 2023, 19:08

        @AnneRanch Here is an example of "...debug" folder / directory created by compiler :

        d4bca327-3236-464f-bd10-d30b6666fe95-image.png

        That basically stops the linker from finding the .so library.

        This is just an example...

        A Online
        A Online
        Axel Spoerl
        Moderators
        wrote on 13 Dec 2023, 20:47 last edited by
        #15

        @AnneRanch
        I am sure, we can solve your problem if you post all of what I asked you here. Is there a specific reason, why you ignore that request?

        Software Engineer
        The Qt Company, Oslo

        A 1 Reply Last reply 14 Dec 2023, 04:11
        0
        • A Axel Spoerl
          13 Dec 2023, 20:47

          @AnneRanch
          I am sure, we can solve your problem if you post all of what I asked you here. Is there a specific reason, why you ignore that request?

          A Offline
          A Offline
          Anonymous_Banned275
          wrote on 14 Dec 2023, 04:11 last edited by
          #16

          @Axel-Spoerl Yes, apparently you cannot participate in discussion and include what others have posted...
          the .pro path has nothing to do with the issue
          the compiler output shows WHERE the .so files are
          hence location of .so files is already known
          the compiler DOES not posts #include errors
          ( the path for #include is not an issue )
          The issue is
          why using internal file option creates/ builds the .so files (good) in new , QT created location (BAD ) .

          Somebody mentioned that " windows debug ..." option does not apply in Linux BUT it sure looks as some other (IDE unknown ) option is creating NEW folder which surprisingly contains "debug" in name ,,,
          Lets work on this together and try to go forward with what we know... Cheers

          A 1 Reply Last reply 14 Dec 2023, 07:34
          0
          • A Anonymous_Banned275
            14 Dec 2023, 04:11

            @Axel-Spoerl Yes, apparently you cannot participate in discussion and include what others have posted...
            the .pro path has nothing to do with the issue
            the compiler output shows WHERE the .so files are
            hence location of .so files is already known
            the compiler DOES not posts #include errors
            ( the path for #include is not an issue )
            The issue is
            why using internal file option creates/ builds the .so files (good) in new , QT created location (BAD ) .

            Somebody mentioned that " windows debug ..." option does not apply in Linux BUT it sure looks as some other (IDE unknown ) option is creating NEW folder which surprisingly contains "debug" in name ,,,
            Lets work on this together and try to go forward with what we know... Cheers

            A Online
            A Online
            Axel Spoerl
            Moderators
            wrote on 14 Dec 2023, 07:34 last edited by Axel Spoerl
            #17

            Here is what we know:
            The compiler creates library A:
            libTEST_LIBRARY_SUB.so.1.0.0 libTEST_LIBRARY_SUB.so
            in /mnt/usb-**Seagate_Expansion_NA833BDC-0:0-part4/BT__PROGRAMS/build-TEST_SUBDIRS-Qt_5_15_2_gcc_64-Debug/TEST_LIBRARY_SUB

            I creates two symlinks to the library:

            ln -s libTEST_LIBRARY_SUB.so.1.0.0 libTEST_LIBRARY_SUB.so.1
            ln -s libTEST_LIBRARY_SUB.so.1.0.0 libTEST_LIBRARY_SUB.so.1.0
            

            We also know, that the linker is instructed to find library B: libBT_Utility.so.1
            in /mnt/usb-Seagate_Expansion_NA833BDC-0:0-part4/BT__PROGRAMS/UTILITY_DEBUG/untitled/untitled

            These are two different libraries in two different paths.
            In the part that you have elected to share with us, the linker can't find library A.
            In the other part you have elected to share with us, the compiler successfully produces library B.
            Two separate things, completely unrelated.
            @JonB has already pointed at this discrepancy.

            On a side note:
            The first path contains two asterisks between usb-and Seagate, which is a potential error source.

            What you know, but we don’t:

            • The very specific linker instruction makes me believe, that library B may actually exist. Maybe it's created in another compile step. If it was my problem on my computer, I'd search for the library on the file system.

            • The linker instruction must be in one (or more) of your .profiles. If it was my problem on my computer, I'd inspect them and share them with an expert.

            Lets work on this together and try to go forward with what we know.

            Sometimes we are baffled with a problem, that is not rooted where we firmly believe it is. Then we need the help of others to look into places, where we haven't looked before - because we were biased by our opinion to look only where we expect the issue to reside. If I may be frank: It is kind of a pattern in your posts, that you refuse requests to shed light to unexpected corners. Some of them might seem overly formal. Some of them might turn out to be useless. They all have one single intention: Understand a problem and solve it.

            @AnneRanch said in cannot find library...:

            Yes, apparently you cannot participate in discussion and include what others have posted...

            Breathe. Smile :-)

            Software Engineer
            The Qt Company, Oslo

            A 1 Reply Last reply 14 Dec 2023, 16:02
            3
            • A Axel Spoerl
              14 Dec 2023, 07:34

              Here is what we know:
              The compiler creates library A:
              libTEST_LIBRARY_SUB.so.1.0.0 libTEST_LIBRARY_SUB.so
              in /mnt/usb-**Seagate_Expansion_NA833BDC-0:0-part4/BT__PROGRAMS/build-TEST_SUBDIRS-Qt_5_15_2_gcc_64-Debug/TEST_LIBRARY_SUB

              I creates two symlinks to the library:

              ln -s libTEST_LIBRARY_SUB.so.1.0.0 libTEST_LIBRARY_SUB.so.1
              ln -s libTEST_LIBRARY_SUB.so.1.0.0 libTEST_LIBRARY_SUB.so.1.0
              

              We also know, that the linker is instructed to find library B: libBT_Utility.so.1
              in /mnt/usb-Seagate_Expansion_NA833BDC-0:0-part4/BT__PROGRAMS/UTILITY_DEBUG/untitled/untitled

              These are two different libraries in two different paths.
              In the part that you have elected to share with us, the linker can't find library A.
              In the other part you have elected to share with us, the compiler successfully produces library B.
              Two separate things, completely unrelated.
              @JonB has already pointed at this discrepancy.

              On a side note:
              The first path contains two asterisks between usb-and Seagate, which is a potential error source.

              What you know, but we don’t:

              • The very specific linker instruction makes me believe, that library B may actually exist. Maybe it's created in another compile step. If it was my problem on my computer, I'd search for the library on the file system.

              • The linker instruction must be in one (or more) of your .profiles. If it was my problem on my computer, I'd inspect them and share them with an expert.

              Lets work on this together and try to go forward with what we know.

              Sometimes we are baffled with a problem, that is not rooted where we firmly believe it is. Then we need the help of others to look into places, where we haven't looked before - because we were biased by our opinion to look only where we expect the issue to reside. If I may be frank: It is kind of a pattern in your posts, that you refuse requests to shed light to unexpected corners. Some of them might seem overly formal. Some of them might turn out to be useless. They all have one single intention: Understand a problem and solve it.

              @AnneRanch said in cannot find library...:

              Yes, apparently you cannot participate in discussion and include what others have posted...

              Breathe. Smile :-)

              A Offline
              A Offline
              Anonymous_Banned275
              wrote on 14 Dec 2023, 16:02 last edited by
              #18

              @Axel-Spoerl Thanks, nice summary what was already discussed ..
              The ** is part of this posting software BOLD HIGHLIGHT, sorry ...

              Here is working result of adding libraries to one .pro of the subpro structure -
              NONE of them have "debug" added.

              It is pretty useless without knowing the absolute path to the main subproject .pro

              INCLUDEPATH += $$PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1/BT_LIBRARY/BT_Utility_Library
              DEPENDPATH += $$PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1/BT_LIBRARY/BT_Utility_Library
              
              unix:!macx: LIBS += -L$$OUT_PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/build-BT_FT857_CAT_DEV13_V1-Qt_5_15_2_gcc_64-Debug/BT_LIBRARY/BT_Utility_Library/ -lBT_Utility_Library
              
              INCLUDEPATH += $$PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1_LIBRARY/BT_LIBRARY/Bluetoothctl_Dialog
              DEPENDPATH += $$PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1_LIBRARY/BT_LIBRARY/Bluetoothctl_Dialog
              
              unix:!macx: LIBS += -L$$OUT_PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/build-BT_FT857_CAT_DEV13_V1-Qt_5_15_2_gcc_64-Debug/BT_LIBRARY/Bluetoothctl_Dialog/ -lBluetoothctl_Dialog
              
              INCLUDEPATH += $$PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1/BT_LIBRARY/Bluetoothctl_Dialog
              DEPENDPATH += $$PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1/BT_LIBRARY/Bluetoothctl_Dialog
              
              unix:!macx: LIBS += -L$$OUT_PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1/BT_MS_LIBRARY/ -lBT_MS_LIBRARY
              
              INCLUDEPATH += $$PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1/BT_MS_LIBRARY
              DEPENDPATH += $$PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1/BT_MS_LIBRARY
              
              
              A A 2 Replies Last reply 14 Dec 2023, 16:15
              0
              • A Anonymous_Banned275
                14 Dec 2023, 16:02

                @Axel-Spoerl Thanks, nice summary what was already discussed ..
                The ** is part of this posting software BOLD HIGHLIGHT, sorry ...

                Here is working result of adding libraries to one .pro of the subpro structure -
                NONE of them have "debug" added.

                It is pretty useless without knowing the absolute path to the main subproject .pro

                INCLUDEPATH += $$PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1/BT_LIBRARY/BT_Utility_Library
                DEPENDPATH += $$PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1/BT_LIBRARY/BT_Utility_Library
                
                unix:!macx: LIBS += -L$$OUT_PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/build-BT_FT857_CAT_DEV13_V1-Qt_5_15_2_gcc_64-Debug/BT_LIBRARY/BT_Utility_Library/ -lBT_Utility_Library
                
                INCLUDEPATH += $$PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1_LIBRARY/BT_LIBRARY/Bluetoothctl_Dialog
                DEPENDPATH += $$PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1_LIBRARY/BT_LIBRARY/Bluetoothctl_Dialog
                
                unix:!macx: LIBS += -L$$OUT_PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/build-BT_FT857_CAT_DEV13_V1-Qt_5_15_2_gcc_64-Debug/BT_LIBRARY/Bluetoothctl_Dialog/ -lBluetoothctl_Dialog
                
                INCLUDEPATH += $$PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1/BT_LIBRARY/Bluetoothctl_Dialog
                DEPENDPATH += $$PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1/BT_LIBRARY/Bluetoothctl_Dialog
                
                unix:!macx: LIBS += -L$$OUT_PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1/BT_MS_LIBRARY/ -lBT_MS_LIBRARY
                
                INCLUDEPATH += $$PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1/BT_MS_LIBRARY
                DEPENDPATH += $$PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1/BT_MS_LIBRARY
                
                
                A Offline
                A Offline
                Anonymous_Banned275
                wrote on 14 Dec 2023, 16:15 last edited by
                #19

                @AnneRanch Just for info
                if I add
                "internal" library with both "Linux" and "windows " options - it add this to .pro

                win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/BT_LIBRARY/BT_Utility_Library/release/ -lBT_Utility_Library
                else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/BT_LIBRARY/BT_Utility_Library/debug/ -lBT_Utility_Library
                else:unix:!macx: LIBS += -L$$OUT_PWD/BT_LIBRARY/BT_Utility_Library/ -lBT_Utility_Library
                
                **this  is also added - Linux add** 
                
                INCLUDEPATH += $$PWD/BT_LIBRARY/BT_Utility_Library
                DEPENDPATH += $$PWD/BT_LIBRARY/BT_Utility_Library
                
                

                add I get this "else" error when "build" HENCE I CANNOT Accidentally use "windows" options , not without consequence...

                0ff29302-f7d9-4780-b241-91ee1da76a60-image.png

                1 Reply Last reply
                0
                • A Anonymous_Banned275
                  14 Dec 2023, 16:02

                  @Axel-Spoerl Thanks, nice summary what was already discussed ..
                  The ** is part of this posting software BOLD HIGHLIGHT, sorry ...

                  Here is working result of adding libraries to one .pro of the subpro structure -
                  NONE of them have "debug" added.

                  It is pretty useless without knowing the absolute path to the main subproject .pro

                  INCLUDEPATH += $$PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1/BT_LIBRARY/BT_Utility_Library
                  DEPENDPATH += $$PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1/BT_LIBRARY/BT_Utility_Library
                  
                  unix:!macx: LIBS += -L$$OUT_PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/build-BT_FT857_CAT_DEV13_V1-Qt_5_15_2_gcc_64-Debug/BT_LIBRARY/BT_Utility_Library/ -lBT_Utility_Library
                  
                  INCLUDEPATH += $$PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1_LIBRARY/BT_LIBRARY/Bluetoothctl_Dialog
                  DEPENDPATH += $$PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1_LIBRARY/BT_LIBRARY/Bluetoothctl_Dialog
                  
                  unix:!macx: LIBS += -L$$OUT_PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/build-BT_FT857_CAT_DEV13_V1-Qt_5_15_2_gcc_64-Debug/BT_LIBRARY/Bluetoothctl_Dialog/ -lBluetoothctl_Dialog
                  
                  INCLUDEPATH += $$PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1/BT_LIBRARY/Bluetoothctl_Dialog
                  DEPENDPATH += $$PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1/BT_LIBRARY/Bluetoothctl_Dialog
                  
                  unix:!macx: LIBS += -L$$OUT_PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1/BT_MS_LIBRARY/ -lBT_MS_LIBRARY
                  
                  INCLUDEPATH += $$PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1/BT_MS_LIBRARY
                  DEPENDPATH += $$PWD/../../../../../../../../mnt/A_BT_DEC10/BT__PROGRAMS/BT_FT857_CAT_DEV13_V1/BT_MS_LIBRARY
                  
                  
                  A Online
                  A Online
                  Axel Spoerl
                  Moderators
                  wrote on 14 Dec 2023, 17:40 last edited by
                  #20

                  @AnneRanch said in cannot find library...:

                  It is pretty useless

                  Yes. Because you posted the wrong file.
                  We need the .pro file containing libBT_Utility.so.1 in a line starting with LIBS +=

                  Have you located libBT_Utility.so.1 in your file system?

                  Software Engineer
                  The Qt Company, Oslo

                  A 1 Reply Last reply 18 Dec 2023, 17:28
                  0
                  • A Axel Spoerl referenced this topic on 18 Dec 2023, 05:58
                  • A Axel Spoerl
                    14 Dec 2023, 17:40

                    @AnneRanch said in cannot find library...:

                    It is pretty useless

                    Yes. Because you posted the wrong file.
                    We need the .pro file containing libBT_Utility.so.1 in a line starting with LIBS +=

                    Have you located libBT_Utility.so.1 in your file system?

                    A Offline
                    A Offline
                    Anonymous_Banned275
                    wrote on 18 Dec 2023, 17:28 last edited by
                    #21

                    @Axel-Spoerl Sorry . I got involved in another issue.

                    There is no .so info when "add library" is used
                    HERE
                    ( I believe INCLUDEPATH can be printed but I forgot how )

                    unix:!macx: LIBS += -L$$OUT_PWD/../MS_BASE_CLASS/ -lMS_BASE_CLASS

                    INCLUDEPATH += $$PWD/../MS_BASE_CLASS
                    DEPENDPATH += $$PWD/../MS_BASE_CLASS

                    Yes. Because you posted the wrong file.
                    We need the .pro file containing libBT_Utility.so.1 in a line starting with LIBS +=

                    Have you located libBT_Utility.so.1 in your file system?

                    A 1 Reply Last reply 19 Dec 2023, 07:50
                    0
                    • A Anonymous_Banned275
                      18 Dec 2023, 17:28

                      @Axel-Spoerl Sorry . I got involved in another issue.

                      There is no .so info when "add library" is used
                      HERE
                      ( I believe INCLUDEPATH can be printed but I forgot how )

                      unix:!macx: LIBS += -L$$OUT_PWD/../MS_BASE_CLASS/ -lMS_BASE_CLASS

                      INCLUDEPATH += $$PWD/../MS_BASE_CLASS
                      DEPENDPATH += $$PWD/../MS_BASE_CLASS

                      Yes. Because you posted the wrong file.
                      We need the .pro file containing libBT_Utility.so.1 in a line starting with LIBS +=

                      Have you located libBT_Utility.so.1 in your file system?

                      A Online
                      A Online
                      Axel Spoerl
                      Moderators
                      wrote on 19 Dec 2023, 07:50 last edited by
                      #22

                      @AnneRanch
                      Hi Anne,

                      hm. And could you locate any of the libraries on your drive?
                      (libBT_Utility.so.1or libBT_Utility.so.1)

                      I am insisting on that question for a number of reasons.

                      • Compilation and linking does quite some heavy lifting on the file system. Building on an external drive puts a bottle neck into the game. It really would be good to know, if everything the compiler says it has done is really done.
                      • Some of your file paths contain dates (e.g. DEC10). Such paths might confuse the linker as well: Something expected in the DEC10tree, may have been built on another day and be in another tree, e.g. NOV17.
                      • Maybe you have turned an existing project into a SUBDIRS project. That is likely to change a lot of relative paths.

                      Brgds
                      Axel

                      Software Engineer
                      The Qt Company, Oslo

                      1 Reply Last reply
                      0
                      • A Axel Spoerl referenced this topic on 24 Jan 2024, 20:33

                      22/22

                      19 Dec 2023, 07:50

                      • Login

                      • Login or register to search.
                      22 out of 22
                      • First post
                        22/22
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved