<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 07/09/2013 03:03 PM, Charles Yin
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAC5Qm_Lcw18P9hpVkobwa-pjLmYMLmQjWV-td_C=sxfpiTUnng@mail.gmail.com"
      type="cite">
      <meta http-equiv="Context-Type" content="text/html; charset=utf-8">
      <div dir="ltr">
        <p>
          CMake automatically adds rpaths to all targets, which you are
          linking with target_link_libraries().</p>
        <p>
          To switch it off there is <code>CMAKE_SKIP_RPATH</code> option.</p>
        <p>
          See <a moz-do-not-send="true"
            href="http://www.cmake.org/Wiki/CMake_RPATH_handling">http://www.cmake.org/Wiki/CMake_RPATH_handling</a> for
          more details.</p>
        <p>
          <br>
        </p>
      </div>
    </blockquote>
    I just tried set (CMAKE_SKIP_RPATH TRUE) again, it has no effect. <br>
    <blockquote
cite="mid:CAC5Qm_Lcw18P9hpVkobwa-pjLmYMLmQjWV-td_C=sxfpiTUnng@mail.gmail.com"
      type="cite">
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">2013/7/9 Simon Lees <span dir="ltr"><<a
              moz-do-not-send="true"
              href="mailto:simon.lees@codan.com.au" target="_blank">simon.lees@codan.com.au</a>></span><br>
          <blockquote class="gmail_quote">
            Hi All,<br>
            I have been trying to build our Medium to Large project
            using cmake for<br>
            android as we already use cmake. I have hit a issue in that
            rather<br>
            specifying NEEDED in the library i build as a relative path
            it specifies<br>
            it as a full path.<br>
            objdump -x libMyLib.so | grep "NEEDED"  returns<br>
                 NEEDED    /opt/Qt5.1.0/5.1.0/lib/libQt5Widgets.so.5.1.0<br>
                 NEEDED    /opt/Qt5.1.0/5.1.0/lib/llibQt5Gui.so.5.1.0<br>
                 NEEDED    /opt/Qt5.1.0/5.1.0/lib/llibQt5Core.so.5.1.0<br>
                 NEEDED    libm.so<br>
                 NEEDED    libc.so<br>
                 NEEDED    libdl.so<br>
            <br>
            instead of<br>
                 NEEDED    libQt5Widgets.so<br>
                 NEEDED    llibQt5Gui.so<br>
                 NEEDED    llibQt5Core<br>
                 NEEDED    libm.so<br>
                 NEEDED    libc.so<br>
                 NEEDED    libdl.so<br>
            <br>
            <br>
            I asked about this on #cmake and someone said the most
            probable reason<br>
            was that the Qt libraries don't contain SONAME. objdump -x<br>
            libQt5Widgets.so | grep "SONAME" returns nothing.<br>
            <br>
            My first question is how do i build the android libraries
            with a SONAME<br>
            so that i can check if that fixes it, secondly if there is a
            good reason<br>
            not to have SONAME in libraries on android, how can the
            cmake files<br>
            shipped with Qt work correctly for android? I have not had
            huge amounts<br>
            of experience with qmake and cmake but i have tried fixing
            this issue<br>
            for a couple of days.<br>
            <br>
            If anyone can point me in the right direction it would be
            much appreciated,<br>
            <br>
            Cheers<br>
            <br>
            Simon<br>
            _______________________________________________<br>
            Development mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Development@qt-project.org">Development@qt-project.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.qt-project.org/mailman/listinfo/development"
              target="_blank">http://lists.qt-project.org/mailman/listinfo/development</a><br>
          </blockquote>
        </div>
        <br>
        <br>
        <div><br>
        </div>
        -- <br>
        <div dir="ltr">--
          <div>Yunqiao (Charles) Yin</div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>