checking oci works... configure: error: Couldn't compile and run a simpile OCI app. Try setting ORACLE_HOME or check config.log. Otherwise, make sure ORACLE_HOME/lib is in /etc/ld.so.conf or LD_LIBRARY_PATH
checking oci works... yes checking for qscintilla... configure: error: Couldn't compile a simple QScintilla application. See config.log or specify its location with --with-qscintilla-includes
在網上找了一下資料,說是需要安裝Qscintilla。用yum查了一下,發現yum源上有,直接yum就可以了,否則又需要下載,安裝了。 [oracle@Lzglass tora-1.3.22]$ yum list qscintilla Available Packages qscintilla.i386 1.7.1-3.fc8 fedora [root@Lzglass tora-1.3.22]# yum install qscintilla
[oracle@Lzglass bin]$ ./tora QApplication::palette: This function can only be called after the QApplication object has been created於是在下面網站下載了tora-1.3.21 http://www.linuxfans.org/nuke/mo ... op=geninfo&did=4700用該網站的再次解壓編譯安裝,卻報如下錯誤: tothread.cpp: In member function 『void toThread::start()』: tothread.cpp:190: 錯誤:『toThreadStartWrapper』 在此作用域中尚未聲明 tothread.cpp: In member function 『void toThread::startAsync()』: tothread.cpp:199: 錯誤:『toThreadStartWrapper』 在此作用域中尚未聲明 make[1]: *** [tora-tothread.o] 錯誤 1 make[1]: Leaving directory `/home/oracle/tora-1.3.21.m1' make: *** [all] 錯誤 2 [oracle@Lzglass tora-1.3.21.m1]$ 在網上搜了一下(http://www.linuxsir.org/bbs/printthread.php?t=262634),說需要:找到文件tothread.cpp,編輯裡邊的內容,找到 #define THREAD_ASSERT(x) if((x)!=0) { throw (qApp->translate("toThread","Thread function "%1" failed.").arg(QString::fromLatin1( #x ))); }
void toThread::initAttr() { //create the thread detached, so everything is cleaned up //after it's finished.修改成如下: #define THREAD_ASSERT(x) if((x)!=0) { throw (qApp->translate("toThread","Thread function "%1" failed.").arg(QString::fromLatin1( #x ))); }
void *toThreadStartWrapper(void *t); //增加的代碼
void toThread::initAttr() { //create the thread detached, so everything is cleaned up //after it's finished.找到后,再次執行,雖然還是報QApplication::palette: This function can only be called after the QApplication object has been created但是已經可以在裡面輸入中文了。
void toThread::initAttr() { //create the thread detached, so everything is cleaned up //after it's finished.修改成如下: #define THREAD_ASSERT(x) if((x)!=0) { throw (qApp->translate("toThread","Thread function "%1" failed.").arg(QString::fromLatin1( #x ))); }
void *toThreadStartWrapper(void *t); //增加的代碼 void toThread::initAttr() { //create the thread detached, so everything is cleaned up //after it's finished.