Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Connecting Qt5 and eclipse ubuntu - no such file or directory
Forum Update on Monday, May 27th 2025

Connecting Qt5 and eclipse ubuntu - no such file or directory

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 1.4k 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.
  • X Offline
    X Offline
    xalion
    wrote on 11 Dec 2016, 16:21 last edited by xalion 12 Nov 2016, 16:22
    #1

    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
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 11 Dec 2016, 21:20 last edited by
      #2

      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
      1

      1/2

      11 Dec 2016, 16:21

      • Login

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