How can I install Qt debug library while installing Qt creator?
-
Hi,
Did you modify the path for the installation ?
Just checked and the .debug versions are there.
-
@SGaist said in How can I install Qt debug library while installing Qt creator?:
Did you modify the path for the installation ?
@SGaist
I completely remove Qt from old path by callMaintenanceTool
.After that I reinstall it.
@SGaist said in How can I install Qt debug library while installing Qt creator?:
Just checked and the .debug versions are there.
I checked it, No, There is not debug version.
-
Did you try to do a debug build of your application ?
-
@Yash001 said in How can I install Qt debug library while installing Qt creator?:
I want to release my C++ library code with Qt Library in Release Debug mode. So That, Non QT user can also use my code.
That phrase is not really clear.
-
@SGaist said in How can I install Qt debug library while installing Qt creator?:
That phrase is not really clear.
I am creating API library, which is create with help of C++ code and Qt code.
In Other word, My Library code is depend on Qt Code. In library Package, I want to bundle debug library and release library.For my code I can generate debug library by build as Debug mode, and release library by setting build as Release.
for Qt code I can take dependent release library from location
~/Qt/5.13.1/gcc_64/lib/
but I do not have debug library of Qt code.I did same thing on windows platform and it is work fine. On windows platform I found all library of Qt code, example like
Qt5Core.dll
andQt5Cored.dll
I am trying implement same things on Linux.
-
How are you planning to distribute your library ?
-
@SGaist said in How can I install Qt debug library while installing Qt creator?:
How are you planning to distribute your library ?
I am planing to create libraries bundle by following steps:
- creating my own libraries on Qt Creator
- collect all require libraries and plugin with help of
CQTDeployer
tool - attached shell script, which will set require variable.
BASE_DIR=$(dirname "$(readlink -f "$0")") export LD_LIBRARY_PATH="$BASE_DIR"/lib:"$BASE_DIR":$LD_LIBRARY_PATH export QT_PLUGIN_PATH="$BASE_DIR"/plugins:QT_PLUGIN_PATH export QT_QPA_PLATFORM_PLUGIN_PATH="$BASE_DIR"/plugins/platforms:QT_QPA_PLATFORM_PLUGIN_PATH
are you recommend any better way to distribute libraries?
-
A library is not an application. If you are targeting several Linux distributions, the nicest would be to provide a package using their format e.g. .deb files for Debian based distributions.
As for Windows, there's no real package format. Maybe using something like conan.io might be an option. Otherwise an archive that provides your .dll, header and .lib files for the various compilers you want to support is usually good enough.
However packing a full version of all your dependencies, while it sounds nice, might prove problematic. If you provide them, then you should also take care of updating them in case of security issues found during the year.