Git Product home page Git Product logo

Comments (10)

3nids avatar 3nids commented on May 26, 2024

I guess this is not the proper approach as this takes the absolute path on my computer.

from qgis-mac-packager.

PeterPetrik avatar PeterPetrik commented on May 26, 2024

so where they point? the right approach is that they point to /opt/Qt/5.14.2/lib/ absolute path, since we assume that the qgis-deps use absolute paths. The @rpath is then used in the bundle step

from qgis-mac-packager.

3nids avatar 3nids commented on May 26, 2024

I miss a bit of understanding how rpath is working.
I switched from @rpath/QtCore.framework/Versions/5/QtCore to /opt/Qt/5.14.2/lib/QtCore.framework/Versions/Current/QtCore in all PyQt libaries. Does it sound correct?
Otherwise, you cannot build the bindings.

from qgis-mac-packager.

PeterPetrik avatar PeterPetrik commented on May 26, 2024

yep

binary can have list of rpaths (install_name_change -add_rpath). and basically @rpath is replaced by one of the paths in the list...

from qgis-mac-packager.

PeterPetrik avatar PeterPetrik commented on May 26, 2024

so for example Contents/MacOS/QGIS has list of rpaths. and when it loads libgdal.dylib, it tries all its rpaths to find other libs

from qgis-mac-packager.

3nids avatar 3nids commented on May 26, 2024

but the issue was happening while building.
so is this a matter of adding rpath to PyQt libs pointing to Qt installation?

from qgis-mac-packager.

PeterPetrik avatar PeterPetrik commented on May 26, 2024

probably,...

you are building QGIS, or qgis-deps directly? also best to download version 0.4.1 with the latest changes

from qgis-mac-packager.

3nids avatar 3nids commented on May 26, 2024

you are building QGIS

yes, using deps 0.4.0

from qgis-mac-packager.

PeterPetrik avatar PeterPetrik commented on May 26, 2024

it may be fixed in 0.4.1, as i just sucessfully built qgis on out qgis-mac-server... However this annoying bug with libraries signatures/notarization drives me crazy...

from qgis-mac-packager.

PeterPetrik avatar PeterPetrik commented on May 26, 2024
$ ls /opt/Qt/5.14.2/
android   clang_64  ios       sha1s.txt
$ otool -l /opt/QGIS/qgis-deps-0.5.1/stage/lib/python3.7/site-packages/PyQt5/QtCore.so | grep RPATH -A3
          cmd LC_RPATH
      cmdsize 48
         path @executable_path/../Frameworks (offset 12)
Load command 15
--
          cmd LC_RPATH
      cmdsize 40
         path /opt/Qt/5.14.2/clang_64/lib (offset 12)
Load command 16

from qgis-mac-packager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.