Solaris 10 CC 編譯 Qt 4.8.6 備計

來源:互聯網
上載者:User

標籤: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 備計

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.