Problem z instalacja qt4.3.0
: 04 czerwca 2007, 20:55
Witam wszystkich,
mam problem z instalacją nowej wersji qt4. Postępuję zgodnie z instrukcją:
- gunzip qt-x11-opensource-src-4.3.0.tar.gz
- tar xvf qt-x11-opensource-src-4.3.0.tar
- ./configure
- make
- make install
dodaję wpis do pliku ./profile (w folderze /etc)
Po zakończeniu w konsoli dostaję następujący komunikat:
Efekt jest taki, że qt4 nie działa (brakuje części plików w /usr/local/Trolltech/Qt4.3.0/...). Oczywiście można zainstalować wszystko poprzez Synaptic'a...ale jako zielony użytkownik Debiana wolę ćwiczyć konsolę. Jako, że to mój pierwszy post na forum mam nadzieję, że problem jest dostatecznie dobrze opisany...jeśli nie to z góry przepraszam.
Dzięki za pomoc.
Pozdrawiam
//edit
używaj tagów code oraz quote
mlyczek
mam problem z instalacją nowej wersji qt4. Postępuję zgodnie z instrukcją:
- gunzip qt-x11-opensource-src-4.3.0.tar.gz
- tar xvf qt-x11-opensource-src-4.3.0.tar
- ./configure
- make
- make install
dodaję wpis do pliku ./profile (w folderze /etc)
Kod: Zaznacz cały
PATH=/usr/local/Trolltech/Qt-4.3.0/bin:$PATH
export PATH
Kod: Zaznacz cały
In file included from ../../include/QtGui/private/qt_x11_p.h:1,
from kernel/qapplication.cpp:55:
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:50:22: error: X11/Xlib.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:55:23: error: X11/Xutil.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:56:21: error: X11/Xos.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:63:23: error: X11/Xatom.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:248: error: ‘Colormap’ does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:249: error: ISO C++ forbids declaration of ‘Visual’ with no type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:249: error: expected ‘;’ before ‘*’ token
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:258: error: ‘Time’ does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:259: error: ‘Window’ does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:260: error: ‘Window’ does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:283: error: ‘Window’ does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:286: error: ‘Window’ has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:287: error: ‘Window’ has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:287: error: ‘Atom’ has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:288: error: ‘Atom’ has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:289: error: ‘Window’ has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:289: error: ‘Atom’ has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:300: error: expected ‘,’ or ‘...’ before ‘*’ token
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:300: error: ISO C++ forbids declaration of ‘XSelectionRequestEvent’ with no type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:302: error: ‘Atom’ has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:303: error: ‘Atom’ does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:305: error: ‘Atom’ has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:306: error: ‘Atom’ does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:307: error: ‘Atom’ has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:308: error: ‘Atom’ has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:308: error: ‘Atom’ has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:309: error: ‘Atom’ was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:309: error: template argument 1 is invalid
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:310: error: ‘Atom’ has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:311: error: ‘Atom’ does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:366: error: ISO C++ forbids declaration of ‘Atom’ with no type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:366: error: expected ‘;’ before ‘*’ token
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:368: error: ISO C++ forbids declaration of ‘Window’ with no type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:368: error: expected ‘;’ before ‘*’ token
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:370: error: ‘Window’ does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:376: error: ‘Time’ does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:377: error: ‘Time’ does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:403: error: ISO C++ forbids declaration of ‘Visual’ with no type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:403: error: expected ‘;’ before ‘*’ token
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:404: error: ‘Colormap’ does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:568: error: ‘Atom’ does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:570: error: ‘Atom’ has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:580: error: ‘FocusOut’ was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:581: error: ‘FocusIn’ was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:582: error: ‘KeyPress’ was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:583: error: ‘KeyRelease’ was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:584: error: ‘None’ was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:585: error: ‘RevertToParent’ was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:586: error: ‘GrayScale’ was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:587: error: ‘CursorShape’ was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:602: error: ‘XPoint’ was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:602: error: template argument 1 is invalid
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:603: error: ‘XRectangle’ was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:603: error: template argument 1 is invalid
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:604: error: ‘XChar2b’ was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:604: error: template argument 1 is invalid
make[1]: *** [.obj/release-shared/qapplication.o] Error 1
make[1]: Leaving directory `/tmp/qt-x11-opensource-src-4.3.0/src/gui'
make: *** [sub-gui-install_subtargets-ordered] Error 2
Efekt jest taki, że qt4 nie działa (brakuje części plików w /usr/local/Trolltech/Qt4.3.0/...). Oczywiście można zainstalować wszystko poprzez Synaptic'a...ale jako zielony użytkownik Debiana wolę ćwiczyć konsolę. Jako, że to mój pierwszy post na forum mam nadzieję, że problem jest dostatecznie dobrze opisany...jeśli nie to z góry przepraszam.
Dzięki za pomoc.
Pozdrawiam
//edit
używaj tagów code oraz quote
mlyczek