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. BUG ? How to select TEMPLATE=lib install folder?
Forum Updated to NodeBB v4.3 + New Features

BUG ? How to select TEMPLATE=lib install folder?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
6 Posts 3 Posters 642 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by Anonymous_Banned275
    #1

    I have build TEMPLATE=lib project in undesirable ( default ?) folder using simple make option TEMPLATE=lib.

    How do I option make to select current project folder ?

    I like to use "add library" "internal option".

    "SOLVED" ???

    Is this for real ?
    Qt "created " this folder !!!

    build-BT_SCAN_LIB-Qt_5_15_2_gcc_64-Debug

    unix:!macx: LIBS += -L$$PWD/../build-BT_SCAN_LIB-Qt_5_15_2_gcc_64-Debug/ -lBT_SCAN_LIB

    INCLUDEPATH += $$PWD/../build-BT_SCAN_LIB-Qt_5_15_2_gcc_64-Debug
    DEPENDPATH += $$PWD/../build-BT_SCAN_LIB-Qt_5_15_2_gcc_64-Debug

    More ADDENDUM
    This is begging to look as (serios) bug.
    Building a "Library" project with specific location resulted in this :

    10:07:40: Running steps for project BT_SCAN_LIB...
    10:07:40: Starting: "/usr/bin/make" clean -j4
    rm -f moc_predefs.h
    rm -f bt_scan_lib.o
    rm -f *~ core *.core
    10:07:41: The process "/usr/bin/make" exited normally.
    10:07:41: Starting: "/home/nov25-1/Qt/5.15.2/gcc_64/bin/qmake" '/mnt/A_BT_DEC10/BT__PROGRAMS/A_JAN11 _FEB26/A_BT_LIBRARY/CCC_SOURCE/BT_SCAN_LIB/BT_SCAN_LIB.pro' -spec linux-clang CONFIG+=debug CONFIG+=qml_debug CONFIG+=force_debug_info CONFIG+=separate_debug_info
    10:07:41: The process "/home/nov25-1/Qt/5.15.2/gcc_64/bin/qmake" exited normally.
    10:07:41: Starting: "/usr/bin/make" -f '/mnt/A_BT_DEC10/BT__PROGRAMS/A_JAN11 _FEB26/A_BT_LIBRARY/CCC_SOURCE/build-BT_SCAN_LIB-Qt_5_15_2_gcc_64-Debug/Makefile' qmake_all
    make: Nothing to be done for 'qmake_all'.
    10:07:41: The process "/usr/bin/make" exited normally.
    10:07:41: Starting: "/usr/bin/make" -j4
    clang++ -c -pipe -g -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DBT_SCAN_LIB_LIBRARY -DQT_QML_DEBUG -DQT_CORE_LIB -I../BT_SCAN_LIB -I. -I/home/nov25-1/Qt/5.15.2/gcc_64/include -I/home/nov25-1/Qt/5.15.2/gcc_64/include/QtCore -I. -I/home/nov25-1/Qt/5.15.2/gcc_64/mkspecs/linux-clang -o bt_scan_lib.o ../BT_SCAN_LIB/bt_scan_lib.cpp
    rm -f libBT_SCAN_LIB.so.1.0.0 libBT_SCAN_LIB.so libBT_SCAN_LIB.so.1 libBT_SCAN_LIB.so.1.0
    clang++ -ccc-gcc-name g++ -Wl,-rpath,/home/nov25-1/Qt/5.15.2/gcc_64/lib -shared -Wl,-soname,libBT_SCAN_LIB.so.1 -o libBT_SCAN_LIB.so.1.0.0 bt_scan_lib.o  /home/nov25-1/Qt/5.15.2/gcc_64/lib/libQt5Core.so -lpthread    
    ln -s libBT_SCAN_LIB.so.1.0.0 libBT_SCAN_LIB.so
    ln -s libBT_SCAN_LIB.so.1.0.0 libBT_SCAN_LIB.so.1
    ln -s libBT_SCAN_LIB.so.1.0.0 libBT_SCAN_LIB.so.1.0
    objcopy --only-keep-debug libBT_SCAN_LIB.so.1.0.0 libBT_SCAN_LIB.so.1.0.0.debug && objcopy --strip-debug libBT_SCAN_LIB.so.1.0.0 && objcopy --add-gnu-debuglink=libBT_SCAN_LIB.so.1.0.0.debug libBT_SCAN_LIB.so.1.0.0 && chmod -x libBT_SCAN_LIB.so.1.0.0.debug
    10:07:43: The process "/usr/bin/make" exited normally.
    10:07:43: Elapsed time: 00:02.
    
    

    Build library is nowhere near the selected folder.

    ADDENDUM

    here is the compiler output

    7645a2a2-a9a8-40dc-8e19-4a4fcfbe6a83-image.png

    there are no expected .so files in highlighted folder
    ... hence I cannot link to something I have no clue WHERE it is.

    Axel SpoerlA 1 Reply Last reply
    0
    • A Anonymous_Banned275

      I have build TEMPLATE=lib project in undesirable ( default ?) folder using simple make option TEMPLATE=lib.

      How do I option make to select current project folder ?

      I like to use "add library" "internal option".

      "SOLVED" ???

      Is this for real ?
      Qt "created " this folder !!!

      build-BT_SCAN_LIB-Qt_5_15_2_gcc_64-Debug

      unix:!macx: LIBS += -L$$PWD/../build-BT_SCAN_LIB-Qt_5_15_2_gcc_64-Debug/ -lBT_SCAN_LIB

      INCLUDEPATH += $$PWD/../build-BT_SCAN_LIB-Qt_5_15_2_gcc_64-Debug
      DEPENDPATH += $$PWD/../build-BT_SCAN_LIB-Qt_5_15_2_gcc_64-Debug

      More ADDENDUM
      This is begging to look as (serios) bug.
      Building a "Library" project with specific location resulted in this :

      10:07:40: Running steps for project BT_SCAN_LIB...
      10:07:40: Starting: "/usr/bin/make" clean -j4
      rm -f moc_predefs.h
      rm -f bt_scan_lib.o
      rm -f *~ core *.core
      10:07:41: The process "/usr/bin/make" exited normally.
      10:07:41: Starting: "/home/nov25-1/Qt/5.15.2/gcc_64/bin/qmake" '/mnt/A_BT_DEC10/BT__PROGRAMS/A_JAN11 _FEB26/A_BT_LIBRARY/CCC_SOURCE/BT_SCAN_LIB/BT_SCAN_LIB.pro' -spec linux-clang CONFIG+=debug CONFIG+=qml_debug CONFIG+=force_debug_info CONFIG+=separate_debug_info
      10:07:41: The process "/home/nov25-1/Qt/5.15.2/gcc_64/bin/qmake" exited normally.
      10:07:41: Starting: "/usr/bin/make" -f '/mnt/A_BT_DEC10/BT__PROGRAMS/A_JAN11 _FEB26/A_BT_LIBRARY/CCC_SOURCE/build-BT_SCAN_LIB-Qt_5_15_2_gcc_64-Debug/Makefile' qmake_all
      make: Nothing to be done for 'qmake_all'.
      10:07:41: The process "/usr/bin/make" exited normally.
      10:07:41: Starting: "/usr/bin/make" -j4
      clang++ -c -pipe -g -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DBT_SCAN_LIB_LIBRARY -DQT_QML_DEBUG -DQT_CORE_LIB -I../BT_SCAN_LIB -I. -I/home/nov25-1/Qt/5.15.2/gcc_64/include -I/home/nov25-1/Qt/5.15.2/gcc_64/include/QtCore -I. -I/home/nov25-1/Qt/5.15.2/gcc_64/mkspecs/linux-clang -o bt_scan_lib.o ../BT_SCAN_LIB/bt_scan_lib.cpp
      rm -f libBT_SCAN_LIB.so.1.0.0 libBT_SCAN_LIB.so libBT_SCAN_LIB.so.1 libBT_SCAN_LIB.so.1.0
      clang++ -ccc-gcc-name g++ -Wl,-rpath,/home/nov25-1/Qt/5.15.2/gcc_64/lib -shared -Wl,-soname,libBT_SCAN_LIB.so.1 -o libBT_SCAN_LIB.so.1.0.0 bt_scan_lib.o  /home/nov25-1/Qt/5.15.2/gcc_64/lib/libQt5Core.so -lpthread    
      ln -s libBT_SCAN_LIB.so.1.0.0 libBT_SCAN_LIB.so
      ln -s libBT_SCAN_LIB.so.1.0.0 libBT_SCAN_LIB.so.1
      ln -s libBT_SCAN_LIB.so.1.0.0 libBT_SCAN_LIB.so.1.0
      objcopy --only-keep-debug libBT_SCAN_LIB.so.1.0.0 libBT_SCAN_LIB.so.1.0.0.debug && objcopy --strip-debug libBT_SCAN_LIB.so.1.0.0 && objcopy --add-gnu-debuglink=libBT_SCAN_LIB.so.1.0.0.debug libBT_SCAN_LIB.so.1.0.0 && chmod -x libBT_SCAN_LIB.so.1.0.0.debug
      10:07:43: The process "/usr/bin/make" exited normally.
      10:07:43: Elapsed time: 00:02.
      
      

      Build library is nowhere near the selected folder.

      ADDENDUM

      here is the compiler output

      7645a2a2-a9a8-40dc-8e19-4a4fcfbe6a83-image.png

      there are no expected .so files in highlighted folder
      ... hence I cannot link to something I have no clue WHERE it is.

      Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      @AnneRanch
      Hi Anne,

      There are two errors here:

      (1) The folder you highlighted belongs to the Qt installation path. You don’t want the compiler to put your application binaries there.
      Probably the application binary path is not known to the linker, but the Qt installation path is by default. The linker searches for your application binaries in all paths it knows.

      (2) build-BT_SCAN_LIB-Qt_5_15_2_gcc_64-Debug is created because you tell qmake / make to do so in your .pro file. qmake doesn’t do such things on its own.

      I wouldn’t be surprised if your application binaries are in the newly created folder. To solve the problem, post your complete .pro file. Please also type

      cd /home/nov25-1
      find . -name libBT_SCAN*
      

      and post the output.

      Cheers
      Axel

      Software Engineer
      The Qt Company, Oslo

      JonBJ 1 Reply Last reply
      0
      • Axel SpoerlA Axel Spoerl

        @AnneRanch
        Hi Anne,

        There are two errors here:

        (1) The folder you highlighted belongs to the Qt installation path. You don’t want the compiler to put your application binaries there.
        Probably the application binary path is not known to the linker, but the Qt installation path is by default. The linker searches for your application binaries in all paths it knows.

        (2) build-BT_SCAN_LIB-Qt_5_15_2_gcc_64-Debug is created because you tell qmake / make to do so in your .pro file. qmake doesn’t do such things on its own.

        I wouldn’t be surprised if your application binaries are in the newly created folder. To solve the problem, post your complete .pro file. Please also type

        cd /home/nov25-1
        find . -name libBT_SCAN*
        

        and post the output.

        Cheers
        Axel

        JonBJ Online
        JonBJ Online
        JonB
        wrote on last edited by JonB
        #3

        @Axel-Spoerl said in BUG ? How to select TEMPLATE=lib install folder?:

        find . -name libBT_SCAN*

        As good Linux citizens, we shouldn't write it like this, it's a bad habit to get into! It won't give the intended result if there happens to be something named libBT_SCAN followed by anything/nothing in the current directory. One of:

        find . -name 'libBT_SCAN*'
        find . -name "libBT_SCAN*"
        find . -name libBT_SCAN\*
        

        please :)

        A 1 Reply Last reply
        1
        • JonBJ JonB

          @Axel-Spoerl said in BUG ? How to select TEMPLATE=lib install folder?:

          find . -name libBT_SCAN*

          As good Linux citizens, we shouldn't write it like this, it's a bad habit to get into! It won't give the intended result if there happens to be something named libBT_SCAN followed by anything/nothing in the current directory. One of:

          find . -name 'libBT_SCAN*'
          find . -name "libBT_SCAN*"
          find . -name libBT_SCAN\*
          

          please :)

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

          @JonB Here is the result:

          nov25-1@nov251-desktop:~$ find . -name libBT_SCAN*
          nov25-1@nov251-desktop:~$

          however, as a good citizens of this forum I would expect to actually read the title of the post and at least make a minimal attempt to stick with the subject. That seem to be a primary issue here, and if it cannot be followed , then further discussion is pointless and...

          JonBJ 1 Reply Last reply
          0
          • A Anonymous_Banned275

            @JonB Here is the result:

            nov25-1@nov251-desktop:~$ find . -name libBT_SCAN*
            nov25-1@nov251-desktop:~$

            however, as a good citizens of this forum I would expect to actually read the title of the post and at least make a minimal attempt to stick with the subject. That seem to be a primary issue here, and if it cannot be followed , then further discussion is pointless and...

            JonBJ Online
            JonBJ Online
            JonB
            wrote on last edited by
            #5

            @AnneRanch said in BUG ? How to select TEMPLATE=lib install folder?:

            and at least make a minimal attempt to stick with the subject. That seem to be a primary issue here, and if it cannot be followed , then further discussion is pointless and...

            @Axel-Spoerl asked you for the output, which you have now done. So he is trying to "stick with the subject". Why don't you just wait and see if he posts further?

            Axel SpoerlA 1 Reply Last reply
            0
            • JonBJ JonB

              @AnneRanch said in BUG ? How to select TEMPLATE=lib install folder?:

              and at least make a minimal attempt to stick with the subject. That seem to be a primary issue here, and if it cannot be followed , then further discussion is pointless and...

              @Axel-Spoerl asked you for the output, which you have now done. So he is trying to "stick with the subject". Why don't you just wait and see if he posts further?

              Axel SpoerlA Offline
              Axel SpoerlA Offline
              Axel Spoerl
              Moderators
              wrote on last edited by
              #6

              @AnneRanch
              Thanks for the output of the find command.
              So your libraries are named different or located in a different tree.
              The build target directory is selected in Qt Creator, see here.
              What have you selected here?

              Software Engineer
              The Qt Company, Oslo

              1 Reply Last reply
              1

              • Login

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