LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 12-23-2006, 07:24 AM   #1
TrAvIkK
Member
 
Registered: May 2006
Distribution: Lovley Debian etch :)
Posts: 47

Rep: Reputation: 15
QT compile errors


Hi
When i'm trying to 'make' QT 4.2.2 i get:

Code:
[...]
make[2]: Entering directory `/home/travikk/qt-x11-opensource-src-4.2.2/src/gui'
g++ -c -pipe -g -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -O2 -Wall -W -D_REENTRANT -fPIC  -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_RASTER_IMAGEENGINE -DQT_HAVE_SSE -DFT2_BUILD_LIBRARY -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSXP -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include/QtCore -I../../include -I../../include/QtGui -I../3rdparty/freetype/src -I../3rdparty/freetype/include -I../3rdparty/freetype/builds/unix -I.moc/release-shared -I/usr/X11R6/include -I.uic/release-shared -o .obj/release-shared/qapplication.o kernel/qapplication.cpp
In file included from ../../include/QtGui/private/qt_x11_p.h:1,
                 from kernel/qapplication.cpp:55:
../../src/gui/kernel/qt_x11_p.h:50:22: X11/Xlib.h: No such file or directory
../../src/gui/kernel/qt_x11_p.h:55:23: X11/Xutil.h: No such file or directory
../../src/gui/kernel/qt_x11_p.h:56:21: X11/Xos.h: No such file or directory
../../src/gui/kernel/qt_x11_p.h:63:23: X11/Xatom.h: No such file or directory
In file included from ../../include/QtGui/private/qt_x11_p.h:1,
                 from kernel/qapplication.cpp:55:
../../src/gui/kernel/qt_x11_p.h:248: error: 'Colormap' is used as a type, but
   is not defined as a type.
../../src/gui/kernel/qt_x11_p.h:249: error: syntax error before `*' token
../../src/gui/kernel/qt_x11_p.h:258: error: 'Time' is used as a type, but is
   not defined as a type.
../../src/gui/kernel/qt_x11_p.h:259: error: 'Window' is used as a type, but is
   not defined as a type.
../../src/gui/kernel/qt_x11_p.h:260: error: 'Window' is used as a type, but is
   not defined as a type.
../../src/gui/kernel/qt_x11_p.h:282: error: `Window' was not declared in this
   scope
../../src/gui/kernel/qt_x11_p.h:282: error: `Atom' was not declared in this
   scope
../../src/gui/kernel/qt_x11_p.h:282: error: parse error before `)' token
../../src/gui/kernel/qt_x11_p.h:282: error: 'Window' is used as a type, but is
   not defined as a type.
../../src/gui/kernel/qt_x11_p.h:285: error: `Window' was not declared in this
   scope
../../src/gui/kernel/qt_x11_p.h:285: error: parse error before `,' token
../../src/gui/kernel/qt_x11_p.h:286: error: `Window' was not declared in this
   scope
../../src/gui/kernel/qt_x11_p.h:286: error: parse error before `,' token
../../src/gui/kernel/qt_x11_p.h:288: error: `Window' was not declared in this
   scope
../../src/gui/kernel/qt_x11_p.h:288: error: parse error before `,' token
../../src/gui/kernel/qt_x11_p.h:299: error: parse error before `*' token
../../src/gui/kernel/qt_x11_p.h:301: error: `Atom' was not declared in this
   scope
../../src/gui/kernel/qt_x11_p.h:301: error: parse error before `)' token
../../src/gui/kernel/qt_x11_p.h:302: error: parse error before `char'
../../src/gui/kernel/qt_x11_p.h:304: error: `Atom' was not declared in this
   scope
../../src/gui/kernel/qt_x11_p.h:304: error: parse error before `)' token
../../src/gui/kernel/qt_x11_p.h:305: error: parse error before `&' token
../../src/gui/kernel/qt_x11_p.h:306: error: `Atom' was not declared in this
   scope
../../src/gui/kernel/qt_x11_p.h:306: error: parse error before `)' token
../../src/gui/kernel/qt_x11_p.h:307: error: `Atom' was not declared in this
   scope
../../src/gui/kernel/qt_x11_p.h:307: error: parse error before `,' token
../../src/gui/kernel/qt_x11_p.h:308: error: `Atom' was not declared in this
   scope
../../src/gui/kernel/qt_x11_p.h:308: error: template argument 1 is invalid
../../src/gui/kernel/qt_x11_p.h:308: error: ISO C++ forbids declaration of `
   xdndMimeAtomsForFormat' with no type
../../src/gui/kernel/qt_x11_p.h:309: error: `Atom' was not declared in this
   scope
../../src/gui/kernel/qt_x11_p.h:309: error: parse error before `,' token
../../src/gui/kernel/qt_x11_p.h:310: error: parse error before `&' token
In file included from ../../include/QtGui/private/qt_x11_p.h:1,
                 from kernel/qapplication.cpp:55:
../../src/gui/kernel/qt_x11_p.h:365: error: syntax error before `*' token
../../src/gui/kernel/qt_x11_p.h:367: error: syntax error before `*' token
../../src/gui/kernel/qt_x11_p.h:369: error: 'Window' is used as a type, but is
   not defined as a type.
../../src/gui/kernel/qt_x11_p.h:375: error: 'Time' is used as a type, but is
   not defined as a type.
../../src/gui/kernel/qt_x11_p.h:376: error: 'Time' is used as a type, but is
   not defined as a type.
../../src/gui/kernel/qt_x11_p.h:402: error: syntax error before `*' token
../../src/gui/kernel/qt_x11_p.h:403: error: 'Colormap' is used as a type, but
   is not defined as a type.
../../src/gui/kernel/qt_x11_p.h:563: error: parse error before `[' token
../../src/gui/kernel/qt_x11_p.h:573: error: `FocusOut' was not declared in this
   scope
../../src/gui/kernel/qt_x11_p.h:573: error: enumerator value for `XFocusOut'
   not integer constant
../../src/gui/kernel/qt_x11_p.h:574: error: `FocusIn' was not declared in this
   scope
../../src/gui/kernel/qt_x11_p.h:574: error: enumerator value for `XFocusIn' not
   integer constant
../../src/gui/kernel/qt_x11_p.h:575: error: `KeyPress' was not declared in this
   scope
../../src/gui/kernel/qt_x11_p.h:575: error: enumerator value for `XKeyPress'
   not integer constant
../../src/gui/kernel/qt_x11_p.h:576: error: `KeyRelease' was not declared in
   this scope
../../src/gui/kernel/qt_x11_p.h:576: error: enumerator value for `XKeyRelease'
   not integer constant
../../src/gui/kernel/qt_x11_p.h:577: error: `None' was not declared in this
   scope
../../src/gui/kernel/qt_x11_p.h:577: error: enumerator value for `XNone' not
   integer constant
../../src/gui/kernel/qt_x11_p.h:578: error: `RevertToParent' was not declared
   in this scope
../../src/gui/kernel/qt_x11_p.h:578: error: enumerator value for `
   XRevertToParent' not integer constant
../../src/gui/kernel/qt_x11_p.h:579: error: `GrayScale' was not declared in
   this scope
../../src/gui/kernel/qt_x11_p.h:579: error: enumerator value for `XGrayScale'
   not integer constant
../../src/gui/kernel/qt_x11_p.h:581: error: `CursorShape' was not declared in
   this scope
../../src/gui/kernel/qt_x11_p.h:581: error: enumerator value for `XCursorShape'
   not integer constant
../../src/gui/kernel/qt_x11_p.h:595: error: `XPoint' was not declared in this
   scope
../../src/gui/kernel/qt_x11_p.h:595: error: template argument 1 is invalid
../../src/gui/kernel/qt_x11_p.h:595: error: `XPoint' was not declared in this
   scope
../../src/gui/kernel/qt_x11_p.h:595: error: enumerator value for `isLarge' not
   integer constant
../../src/gui/kernel/qt_x11_p.h:595: error: can't make `name' into a method --
   not in a class
../../src/gui/kernel/qt_x11_p.h:596: error: `XRectangle' was not declared in
   this scope
../../src/gui/kernel/qt_x11_p.h:596: error: template argument 1 is invalid
../../src/gui/kernel/qt_x11_p.h:596: error: `XRectangle' was not declared in
   this scope
../../src/gui/kernel/qt_x11_p.h:596: error: enumerator value for `isLarge' not
   integer constant
../../src/gui/kernel/qt_x11_p.h:596: error: can't make `name' into a method --
   not in a class
../../src/gui/kernel/qt_x11_p.h:597: error: `XChar2b' was not declared in this
   scope
../../src/gui/kernel/qt_x11_p.h:597: error: template argument 1 is invalid
../../src/gui/kernel/qt_x11_p.h:597: error: `XChar2b' was not declared in this
   scope
../../src/gui/kernel/qt_x11_p.h:597: error: enumerator value for `isLarge' not
   integer constant
../../src/gui/kernel/qt_x11_p.h:597: error: can't make `name' into a method --
   not in a class
make[2]: *** [.obj/release-shared/qapplication.o] Error 1
make[2]: Leaving directory `/home/travikk/qt-x11-opensource-src-4.2.2/src/gui'
make[1]: *** [sub-gui-make_default] Error 2
make[1]: Leaving directory `/home/travikk/qt-x11-opensource-src-4.2.2/src'
make: *** [sub-src-make_default-ordered] Error 2
Can someone help ?
 
Old 12-23-2006, 08:38 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 9,607

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
Quote:
../../src/gui/kernel/qt_x11_p.h:50:22: X11/Xlib.h: No such file or directory
../../src/gui/kernel/qt_x11_p.h:55:23: X11/Xutil.h: No such file or directory
../../src/gui/kernel/qt_x11_p.h:56:21: X11/Xos.h: No such file or directory
../../src/gui/kernel/qt_x11_p.h:63:23: X11/Xatom.h: No such file or directory
You have not installed the x11 developement package which is used when you want to compile x-apps. Use your distro's package manager to intall it.

Regards
 
Old 12-23-2006, 01:29 PM   #3
TrAvIkK
Member
 
Registered: May 2006
Distribution: Lovley Debian etch :)
Posts: 47

Original Poster
Rep: Reputation: 15
Thanks, but the problem is i do not have internet connection on my linux, yet
I need QT which needs x11-devel (as you said) to install the utility for my WLAN card.
 
Old 12-24-2006, 07:48 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 9,607

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
You can use your distro's installation cd to install any missing packages.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
compile errors. DrunkenDisciple Linux - Software 3 11-29-2005 12:11 AM
c++ compile errors using g++ ttumelty Programming 5 09-08-2005 01:58 PM
compile errors davidleroux1 Programming 4 05-10-2005 10:03 PM
C++ compile errors Palamides Programming 1 03-09-2005 06:28 AM
Compile Errors userini Linux - Software 6 07-16-2003 08:22 AM


All times are GMT -5. The time now is 02:53 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration