Skip to content
This repository has been archived by the owner on May 24, 2019. It is now read-only.

cannot locate libqgis_core and libqgis_gui #48

Open
3nids opened this issue Dec 4, 2017 · 4 comments
Open

cannot locate libqgis_core and libqgis_gui #48

3nids opened this issue Dec 4, 2017 · 4 comments

Comments

@3nids
Copy link
Member

3nids commented Dec 4, 2017

I cannot find the libraries core and gui installed anywhere.

ls /usr/local/Cellar/qgis3-dev/2.99/QGIS.app/Contents/MacOS/lib/

libqgis_app.2.99.0.dylib
libqgis_server.2.99.0.dylib
libqgispython.2.99.0.dylib
qgis
libqgis_app.dylib
libqgis_server.dylib
libqgispython.dylib

It's the same if manually built or in 2.18 package.
I tried to play with QGIS_MACAPP_BUNDLE without success.

Is this because of static linking?

@dakcarto
Copy link
Member

dakcarto commented Dec 4, 2017

Hi Denis,

The main API libraries qgis_core, qgis_gui and qgis_native (and qgisgrass7) are built as frameworks instead of dynamic libs:

/usr/local/opt/qgis3-dev/QGIS.app/Contents/Frameworks/

Not sure if the other .dylibs should be converted to frameworks as well. There are pros/cons.

I am currently working on a new QGIS_MACAPP_BUNDLE that is truly minimal bundling, i.e. no *qgis* libs are bundled, but referenced from installed prefix locations. This allows for other custom C++ apps to find the libs/frameworks appropriately.

@3nids
Copy link
Member Author

3nids commented Dec 4, 2017

Hi Larry,
Thanks for the prompt feedback.
The context is to try to build QField on the mac and I need to add qgis_core library.
Is this feasible with the frameworks or I would have to wait for your new bundle?
Cheers!

@dakcarto
Copy link
Member

dakcarto commented Dec 7, 2017

Hi Denis,

If you can give more feedback on how you are intending to link to the frameworks, i.e. just for building and testing, or for distribution packaging, that would help determine what may work for you right now. Using the already-bundled frameworks may be advantageous or not depending upon your needs.

You can contact me directly via my QGIS Dev mailing list email address, if needed.

@3nids
Copy link
Member Author

3nids commented Dec 9, 2017

Hi Larry,

I am trying to compile QField in Mac.
It needs QGIS core to build: https://github.com/opengisch/QField/blob/master/qgis.pri#L8-L9

@m-kuhn pointed me to Qt doc on using frameworks. But I had no luck trying:

QMAKE_LFLAGS += -F /Users/denis/opt/qgis/QGIS_INSTALL/QGIS.app/Contents/Frameworks/
LIBS += -framework qgis_core.framework

Do you have any hint regarding this?
Thanks again for your time,
Denis

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants