Re: [問題] 想請問一下Qt creator的幾個問題

看板C_and_CPP (C/C++)作者 (carl)時間16年前 (2009/03/10 20:14), 編輯推噓2(202)
留言4則, 4人參與, 最新討論串2/4 (看更多)
安裝函式庫: 我先把整個資料夾搬到/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

03/10 20:21, , 1F
妳應該沒裝libx11-dev ~~
03/10 20:21, 1F

03/10 21:12, , 2F
為什麼要自己編?
03/10 21:12, 2F

03/10 21:43, , 3F
不是有包好的bin檔
03/10 21:43, 3F

03/10 23:54, , 4F
用bin檔 compile會失敗= ="
03/10 23:54, 4F
文章代碼(AID): #19jbcV0k (C_and_CPP)
文章代碼(AID): #19jbcV0k (C_and_CPP)