Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QMake include path of a framework
QtWS25 Last Chance

QMake include path of a framework

Scheduled Pinned Locked Moved Unsolved General and Desktop
qmakeos x 10.11framework
11 Posts 3 Posters 3.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Peppy
    wrote on 13 Sept 2016, 15:49 last edited by
    #1

    Hello guys, I wonder, how to access headers included inside of a OS X framework (Test.framework) ?
    My demo project can't reach those files somehow. It's okay to set INCLUDEPATH or not?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 13 Sept 2016, 19:24 last edited by
      #2

      Hi,

      IIRC, adding LIBS += -framework your_framework_name should do the job.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      P 1 Reply Last reply 13 Sept 2016, 20:06
      0
      • S SGaist
        13 Sept 2016, 19:24

        Hi,

        IIRC, adding LIBS += -framework your_framework_name should do the job.

        P Offline
        P Offline
        Peppy
        wrote on 13 Sept 2016, 20:06 last edited by Peppy
        #3

        @SGaist Nope, somehow it does not work that way. Strange.

        EDIT: It's not a system framework (i.e. AppKit) but a build of QtWebKit.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 14 Sept 2016, 07:26 last edited by
          #4

          Then if it's for a demo, I'd add the path to the headers in between.

          But... A test framework for a demo ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          P 1 Reply Last reply 14 Sept 2016, 08:14
          0
          • S SGaist
            14 Sept 2016, 07:26

            Then if it's for a demo, I'd add the path to the headers in between.

            But... A test framework for a demo ?

            P Offline
            P Offline
            Peppy
            wrote on 14 Sept 2016, 08:14 last edited by
            #5

            @SGaist said in QMake include path of a framework:

            Then if it's for a demo, I'd add the path to the headers in between.

            But... A test framework for a demo ?

            what? :D ... I've built QtWebKit and adding it with LIBS did not helped me ... because missing headers like <QtWebKit/qwebkitglobal.h> which can not be found, but <qwebkitglobal.h> finds... however I would have to redo all QtWebKit headers, which is just... too much.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 14 Sept 2016, 12:56 last edited by
              #6

              I may have misunderstood your current situation.

              Is it a problem with building QtWebKit directly ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              P 1 Reply Last reply 14 Sept 2016, 13:32
              0
              • S SGaist
                14 Sept 2016, 12:56

                I may have misunderstood your current situation.

                Is it a problem with building QtWebKit directly ?

                P Offline
                P Offline
                Peppy
                wrote on 14 Sept 2016, 13:32 last edited by
                #7

                @SGaist said in QMake include path of a framework:

                I may have misunderstood your current situation.

                Is it a problem with building QtWebKit directly ?

                I'm not building QtWebKit. I have QtWebKit and QtWebKit libraries/frameworks already built. I have problem with headers of those frameworks.

                K 1 Reply Last reply 24 Sept 2016, 02:59
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 14 Sept 2016, 20:38 last edited by
                  #8

                  Can you share your .pro file ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • P Peppy
                    14 Sept 2016, 13:32

                    @SGaist said in QMake include path of a framework:

                    I may have misunderstood your current situation.

                    Is it a problem with building QtWebKit directly ?

                    I'm not building QtWebKit. I have QtWebKit and QtWebKit libraries/frameworks already built. I have problem with headers of those frameworks.

                    K Offline
                    K Offline
                    Konstantin Tokarev
                    wrote on 24 Sept 2016, 02:59 last edited by
                    #9

                    @Peppy QT += webkitwidgets should do just the right thing. In case QtWebKit is installed outside Qt prefix QMAKEPATH needs to be set, see https://github.com/annulen/webkit/wiki/Using-QtWebKit-in-your-project#qmake

                    P 1 Reply Last reply 25 Sept 2016, 12:57
                    1
                    • K Konstantin Tokarev
                      24 Sept 2016, 02:59

                      @Peppy QT += webkitwidgets should do just the right thing. In case QtWebKit is installed outside Qt prefix QMAKEPATH needs to be set, see https://github.com/annulen/webkit/wiki/Using-QtWebKit-in-your-project#qmake

                      P Offline
                      P Offline
                      Peppy
                      wrote on 25 Sept 2016, 12:57 last edited by
                      #10

                      @Konstantin-Tokarev but I have to install the Qt5WebKit? Can I just have it outside of Qt, what are consequences of setting QMAKEPATH?

                      K 1 Reply Last reply 26 Sept 2016, 09:49
                      0
                      • P Peppy
                        25 Sept 2016, 12:57

                        @Konstantin-Tokarev but I have to install the Qt5WebKit? Can I just have it outside of Qt, what are consequences of setting QMAKEPATH?

                        K Offline
                        K Offline
                        Konstantin Tokarev
                        wrote on 26 Sept 2016, 09:49 last edited by
                        #11

                        @Peppy Right now it just won't work without installation, however you can install it separately from Qt (just point QMAKEPATH to proper location)

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved