[Development] Android missing SONAME in lib's causes issues with cmake
Stephen Kelly
steveire at gmail.com
Tue Jul 9 10:32:19 CEST 2013
On Tuesday, July 09, 2013 14:27:26 Simon Lees wrote:
> Hi All,
> I have been trying to build our Medium to Large project using cmake for
> android as we already use cmake. I have hit a issue in that rather
> specifying NEEDED in the library i build as a relative path it specifies
> it as a full path.
> objdump -x libMyLib.so | grep "NEEDED" returns
> NEEDED /opt/Qt5.1.0/5.1.0/lib/libQt5Widgets.so.5.1.0
> NEEDED /opt/Qt5.1.0/5.1.0/lib/llibQt5Gui.so.5.1.0
> NEEDED /opt/Qt5.1.0/5.1.0/lib/llibQt5Core.so.5.1.0
> NEEDED libm.so
> NEEDED libc.so
> NEEDED libdl.so
>
> instead of
> NEEDED libQt5Widgets.so
> NEEDED llibQt5Gui.so
> NEEDED llibQt5Core
> NEEDED libm.so
> NEEDED libc.so
> NEEDED libdl.so
I built Qt for android and used the toolchain at
http://code.opencv.org/projects/opencv/repository/revisions/master/changes/android/android.toolchain.cmake
and confirmed this. I don't know what causes it. I think it's a cmake issue,
rather than a Qt issue. Forwarding to the cmake list
http://thread.gmane.org/gmane.comp.lib.qt.devel/11790
Thanks,
Steve.
More information about the Development
mailing list