2014-05-09 5 views
0

Qt3을 실행해야하는 일부 소프트웨어 (Theli : http://www.astro.uni-bonn.de/theli/gui/installation.html)를 설치하고 있으므로 소스에서 설치하려고합니다. Qt 웹 사이트 qt-x11-free-3.3.8.tar.gz에서 다음 소스 파일을 다운로드했습니다. 나는 그것을 풀고 모든 것을 qt라는 새로운 디렉토리에 복사하고 ./configure를 수행했다. 내가 말할 수있는 한 모든 것은 괜찮 았어. 내가 만들 때 문제가 생겼어. 여기에 출력물을 복사하여 붙여 넣었습니다. 모든 도움/조언을 부탁드립니다.Ubuntu의 소스에서 Qt3을 설치합니다. 12.10에서 문제가 발생합니다.

su 액세스 권한이없는 컴퓨터에 설치하고 있습니다. 우리 부서의 시스템 관리자는 12.10의 저장소에서 Qt3을 사용할 수 없다고 말했습니다.

[email protected]:~/qt$ make 
make1: Entering directory `/afs/cas.unc.edu/users/m/c/mcbridej/qt’ 
cd qmake && make 
make2: Entering directory `/afs/cas.unc.edu/users/m/c/mcbridej/qt/qmake’ 
make2: `qmake’ is up to date. 
make2: Leaving directory `/afs/cas.unc.edu/users/m/c/mcbridej/qt/qmake’ 
cd src/moc && make 
make2: Entering directory `/afs/cas.unc.edu/users/m/c/mcbridej/qt/src/moc’ 
make2: Nothing to be done for `first’. 
make2: Leaving directory `/afs/cas.unc.edu/users/m/c/mcbridej/qt/src/moc’ 
cd src && make 
make2: 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] 
make2: *** [.obj/release-shared/qapplication_x11.o] Error 1 
make2: Leaving directory `/afs/cas.unc.edu/users/m/c/mcbridej/qt/src’ 
make1: *** [sub-src] Error 2 
make1: Leaving directory `/afs/cas.unc.edu/users/m/c/mcbridej/qt’ 
make: *** [init] Error 2 

답변

2

컴파일러가 불평하는 파일에 #include <stddef.h>을 추가하기 만하면됩니다.