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. trouble compiling with Qt plugin locations
QtWS25 Last Chance

trouble compiling with Qt plugin locations

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 963 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.
  • C Offline
    C Offline
    chips and fish
    wrote on last edited by
    #1

    I am building a clone coin OSX Qt and having problems with linking to qt libraries.

    the steps i'm taking are

    export PKG_CONFIG_PATH=/Users/User/Qt5.3.2/5.3/clang_64/lib/pkgconfig
    export PATH=/Users/User/Qt5.3.2/5.3/clang_64/bin:$PATH
    
    ./autogen.sh
    ./configure --with-gui
    make
    

    this results in the error

    ./bitcoingui.h:13:10: fatal error: 'QMainWindow' file not found
    #include <QMainWindow>
    

    to find QMainWindow I modify the makefile includes,

    QT_INCLUDES =  -I/Users/User/Qt5.3.2/5.3/clang_64/lib/QtWidgets.framework/Versions/5/Headers
    

    this leads to this error,

    /Users/User/Qt5.3.2/5.3/clang_64/lib/QtWidgets.framework/Versions/5/Headers/qmainwindow.h:45:10: fatal error: 'QtWidgets/qwidget.h' file not found
    

    followed by other Qt plugin errrors,
    here is the original Makefile line I change

    QT_INCLUDES = -I/Users/User/Qt5.3.2/5.3/clang_64/include/QtNetwork -I/Users/User/Qt5.3.2/5.3/clang_64/include -I/Users/User/Qt5.3.2/5.3/clang_64/include/QtWidgets -I/Users/User/Qt5.3.2/5.3/clang_64/include -I/Users/User/Qt5.3.2/5.3/clang_64/include/QtGui -I/Users/User/Qt5.3.2/5.3/clang_64/include -I/Users/User/Qt5.3.2/5.3/clang_64/include/QtCore -I/Users/User/Qt5.3.2/5.3/clang_64/include 
    QT_LDFLAGS = 
    QT_LIBS = -F/Users/User/Qt5.3.2/5.3/clang_64/lib -framework QtNetwork -F/Users/User/Qt5.3.2/5.3/clang_64/lib -framework QtWidgets -F/Users/User/Qt5.3.2/5.3/clang_64/lib -framework QtGui -F/Users/User/Qt5.3.2/5.3/clang_64/lib -framework QtCore  -framework Foundation -framework ApplicationServices -framework AppKit
    

    and here is changing the includes

    QT_INCLUDES =  -I/Users/User/Qt5.3.2/5.3/clang_64/lib/QtWidgets.framework/Versions/5/Headers -I/Users/User/Qt5.3.2/5.3/clang_64/lib/QtNetwork.framework/Versions/5/Headers -I/Users/User/Qt5.3.2/5.3/clang_64/lib/QtGui.framework/Versions/5/Headers -I/Users/User/Qt5.3.2/5.3/clang_64/lib/QtCore.framework/Versions/5/Headers -I/Users/User/Qt5.3.2/5.3/clang_64/lib/QtDBus.framework/Versions/5/Headers -F/Users/User/Qt5.3.2/5.3/clang_64/lib
    

    Editing the Makefile works, but could anyone help me with the correct way to feed these directories to config?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Is that project seeable somewhere ?

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

      C 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Is that project seeable somewhere ?

        C Offline
        C Offline
        chips and fish
        wrote on last edited by
        #3

        @SGaist the project is here
        https://github.com/gamecredits-project/GameCredits

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          That's a project that was written for Qt 4. You'll need to update it for Qt 5.

          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

          • Login

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