Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Connecting Qt5 and eclipse ubuntu - no such file or directory

    Installation and Deployment
    2
    2
    1214
    Loading More Posts
    • 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.
    • X
      xalion last edited by xalion

      I try to connect my eclipse with Qt ( I cant use QtCreator -also doesnt work).

      I used qtdiag in console to find path, i got:

      HeadersPath: /usr/include/x86_64-linux-gnu/qt5
      
      LibrariesPath: /usr/lib/x86_64-linux-gnu
      

      I set:
      Properties>>C/C++ Build>>Settings>>GCC C++ Linker >> Libraries

      alt text

      Eclipse cannot build project and put:

      g++ -include/usr/include/x86_64-linux-gnu/gt5 -O2 -g3 -Wall -fmessage-length=0 -fPIC --std=c++11 -MMD -MP -MF"src/szpcpp6.d" -MT"src/szpcpp6.d" -o "src/szpcpp6.o" "../src/szpcpp6.cpp"
      
      /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:37:31: fatal error: QtGui/qwindowdefs.h: no such file or directory
      

      Directory and file /qt5/QtWidgets/qwidget.h exist and QtGui/qwindowdefs.h too.

      but it's my includes:

      #include <qt5/QtWidgets/qwidget.h>
      #include <qt5/QtWidgets/qapplication.h>
      

      I dont use qwindowdefs.h

      Any idea?

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        I don't remember using Eclipse and Qt together but from your screenshot and error line there seems to be two things wrong:

        1. You are setting the include paths in your library search path
        2. It seems you didn't set the include search path correctly

        Hope it helps

        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 Reply Quote 1
        • First post
          Last post