How to include a macOS .framework file in Qt creator "qmake"
-
wrote on 15 Mar 2022, 06:18 last edited by
I'm trying to include a framework in my application but it's not working out well for me
I googled my way around , I tried including the Headers folder in my framework adding "LIBS +=-framework" flag but it's not working out, I'm working with Qt6.2.3 , how can I add the framework to my Qt Project.. -
wrote on 15 Mar 2022, 06:32 last edited by
Hi, try macdeployqt
-
Hi,
What exact issues are you having ?
The usual combo for additional frameworks if you use qmake is
LIBS += -F/path/to/framework -framework NameOfFramework
If it's a release issue, then as @hskoglund suggested, macdpeloyqt should be able to do the job.
-
Hi,
What exact issues are you having ?
The usual combo for additional frameworks if you use qmake is
LIBS += -F/path/to/framework -framework NameOfFramework
If it's a release issue, then as @hskoglund suggested, macdpeloyqt should be able to do the job.
wrote on 15 Mar 2022, 07:25 last edited by@SGaist said in How to include a macOS .framework file in Qt creator "qmake":
I did so , my includes are marked as errors and my builds fail with no useful information on the output,
I am trying to include a framework called pylon located in "/Library/Frameworks/pylon.framework"
it's tested on windows and It does work, as for macOS using Xcode with the framework gives the same functionality as the windows sdk, so it also shouldn't be an issue , yet seems I'm having a problem with including the framework in the Mac App -
Hi, for pylon it should be as @SGaist says:
INCLUDEPATH += "/Library/Frameworks/pylon.framework" LIBS += -F"/Library/Frameworks/" -framework pylon
wrote on 15 Mar 2022, 07:50 last edited by@hskoglund
it still doesn't seem to work :(
-
@hskoglund
it still doesn't seem to work :(
-
wrote on 15 Mar 2022, 07:56 last edited by
Ok, try adding these as well:
INCLUDEPATH += "/Library/Frameworks/pylon.framework/Headers/" INCLUDEPATH += "/Library/Frameworks/"
-
Ok, try adding these as well:
INCLUDEPATH += "/Library/Frameworks/pylon.framework/Headers/" INCLUDEPATH += "/Library/Frameworks/"
wrote on 15 Mar 2022, 07:59 last edited by@hskoglund
sadly it is still the same
would a sample of the build settings for a project with the framework in Xcode be of any help?
I am quite since I am not too experienced with Building Qt apps for MacOS -
wrote on 15 Mar 2022, 08:03 last edited by
I suppose you already checked some old posts like this one: https://imaginghub.com/forum/posts/702-using-basler-pylon-sdk-on-mac-with-qt ?
(he manages to build it successfully with some warnings) -
I suppose you already checked some old posts like this one: https://imaginghub.com/forum/posts/702-using-basler-pylon-sdk-on-mac-with-qt ?
(he manages to build it successfully with some warnings)wrote on 15 Mar 2022, 08:09 last edited by@hskoglund
I didn't come across this page but trying their pro file settings it's still throwing errors not recognizing any members in the headers -
@hskoglund
I didn't come across this page but trying their pro file settings it's still throwing errors not recognizing any members in the headerswrote on 15 Mar 2022, 08:13 last edited by@UbiMiles
I also found this and the op of the thread seems to have gotten it working
https://forum.qt.io/topic/105593/undefined-symbols-for-architecture-x86_64-pylon-cpylonimagewindow-close -
@UbiMiles
I also found this and the op of the thread seems to have gotten it working
https://forum.qt.io/topic/105593/undefined-symbols-for-architecture-x86_64-pylon-cpylonimagewindow-close -
wrote on 23 Mar 2022, 14:02 last edited by
I think my issue is not with linking the library itself and I apologize for that.
the question that would solve my problem is, what is the equivalent of xocde's "Runpath Search Path" for qmake?