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. Install Qt3 from source on Ubuntu 12.10
Forum Updated to NodeBB v4.3 + New Features

Install Qt3 from source on Ubuntu 12.10

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 2 Posters 3.2k 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.
  • A Offline
    A Offline
    astropunkin
    wrote on 8 May 2014, 18:35 last edited by
    #1

    Hi there,

    I am running some software that needs Qt3 to run so I am attempting to install it from source. I downloaded the following source file from the Qt website qt-x11-free-3.3.8.tar.gz. I unpacked it, copied everything into a new directory call qt and did ./configure. That all went fine as far as I could tell. I run into trouble when I run make though. I will copy and paste the output here but its a lot. Any help/advice is appreciated.

    make output:
    mcbridej@schlock:~/qt$ make
    make[1]: Entering directory /afs/cas.unc.edu/users/m/c/mcbridej/qt' cd qmake && make make[2]: Entering directory /afs/cas.unc.edu/users/m/c/mcbridej/qt/qmake'
    make[2]: qmake' is up to date. make[2]: Leaving directory /afs/cas.unc.edu/users/m/c/mcbridej/qt/qmake'
    cd src/moc && make
    make[2]: Entering directory /afs/cas.unc.edu/users/m/c/mcbridej/qt/src/moc' make[2]: Nothing to be done for first'.
    make[2]: Leaving directory /afs/cas.unc.edu/users/m/c/mcbridej/qt/src/moc' cd src && make make[2]: Entering directory /afs/cas.unc.edu/users/m/c/mcbridej/qt/src'
    g++ -c -pipe -Wall -W -O2 -fPIC -DQT_SHARED -DQT_NO_DEBUG -DQT_NO_CUPS -DQT_NO_NIS -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA -DQT_NO_XCURSOR -DQT_NO_XRANDR -DQT_NO_XRENDER -DQT_NO_XFTFREETYPE -DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/afs/cas.unc.edu/users/m/c/mcbridej/qt/mkspecs/linux-g++ -I. -I3rdparty/libpng -I3rdparty/zlib -I../include -I/usr/X11R6/include -I.moc/release-shared/ -o .obj/release-shared/qapplication_x11.o kernel/qapplication_x11.cpp
    In file included from ../include/qmap.h:46:0,
    from kernel/qmime.h:43,
    from kernel/qevent.h:45,
    from kernel/qobject.h:45,
    from kernel/qwidget.h:43,
    from kernel/qdesktopwidget.h:40,
    from kernel/qapplication.h:42,
    from kernel/qapplication_x11.cpp:64:
    ../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
    In file included from ../include/qmap.h:46:0,
    from kernel/qmime.h:43,
    from kernel/qevent.h:45,
    from kernel/qobject.h:45,
    from kernel/qwidget.h:43,
    from kernel/qdesktopwidget.h:40,
    from kernel/qapplication.h:42,
    from kernel/qapplication_x11.cpp:64:
    ../include/qvaluelist.h:424:13: error: ‘ptrdiff_t’ does not name a type
    In file included from kernel/qmime.h:43:0,
    from kernel/qevent.h:45,
    from kernel/qobject.h:45,
    from kernel/qwidget.h:43,
    from kernel/qdesktopwidget.h:40,
    from kernel/qapplication.h:42,
    from kernel/qapplication_x11.cpp:64:
    ../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
    In file included from kernel/qmime.h:43:0,
    from kernel/qevent.h:45,
    from kernel/qobject.h:45,
    from kernel/qwidget.h:43,
    from kernel/qdesktopwidget.h:40,
    from kernel/qapplication.h:42,
    from kernel/qapplication_x11.cpp:64:
    ../include/qmap.h:604:13: error: ‘ptrdiff_t’ does not name a type
    kernel/qapplication_x11.cpp: In function ‘void qt_init_internal(int*, char**, Display*, Qt::HANDLE, Qt::HANDLE)’:
    kernel/qapplication_x11.cpp:2009:8: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated (declared at /usr/include/X11/Xlib.h:1695) [-Wdeprecated-declarations]
    kernel/qapplication_x11.cpp:2009:62: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated (declared at /usr/include/X11/Xlib.h:1695) [-Wdeprecated-declarations]
    kernel/qapplication_x11.cpp:2039:8: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated (declared at /usr/include/X11/Xlib.h:1695) [-Wdeprecated-declarations]
    kernel/qapplication_x11.cpp:2039:66: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated (declared at /usr/include/X11/Xlib.h:1695) [-Wdeprecated-declarations]
    kernel/qapplication_x11.cpp: In member function ‘int QApplication::x11ProcessEvent(XEvent*)’:
    kernel/qapplication_x11.cpp:3690:54: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
    kernel/qapplication_x11.cpp:3703:54: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
    kernel/qapplication_x11.cpp: In member function ‘bool QETWidget::translateMouseEvent(const XEvent*)’:
    kernel/qapplication_x11.cpp:4119:30: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
    kernel/qapplication_x11.cpp: In member function ‘bool QETWidget::translateKeyEventInternal(const XEvent*, int&, QString&, int&, char&, int&, QEvent::Type&, bool)’:
    kernel/qapplication_x11.cpp:5158:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
    kernel/qapplication_x11.cpp:5229:52: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
    kernel/qapplication_x11.cpp:5232:52: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
    kernel/qapplication_x11.cpp: In function ‘int isPaintOrScrollDoneEvent(Display*, XEvent*, XPointer)’:
    kernel/qapplication_x11.cpp:5521:34: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
    make[2]: *** [.obj/release-shared/qapplication_x11.o] Error 1
    make[2]: Leaving directory /afs/cas.unc.edu/users/m/c/mcbridej/qt/src' make[1]: *** [sub-src] Error 2 make[1]: Leaving directory /afs/cas.unc.edu/users/m/c/mcbridej/qt'
    make: *** [init] Error 2

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 8 May 2014, 20:42 last edited by
      #2

      Hi and welcome to devnet,

      What about using qt3-dev-tools from ubuntu ?

      You should also consider porting that software to Qt5/4

      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
      0
      • A Offline
        A Offline
        astropunkin
        wrote on 8 May 2014, 20:58 last edited by
        #3

        They are apparently not available in 12.10 and I don't have su access. I did not develop this software so it has to be run using qt3.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 9 May 2014, 16:12 last edited by
          #4

          Since you have the code, you can port it (and you really should).

          Or just use a virtual machine containing an older version of Ubuntu still providing Qt 3. At least 12.04 still does.

          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
          0
          • A Offline
            A Offline
            astropunkin
            wrote on 9 May 2014, 17:00 last edited by
            #5

            The system admin for our computers will only run a Virtual Machine for a limited time on that computer. Also the program runs out of memory and harddrive space really quickly because of this program.

            I can try porting. Again its not my software, and on their website they say to use Qt3 http://www.astro.uni-bonn.de/theli/gui/installation.html

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 9 May 2014, 20:01 last edited by
              #6

              And the port is not trivial…

              In that case, just add

              @#include <stddef.h>@

              In the files where there's a complaint about ptrdiff_t

              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
              0

              1/6

              8 May 2014, 18:35

              • Login

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