Hi !
first off... sorry for my poor english...
I had spent many hours trying to get libqxt widgets on qt creator (on Windows Mingw).
As you know for archieve that you usually only need to compile qt creator with mingw... but... the last qt 4.7.1 package has a bug... http://bugreports.qt.nokia.com/browse/QTBUG-15744 ... and can not be used to build Qt Creator.
there are a lot of tutorials to build qt and qt creator on windows-mingw... but some of them are incomplete or erronous...
so... i want to help others to avoid my frustration....
follow these steps carefully
1)
you need this specific version of mingw
http://get.qt.nokia.com/misc/MinGW-gcc440_1.zip
just unzip it ... (c:\mingw)
2)
we are going to activate openssl on qt... so... you need openssl. (maybe you prefer to skip this step)
http://www.slproweb.com/products/Win32OpenSSL.html
http://www.slproweb.com/download/Win...SSL-1_0_0c.exe
just only need to install the binary pack
(in this example on c:\OpenSSL-Win32)
3)
download qt source
http://qt.nokia.com/downloads
http://get.qt.nokia.com/qt/source/qt...-src-4.7.1.zip
unzip it
(in this example qt root is on C:\Qt\qt-everywhere-opensource-src-4.7.1\)
4)
open a console as Administrator
set PATH=C:\MinGW\bin;%SystemRoot%\System32
configure qt with openssl:
configure -platform win32-g++ -debug-and-release -opensource -developer-build -shared -qt-sql-sqlite -plugin-sql-sqlite -qt-sql-odbc -plugin-sql-odbc -no-qt3support -no-opengl -no-phonon -no-phonon-backend -nomake examples -nomake demos -webkit -script -declarative -qt-libtiff -openssl -I C:\OpenSSL-Win32\include -L c:\OpenSSL-Win32\lib\MinGW
(maybe you want to remove openssl ... or you want other options... just write "configure -?" to see a detailed explanation of what options ara avaliable)
then:
mingw32-make
(this takes more than 4 hours in a modern computer... patience)
close that console
5)
now download qt creator sources
http://qt.nokia.com/downloads/qt-creator-source-package
unzip it
(in this example on C:\qt-creator-2.0.1-src)
open a new console as administator (IMPORTANT!)
set QTDIR=C:\Qt\qt-everywhere-opensource-src-4.7.1
set PATH=C:\Qt\qt-everywhere-opensource-src-4.7.1\bin;C:\Qt\qt-everywhere-opensource-src-4.7.1\lib;C:\MinGW\bin;%SystemRoot%\System32
set QMAKESPEC=win32-g++
create a new folder
(in this example C:\qt-creator-2.0.1-build)
go to C:\qt-creator-2.0.1-build
qmake.exe C:\qt-creator-2.0.1-src\qtcreator.pro -spec win32-g++ -r CONFIG+=release
mingw32-make release
(this take more than an hour to complete)
close that console
6)
add this to PATH system enviroment variable
C:\Qt\qt-everywhere-opensource-src-4.7.1\bin;C:\Qt\qt-everywhere-opensource-src-4.7.1\lib;C:\MinGW\bin;
now you can launch C:\qt-creator-2.0.1-build\bin\qtcreator.exe and it should work fine.
CLOSE qtcreator
7)
download libqxt
http://dev.libqxt.org/libqxt/downloads
and unzip it
(in this example on c:\libqxt)
open a console as administrator
set QTDIR=C:\Qt\qt-everywhere-opensource-src-4.7.1
set PATH=C:\Qt\qt-everywhere-opensource-src-4.7.1\bin;C:\Qt\qt-everywhere-opensource-src-4.7.1\lib;C:\MinGW\bin;%SystemRoot%\System32
set QMAKESPEC=win32-g++
go to c:\libqxt
configure -debug_and_release -no-db -I C:\OpenSSL-Win32\include -L C:\OpenSSL-Win32\lib -l libeay32 -l ssleay32
mingw32-make
mingw32-make install
now you can open qtcreator or qtdesigner... and you can see libqxt plugins !
I hope this help.
I'm not an expert... so.. if you want to improve this guide...
Bookmarks