BUG ? How to select TEMPLATE=lib install folder?
-
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-DebugMore 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
there are no expected .so files in highlighted folder
... hence I cannot link to something I have no clue WHERE it is. -
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-DebugMore 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
there are no expected .so files in highlighted folder
... hence I cannot link to something I have no clue WHERE it is.@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 -
@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@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 :)
-
@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 :)
@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...
-
@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...
@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?
-
@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?
@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?