作者carlcarl (carl)
看板C_and_CPP
标题Re: [问题] 想请问一下Qt creator的几个问题
时间Tue Mar 10 20:14:19 2009
安装函式库:
我先把整个资料夹搬到/usr/local/下
接着进去 用./configure
最後出现的讯息
NOTICE: Qt will not be built with XShape support.
As a result, drag-and-drop in the Qt Designer will NOT
work. We recommend that you enable XShape support by passing
the -xshape switch to ./configure.
Qt is now configured for building. Just run 'gmake'.
Once everything is built, you must run 'gmake install'.
Qt will be installed into /usr/local/Trolltech/Qt-4.5.0
To reconfigure, run 'gmake confclean' and 'configure'.
当然我加了-xshape 他还是跟我说不行= ="
XShape support cannot be enabled due to functionality tests!
Turn on verbose messaging (-v) to ./configure to see the final report.
If you believe this message is in error you may use the continue
switch (-continue) to ./configure to continue.
接着如果直接make的话
最後会出现
在包含自 ../../include/QtGui/private/qt_x11_p.h:1 的档案中,
从 kernel/qapplication.cpp:76:
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:69:22: 错误:
X11/Xlib.h:没有此一档案或目录
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:74:23: 错误:
X11/Xutil.h:没有此一档案或目录
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:75:21: 错误:
X11/Xos.h:没有此一档案或目录
类似这样好几行= ="
尾巴是
make[1]: *** [.obj/release-shared/qapplication.o] Error 1
make[1]: Leaving directory `/usr/local/qt-x11-opensource-src-4.5.0/src/gui'
make: *** [sub-gui-make_default-ordered] Error 2
如果再make install的话
最後会出现
collect2: ld 回传 1
make[1]: *** [../../lib/libQtGui.so.4.5.0] Error 1
安装个东西 问题也好多啊="=
对了 我的版本是fedora10 环境是GNOME..
--
http://carl830.blogspot.com/
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.227.129.147
1F:推 Cloud:你应该没装libx11-dev ~~ 03/10 20:21
2F:→ legnaleurc:为什麽要自己编? 03/10 21:12
3F:推 asoedarren:不是有包好的bin档 03/10 21:43
4F:→ carlcarl:用bin档 compile会失败= =" 03/10 23:54