qt library output in Linux system
-
wrote on 20 Dec 2021, 04:21 last edited by
If you build the library project in Windows, dll or lib file is output.
In addition, pdb, exp, and ilk files appear, but they are not important files for execution.When you build a library project in Linux, .so files appear, so, so.1, so.1.0, so.1.0.0 files appear.
The problem is, I want to distribute only the important files for execution, but can you tell me which files are necessary for execution?
I tested it while deleting them one by one, but even if I only have the so.1.0.0 and so.1.0 files, there doesn't seem to be any problem with running
Is there any way to distribute it as a single file? -
If you build the library project in Windows, dll or lib file is output.
In addition, pdb, exp, and ilk files appear, but they are not important files for execution.When you build a library project in Linux, .so files appear, so, so.1, so.1.0, so.1.0.0 files appear.
The problem is, I want to distribute only the important files for execution, but can you tell me which files are necessary for execution?
I tested it while deleting them one by one, but even if I only have the so.1.0.0 and so.1.0 files, there doesn't seem to be any problem with running
Is there any way to distribute it as a single file?@IknowQT said in qt library output in Linux system:
Is there any way to distribute it as a single file?
Yes, find out which library file name exactly your app links against:
ldd YOUR_APP_EXE
The above command will print all libs your executable depends on.
Be aware that your app can link against a specific version of the lib which is then often a symbolic link to the actual library file. -
If you build the library project in Windows, dll or lib file is output.
In addition, pdb, exp, and ilk files appear, but they are not important files for execution.When you build a library project in Linux, .so files appear, so, so.1, so.1.0, so.1.0.0 files appear.
The problem is, I want to distribute only the important files for execution, but can you tell me which files are necessary for execution?
I tested it while deleting them one by one, but even if I only have the so.1.0.0 and so.1.0 files, there doesn't seem to be any problem with running
Is there any way to distribute it as a single file?wrote on 20 Dec 2021, 07:08 last edited by- Compile your all libraries (.so) as static (.a) instead of dynamic (.so) .
- Include these static libraries in .pro file of your project. Example for libxyz.a : LIBS += -L"/path_to_static/build" -l"lxyz.a"
-
- Compile your all libraries (.so) as static (.a) instead of dynamic (.so) .
- Include these static libraries in .pro file of your project. Example for libxyz.a : LIBS += -L"/path_to_static/build" -l"lxyz.a"
This post is deleted! -
wrote on 20 Dec 2021, 07:14 last edited by
@jsulm He asked ? ,,,, Is there any way to distribute it as a single file?
-
@jsulm He asked ? ,,,, Is there any way to distribute it as a single file?
@anil_arise Yeah, you're right. Missed the last sentence.
1/6