2013-05-07 95 views
2

我一直在尋找跨平臺的GUI應用程序開發框架(用於構建Linux,Android,Windows應用程序和OS X的相同代碼),我發現Qt是最好的(靈感來自VLC媒體播放器是用Qt構建的)。Qt示例名爲Boxes在Ubuntu上工作但不在Windows上(Qt 5.0.2)

首先在Ubuntu中安裝它我在構建示例時遇到了一些問題,但是我設法解決了這個問題,並且Qt中給出的每個示例都工作正常。

但是在Windows中,除了「Boxes」示例以外,每個示例都在工作。 enter image description here

問題:

warning: Qt was built with ANGLE, which provides only OpenGL ES 2.0 on top of DirectX 9.0c 
error: This example requires Qt to be configured with -opengl desktop 

安裝的Qt 5.0.2適用於Windows 32位(VS 2010,OpenGL中,476 MB)後

error: Qt Creator needs a compiler set up to build. Configure a compiler in the kit options. 

所以,我檢查了構建&運行選項,它顯示 enter image description here

+0

您應該向Qt項目提交錯誤報告。 – rubenvb 2013-05-07 09:16:11

回答

1

問題解決後:

  1. 微軟的Visual Studio 2010
  2. 的Qt 5.0.2適用於Windows 32位(VS 2010,OpenGL中,476 MB)

但是,Qt的單獨運行程序的形式當我打開編譯EXE文件它的工作原理顯示Qt5***.dll缺失。

解決缺少DLL:

打開編譯Dependency Walkerexe,它會顯示所有缺少DLL。現在去 \Qt\Qt5.0.2\5.0.2\msvc2010_opengl\bin 那裏我們可以找到所有的Qt5 ***。dll複製它,並在exe位置過去。

2

您需要使用opengl桌面選項構建qt。

http://qt-project.org/downloads

Qt 5.0.2 for Windows 32-bit (VS 2010, OpenGL, 476 MB)

http://download.qt-project.org/official_releases/qt/5.0/5.0.2/qt-windows-opensource-5.0.2-msvc2010_32_opengl-x86-offline.exe.mirrorlist

安裝此QT釋放你的例子後,安裝應工作

+0

正如你所說我安裝了Qt 5.0.2的Windows 32位(VS 2010,OpenGL,476 MB),現在我得到了 ':-1:錯誤:Qt Creator需要一個編譯器設置爲構建。在工具包選項中配置一個編譯器 – bkmagnetron 2013-05-07 15:34:56