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. [Self-Sovled]X11R6/include:Not a directory
Forum Update on Monday, May 27th 2025

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

Scheduled Pinned Locked Moved General and Desktop
11 Posts 3 Posters 4.2k 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.
  • P Offline
    P Offline
    pmjz
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pmjz
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        • P Offline
          P Offline
          pmjz
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tobias.hunger
            wrote on last edited by
            #5

            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?

            1 Reply Last reply
            0
            • P Offline
              P Offline
              pmjz
              wrote on last edited by
              #6

              @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'@

              1 Reply Last reply
              0
              • P Offline
                P Offline
                pmjz
                wrote on last edited by
                #7

                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

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  pmjz
                  wrote on last edited by
                  #8

                  could other guys help me out? thanks a lot

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mlong
                    wrote on last edited by
                    #9

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

                    Software Engineer
                    My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

                    1 Reply Last reply
                    0
                    • P Offline
                      P Offline
                      pmjz
                      wrote on last edited by
                      #10

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

                      1 Reply Last reply
                      0
                      • P Offline
                        P Offline
                        pmjz
                        wrote on last edited by
                        #11

                        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

                        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