[Qt-interest] how to disable the "lib"
tang ke
tangk at lemote.com
Mon Aug 8 04:26:38 CEST 2011
于 2011年08月03日 21:07, Thiago Macieira 写道:
> On Wednesday, 3 de August de 2011 14:34:25 Rohan Prabhu wrote:
>> QMAKE_POST_LINK = mv libExampleAppOne.so.1.0.0 ExampleAppOne.so && rm
>> lib*.so*
>>
>> Basically, I let qmake do its thing, then rename the file myself and
>> delete the symlinks it creates.
> Don't do that.
>
> It renames the file but it does not change the library's SONAME:
>
> $ readelf -d $QTDIR/lib/libQtCore.so.4.8.0 | grep SONAME
> 0x0000000e (SONAME) Library soname: [libQtCore.so.4]
>
> When you link an application to a library, the linker will copy the library's
> SONAME to the application's dynamic header:
>
> $ readelf -d $QTDIR/lib/libQtGui.so.4.8.0 | grep QtCore
> 0x00000001 (NEEDED) Shared library: [libQtCore.so.4]
>
> That's the file that the dynamic linker will search for. So your renaming will
> have no effect: you still need the symlink with the "lib" prefix.
>
> What you really want is:
>
> CONFIG += plugin no_plugin_name_prefix
>
> Plugins don't have sonames.
>
hi, do you know how to set the SONAME of the library?
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
--
Best Regards
Tang Ke (Application develop of software department)
Tel:0086-512-52308628 Fax:0086-512-52308688
Phone:18962393077
E-mail:tangk at lemote.com MSN:tangk at lemote.com, mumutouv at gmail.com
Web: http://www.lemote.com <http://www.lemote.com/>
JiangSu ZhongKe Lemote Technology Co.,Ltd
MengLan Industry Park,YuShan,ChangShu City,JiangSu,China
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tangk.vcf
Type: text/x-vcard
Size: 442 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110808/e7fe978b/attachment.vcf
More information about the Qt-interest-old
mailing list