trouble compiling with Qt plugin locations



  • 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?


  • Lifetime Qt Champion

    Hi,

    Is that project seeable somewhere ?




  • Lifetime Qt Champion

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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.