早教吧 育儿知识 作业答案 考试题库 百科 知识分享

ubuntu10.04安装qt-x11-opensource-src-4.4.规求解决方案Infileincludedfrom../../include/QtGui/private/qtx11p.h:1,fromkernel/qapplication.cpp:70:../../include/QtGui/private/../../../src/gui/kernel/qtx11p.h:65:22:error:X11/Xlib.h:没有

题目详情
ubuntu10.04安装qt-x11-opensource-src-4.4.规求解决方案
In file included from ../../include/QtGui/private/qt_x11_p.h:1,
from kernel/qapplication.cpp:70:
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:65:22:error:X11/Xlib.h:没有那个文件或目录
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:70:23:error:X11/Xutil.h:没有那个文件或目录
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:71:21:error:X11/Xos.h:没有那个文件或目录
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:78:23:error:X11/Xatom.h:没有那个文件或目录
In file included from ../../include/QtGui/private/qt_x11_p.h:1,
from kernel/qapplication.cpp:70:
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:280:error:‘Colormap’ does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:281:error:ISO C++ forbids declaration of ‘Visual’ with no type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:281:error:expected ‘;’ before ‘*’ token
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:290:error:‘Time’ does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:291:error:‘Window’ does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:292:error:‘Window’ does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:315:error:‘Window’ does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:318:error:‘Window’ has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:319:error:‘Window’ has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:319:error:‘Atom’ has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:320:error:‘Atom’ has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:321:error:‘Window’ has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:321:error:‘Atom’ has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:332:error:ISO C++ forbids declaration of ‘XSelectionRequestEvent’ with no type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:332:error:expected ‘,’ or ‘...’ before ‘*’ token
make[1]:*** [.obj/release-shared/qapplication.o] 错误 1
make[1]:正在离开目录 `/opt/qt-x11-opensource-src-4.4.3/src/gui'
make:*** [sub-gui-make_default-ordered] 错误 2
没分了,我是把压缩包放在/opt下的,执行./configure,在执行make出现以上错误.本来在./configure后还有一条:./configure -plugin-sql-sqlite -plugin-sql-mysql -plugin-sql-sqlite2,但是没执行成功,执行make时就出现这种错误!
▼优质解答
答案和解析
./configure -plugin-sql-sqlite -plugin-sql-mysql 这条没有成功是不是因为你没有 用 -I -L 参数将mysql的头文件和库文件包含进去呢,难说,可能就是没有配置成功搞这样
看了 ubuntu10.04安装q...的网友还看了以下: