qt 4.8.6 64 bit compilation note


QT4 has no pre-compiled 64 bit VS version. When compiling projects with qt4 in 64 bit mode, there will be a linking error for the incompatible library, such as Qtgui4.lib. As there is nowhere to download such outdated qt4 precompiled version for VS (Qt 5 is supported in 64 bit), so the only way is to build by myself.

Download from https://download.qt.io/archive/qt/4.8/4.8.6/

qt-everywhere-opensource-src-4.8.6.tar.gz

Decompress

Open VS 64 bit command tool in software installation tools

Enter the Qt directory

configure -platform win32-msvc2010 -opensource -fast -qt-style-windowsxp -qt-style-windowsvista -no-qt3support -qt-sql-odbc -no-phonon -no-phonon-backend -no-script -no-scripttools -no-multimedia -nomake examples -nomake demos
nmake
nmake install

The compilation takes up to hours

Last Article Next article

Comment 评论



Share 分享

New Users 最新加入

  • hokurikustr

  • refrain

New comments 最新评论

test123: aasdas Details Apr 13 16:39
admin: Thanks! Details Apr 09 11:46
admin: Google map api Details Apr 09 11:46
lqj12: cooooooooool Details Apr 08 21:34
Yunhan Huang: 这个功能是如何实现的? Details Apr 08 13:23