Important: Please read the Qt Code of Conduct -

[Self-Sovled]X11R6/include:Not a directory

  • Hi guys,

    I installed qtsdk and import my application. when I build it, error like@cc1plus:error:/usr/X11R6/include:Not a directory@ appears. welcome any advices.

  • Moderators

    I assume you are on linux?

    Did you install the headers of the stuff you need? The simplest way to do that is most likely to install the Qt 4 development package, that should drag in most of the other packages you will need.

  • thanks, I did something like this
    @sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui@
    the problem is still there. do I miss something?

  • "the headers of the stuff "? would you please give me more detail?

  • Moderators

    No, I can't get into more details, since they are very distribution dependent.

    The apt-get line should have gotten you all you need. Where did the X11 development packages install to? /usr/X11R6/include is not that widely used... maybe you need to update your project file to look for the headers in /usr/include/X11 instead?

  • @12:14:02: The process "/usr/bin/make" exited normally.
    12:14:02: Running build steps for project AppLibrary...
    12:14:02: Configuration unchanged, skipping qmake step.
    12:14:02: Starting: "/usr/bin/make" -w
    make: Entering directory /home/roy/QtProjects/Source/Trunk/AppLibrary-build-desktop' /opt/QtSDK/Desktop/Qt/4.8.1/gcc/bin/uic ../AppLibrary/controls/CrsPopup.ui -o ui_CrsPopup.h /opt/QtSDK/Desktop/Qt/4.8.1/gcc/bin/uic ../AppLibrary/controls/ErrorDialog.ui -o ui_ErrorDialog.h /opt/QtSDK/Desktop/Qt/4.8.1/gcc/bin/uic ../AppLibrary/controls/DynamicalTableView.ui -o ui_DynamicalTableView.h /opt/QtSDK/Desktop/Qt/4.8.1/gcc/bin/uic ../AppLibrary/WorkItems/TitleBlock/TitleBlockDialog.ui -o ui_TitleBlockDialog.h g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIC -DAPPLIBRARY_LIBRARY -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/linux-g++ -I../AppLibrary -I/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore -I/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui -I/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtOpenGL -I/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include -I../../Trunk -I../units -I../Common -I/usr/X11R6/include -I. -I. -I../AppLibrary -I. -o enums.o ../AppLibrary/enums.cpp cc1plus: error: /usr/X11R6/include: Not a directory make: *** [enums.o] Error 1 make: Leaving directory/home/roy/QtProjects/Source/Trunk/AppLibrary-build-desktop'
    12:14:02: The process "/usr/bin/make" exited with code 2.
    Error while building project AppLibrary (target: Desktop)
    When executing build step 'Make'@

  • from my view, I miss something related to X11R6, but I am not sure.Actually, I run the same application on 32bitsubuntu and 64bitsubuntu. the former has some errors like I posted. 64bitsubuntu everything is ok. problems are so wired

  • could other guys help me out? thanks a lot

  • Moderators

    Please don't beg for urgent help. Especially not 30 minutes after your previous post. If anyone has input, they will give it.

  • you are right, but I just wanna focus on the technical issue. if my post bothers you, please ignore it.

  • I edit my makefile and the replace X11R6 with other value, the problem is fixed. basically, on my computer has no any X11R6. anyway, thanks everyone who posted here

Log in to reply