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. cstdef:No such file or directory
Forum Updated to NodeBB v4.3 + New Features

cstdef:No such file or directory

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 3 Posters 3.8k Views 1 Watching
  • 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.
  • B Offline
    B Offline
    b108463
    wrote on last edited by b108463
    #1

    Hi all,
    I am a new user for Qt and Nvidia TK1. Currently, I try to build a code on ubuntu of PC, but I suffer some problems. Is anyone able to give me some suggestions? Thanks a lot.

    1. the toolchain is /usr/bin/g++-4.8 of ubuntu
      2.the Qt version is 5.7.0
    2. the error message is listed as below,
      In file included from /opt/Qt5.7.0/5.7/gcc_64/include/QtGui/qwindowdefs.h:43:0,
      from /opt/Qt5.7.0/5.7/gcc_64/include/QtWidgets/qwidget.h:43,
      from /opt/Qt5.7.0/5.7/gcc_64/include/QtWidgets/qmainwindow.h:43,
      from /opt/Qt5.7.0/5.7/gcc_64/include/QtWidgets/QMainWindow:1,
      from SMPCodeReader/mainwindow.h:4,
      from SMPCodeReader/main.cpp:1:
      /opt/Qt5.7.0/5.7/gcc_64/include/QtCore/qglobal.h:45:21: fatal error: cstddef: No such file or directory

    include <cstddef>

                     ^
    

    compilation terminated.
    make: *** [main.o] Error 1

    1 Reply Last reply
    0
    • kshegunovK kshegunov

      @b108463
      Did you install the dev packages, e.g. http://packages.ubuntu.com/precise/libc6-dev?

      B Offline
      B Offline
      b108463
      wrote on last edited by
      #5

      hi all,
      Thanks for your reply. I think it is a problem in my ubuntu.
      Maybe I made a mistake, so I could not see any of the header files in /use/include.
      After I reinstalling the ubuntu , It is ok. Thanks a lot. :)

      1 Reply Last reply
      0
      • m.sueM Offline
        m.sueM Offline
        m.sue
        wrote on last edited by
        #2

        Hi,
        there is probably something wrong with your installation of gcc. Usually the include files are not under "/opt". BTW: which Ubuntu do you speak of? 14.04 LTS? I build Qt 5.7.0 there quite some time ago and did not have any such problem.
        I would look if "cstddef" really is not in gcc's include directories. You could create yourself a link to "stddef.h" and try again. But there maybe other problems to come with other includes.
        -Michael.

        B 1 Reply Last reply
        0
        • m.sueM m.sue

          Hi,
          there is probably something wrong with your installation of gcc. Usually the include files are not under "/opt". BTW: which Ubuntu do you speak of? 14.04 LTS? I build Qt 5.7.0 there quite some time ago and did not have any such problem.
          I would look if "cstddef" really is not in gcc's include directories. You could create yourself a link to "stddef.h" and try again. But there maybe other problems to come with other includes.
          -Michael.

          B Offline
          B Offline
          b108463
          wrote on last edited by
          #3

          @m.sue Thanks.

          1. I tyr the example file of Qt5.7, I see the same problem. :(
          2. I use ubuntu-14.04.5-desktop-amd64.iso to install my ubuntu.
          kshegunovK 1 Reply Last reply
          0
          • B b108463

            @m.sue Thanks.

            1. I tyr the example file of Qt5.7, I see the same problem. :(
            2. I use ubuntu-14.04.5-desktop-amd64.iso to install my ubuntu.
            kshegunovK Offline
            kshegunovK Offline
            kshegunov
            Moderators
            wrote on last edited by
            #4

            @b108463
            Did you install the dev packages, e.g. http://packages.ubuntu.com/precise/libc6-dev?

            Read and abide by the Qt Code of Conduct

            B 1 Reply Last reply
            2
            • kshegunovK kshegunov

              @b108463
              Did you install the dev packages, e.g. http://packages.ubuntu.com/precise/libc6-dev?

              B Offline
              B Offline
              b108463
              wrote on last edited by
              #5

              hi all,
              Thanks for your reply. I think it is a problem in my ubuntu.
              Maybe I made a mistake, so I could not see any of the header files in /use/include.
              After I reinstalling the ubuntu , It is ok. Thanks a lot. :)

              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