Qmake: building a library without symbolic links and the 'lib' prefix

I need a very simple mechanism in my application, where my project is built as a shared library .so 'or'.dll', but I want:

ExampleAppOne.so 

I get:

 libExampleAppOne.so -> libExampleAppOne.so.1.0.0 libExampleAppOne.so.1 -> libExampleAppOne.so.1.0.0 libExampleAppOne.so.1.0 -> libExampleAppOne.so.1.0.0 

I don’t even want the 'lib' prefix. In the .pro file, all I can do is change the INSTALLS variable (this is because my third requirement is that the library must be built in a specific directory).

In addition, I have a fourth requirement related to this: when I request QLibrary to load a library, I want it to specifically look for a library in a very specific path and a library that matches the name EXACT. There is no match for the "prefixes" lib, there is no "version string", it does not look for LD_LIBRARY_PATH ...

Any help is appreciated.

Regards, rohan

+6
source share
1 answer

Adding a plugin to the CONFIG should disable version control and generate symbolic links to the library.

I don't know an easy way to disable the lib prefix. You want to delve into the specifications provided by the QMake specification to see how the default processing is implemented.

+1
source

Source: https://habr.com/ru/post/888844/


All Articles