How to avoid having version numbers in .so file name

前端 未结 2 2012
我在风中等你
我在风中等你 2021-02-19 02:24

I\'m trying to build a dynamic library on Linux using qmake. Here is my .pro file:

TEMPLATE = lib
TARGET = sqxUiBase
QT += core gui   
CONFIG += dll    
INCLUDEP         


        
相关标签:
2条回答
  • 2021-02-19 02:40

    After looking at the qmake source I found CONFIG += unversioned_libname for nix and CONFIG += skip_target_version_ext for windows.

    0 讨论(0)
  • 2021-02-19 02:51

    What you are looking for is making a plugin.

    Add CONFIG += plugin to your project file, and qmake will generate a Makefile that builds a libFoo.so file, without the numbered links

    0 讨论(0)
提交回复
热议问题