Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 6

Qt-interest Archive, June 2005
How to compile Qt 4.0.0 OpenSource/Windows with MinGW?


Message 1 in thread

Hello everyone

I've downloaded qt-win-opensource-desktop-4.0.0.zip and have unzipped it.
Now I've also downloaded and installed full version of MinGW-4.1.0.

Now as per instruction in INSTALL file I'm giving this configure command

c:\qt\4.0.0:>
configure -debug-and-release -shared -no-fast -no-accessibility -stl -qt-sql
-odbc -system-zlib -qt-gif -system-libpng -dsp -qmake -process -rtti -qt-sty
le-windowsxp

It gives me licence agreement. I accept it with 'y' and then configure
script exists creating configure.cache. In short, it doesn't generate
makefile.

How do I complie QT.4.0.0 OpenSource for Windows?
Once compiled, is there any way to integrate with MS VS.NET??

Thanks.
Paresh.



Message 2 in thread

Hello everyone

I've downloaded qt-win-opensource-desktop-4.0.0.zip and have unzipped it.
Now I've also downloaded and installed full version of MinGW-4.1.0.

Now as per instruction in INSTALL file I'm giving this configure command

c:\qt\4.0.0:>
configure -debug-and-release -shared -no-fast -no-accessibility -stl -qt-sql
-odbc -system-zlib -qt-gif -system-libpng -dsp -qmake -process -rtti -qt-sty
le-windowsxp

It gives me licence agreement. I accept it with 'y' and then configure
script exists creating configure.cache. In short, it doesn't generate
makefile.

How do I complie QT.4.0.0 OpenSource for Windows?
Once compiled, is there any way to integrate with MS VS.NET??

Thanks.
Paresh.




Message 3 in thread

Hi,

> Once compiled, is there any way to integrate with MS VS.NET??

The Microsoft and MinGW C++ compilers are not compatible.

--
 [ signature omitted ] 

Message 4 in thread

Following method has worked for me:

1. Download and install
http://prdownloads.sf.net/mingw/MinGW-4.1.0.exe?download

2. Download and unzip this file from trolltech:
    qt-win-opensource-desktop-4.0.0.zip

3. Copy all the files and folder under directory
"qt-win-opensource-desktop-4.0.0" to a folder where you like to perform
installation.
In my case it was C:\Qt\4.0.0\

4. Open command line and cd to that folder e.g. "cd C:\Qt\4.0.0\"

5. Next type in "configure -platform win32-g++"
If you need to configure further, then give the command "configure -help"
and turn on/off appropriate options, else above should just work fine in
pretty much all cases.

5. Hit "y/Y" to accept the License agreement.

6. Once Configure script ends, type in "mingw32-make"
This process took 3.5 hours on my 1.4 GHz Xeon machine so expect that much
time.

7. One last step is to set the PATH environment variable to include
"c:\Qt\4.0.0\bin".

That's it folks!!!!

Special thanks to Huber, George for the pointer "-platform win32-g++".
Thanks.
Paresh Patel.



Message 5 in thread

Paresh Patel wrote:
> Following method has worked for me:

[...]

Dear Everybody!

I'm now trying for about the 10th time to compile qt4 opensource on a 
windows xp sp2 machine with mingw 4.10 (tried with 3.1.x too) but I'm 
getting following error message every time at the same place:

cd tools\moc && c:/MinGW/bin/mingw32-make.exe all
cd: can't cd to toolsmoc
c:\MinGW\bin\mingw32-make.exe[1]: *** [sub-tools\moc-all-ordered] Error 2
c:\MinGW\bin\mingw32-make.exe[1]: Leaving directory `c:/qt4/src'
mingw32-make: *** [sub-src-all-ordered] Error 2

Could someone provide any information about this error? For me it seems 
to be that make doesn't understand the windows like \-s instead of 
replacing them with /-s. Shall I manually overwrite my Makefile or is 
there any less painful solution? :)

Thans in advance

Ferenc Stelcz