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. Error: ‘ptrdiff_t’ does not name a type

Error: ‘ptrdiff_t’ does not name a type

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 24.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.
  • Y Offline
    Y Offline
    yacob
    wrote on 7 May 2012, 12:42 last edited by
    #1

    Dear Sir

    I have tried to install qt-x11-free-3.3.6 on the new Ubuntu OS (12.04 LTS) (gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3).
    The configuration went well but when I tried to run "make" I got the following error message:
    ....
    ....
    ../include/qvaluelist.h:88:13: error: ‘ptrdiff_t’ does not name a type
    ../include/qvaluelist.h:164:13: error: ‘ptrdiff_t’ does not name a type
    ....
    ....

    ../include/qmap.h:107:13: error: ‘ptrdiff_t’ does not name a type
    ../include/qmap.h:223:13: error: ‘ptrdiff_t’ does not name a type
    .....

    make[2]: *** [.obj/release-shared/qapplication_x11.o] Error 1
    make[2]: Leaving directory /usr/local/qt/src' make[1]: *** [sub-src] Error 2 make[1]: Leaving directory /usr/local/qt'
    make: *** [init] Error 2

    Kind regards
    Yacob

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AcerExtensa
      wrote on 7 May 2012, 12:53 last edited by
      #2

      It's a common error with relative new libc and... Just add
      @#include <stddef.h>@
      to files on which does the compiler complains. You may have also troubles with png plugin if you have selected --system-libpng and you have 1,5* libpng... where is an patch on the web... for example "here":http://www.linuxfromscratch.org/patches/downloads/qt/

      God is Real unless explicitly declared as Integer.

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        yacob
        wrote on 7 May 2012, 13:50 last edited by
        #3

        Dear AcerExtensa

        Thank you for your quck reply. Now I could able to pass the first hurdle after including "#include <stddef.h>". I have now some problems with finding "Xext"

        r/X11R6/lib -lXext -lX11 -lm -ldl
        /usr/bin/ld: cannot find -lXext
        collect2: ld returned 1 exit status

        Kind regards
        Yacob

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AcerExtensa
          wrote on 7 May 2012, 14:46 last edited by
          #4

          install libxext-dev with aptitude

          God is Real unless explicitly declared as Integer.

          1 Reply Last reply
          0

          4/4

          7 May 2012, 14:46

          • Login

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