Git Product home page Git Product logo

Comments (11)

PeterPetrik avatar PeterPetrik commented on May 26, 2024 3

fixed by usage of DYLD_INSERT_LIBRARIES

the Designer must be lauched by wrapper script located in QGIS.app/Contents/MacOS/bin/designer

from qgis-mac-packager.

M-Rick avatar M-Rick commented on May 26, 2024

Yes it would we great to get it. I have plenty of custom forms not working anymore in QGIS3 that have to be updated with custom widgets. Currently the only way is by running QGIS inside a Linux VM. Thats's not really convenient.

from qgis-mac-packager.

3nids avatar 3nids commented on May 26, 2024

To me, the best approach seems to copy the Designer.app directly into QGIS bundle.

Following this answer, it seems possible

  • Run cmake with -D WITH_CUSTOM_WIDGETS=ON (done in #22)
  • Copy /usr/local/opt/qt/libexec/Designer.app into the bundle (see the above link)
  • Check that the custom widget lib is in QT_PLUGINS_DIR (/usr/local/opt/qt/plugins/designer)
  • Controls that it opens fine i.e. it can find qgis_core and qgis_gui
  • Create a shortuct or make the app visible

@PeterPetrik could you as a quick try, just copy Designer.app in the bundle?
I am not familiar with the code...

from qgis-mac-packager.

M-Rick avatar M-Rick commented on May 26, 2024

It is the way it's done with windows packages.

from qgis-mac-packager.

M-Rick avatar M-Rick commented on May 26, 2024

QtDesigner 4 works with only those items.
QtDesigner 4.zip

from qgis-mac-packager.

PeterPetrik avatar PeterPetrik commented on May 26, 2024

should be part or tomorrow's nightly2 builds

from qgis-mac-packager.

M-Rick avatar M-Rick commented on May 26, 2024

I tried the latest nightly2 which is qgis_nightly2_master_20200723_032054.

I did find Qt Designer packaged inside at QGIS.app/Contents/MacOS/Designer.app

But when launching it, it doesn't include the QGIS custom widgets. But at least it works well.

Capture d’écran 2020-07-23 à 15 30 36

from qgis-mac-packager.

PeterPetrik avatar PeterPetrik commented on May 26, 2024

maybe related qgis/QGIS#4113

from qgis-mac-packager.

PeterPetrik avatar PeterPetrik commented on May 26, 2024

Screenshot 2020-08-20 at 00 17 48

from qgis-mac-packager.

PeterPetrik avatar PeterPetrik commented on May 26, 2024

If forced to take libraries from bundled MacOS/lib, it fails to load some Apple's native frameworks due to symbol/lib clashes (libjpeg, libpng, libtiff and libsqlite3)

peter@pp-mb:/opt/QGIS/qgis-dev$ DYLD_LIBRARY_PATH=/opt/QGIS/qgis-dev/bundle/QGIS.app/Contents/MacOS/lib ./Designer.app/Contents/MacOS/Designer 
dyld: Symbol not found: __cg_jpeg_resync_to_restart
  Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
  Expected in: /opt/QGIS/qgis-dev/bundle/QGIS.app/Contents/MacOS/lib/libJPEG.dylib
 in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
Abort trap: 6

if I set rpath to bundled lib (equivallent of setting fallback library path), the /usr/lib/libsqlite3.dylib is picked which causes coredump when using QgsProject::instance() (see previous screen)

peter@pp-mb:/opt/QGIS/qgis-dev$ DYLD_FALLBACK_LIBRARY_PATH=/opt/QGIS/qgis-dev/bundle/QGIS.app/Contents/MacOS/lib ./Designer.app/Contents/MacOS/Designer 
src/core/auth/qgsauthmanager.cpp:3711 : (authDbQuery) [1ms] Auth db query exec() FAILED
WARNING: Auth db query exec() FAILED
Segmentation fault: 11

from qgis-mac-packager.

M-Rick avatar M-Rick commented on May 26, 2024

I created a Platypus application that you can join next to the QGIS application.

Designer.zip

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.