標籤:solaris 10 qt cc
Configure:
./configure -no-qt3support -nomake demos -nomake examples -nomake test -release -platform solaris-cc -prefix /export/home/app/qt/4.8.6 -L/opt/SUNWmlib/lib -L/opt/SUNWits/Graphics-sw/xil/lib -I/opt/SUNWmlib/include -I/usr/lib/gnome-private/lib/dbus-1.0/include -I/usr/lib/gnome-private/include/dbus-1.0 -webkit -declarative -script
結果是script、declarative和webkit還是不給編譯。
不管這個,configure完成後執行dmake,編譯gui模組式出錯,錯誤源檔案為qfiledialog.cpp,代碼(884~888行)修改如下:
//#if defined(Q_OS_SOLARIS) && defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE - 0 < 199506L)
tmpPw = getpwnam_r(userName.toLocal8Bit().constData(), &pw, buf, bufSize);
/*#else
err = getpwnam_r(userName.toLocal8Bit().constData(), &pw, buf, bufSize, &tmpPw);
#endif*/
繼續編譯,dmake完成後執行dmake install。
然後依次進入src下的script、scripttools、declarative、phonon目錄編譯(dmake、dmake install)
進入src下的dbus下,修改qdbusunixfiledescriptor.h,將其中的#ifndef QT_NO_DBUS前添加代碼#undef QT_NO_DBUS,然後再編譯(dmake、dmake install)
好不好使,先編了再說
Solaris 10 CC 編譯 Qt 4.8.6 備計