Thoughts on building Qt and QtCreator on Windows using MinGW
I've been playing around with various methods of building Qt and QtCreator on Windows using MinGW but I'm not really satisfied with the results, yet.
My main issue is with the way configure.exe sets up qmake to prefix $(INSTALL_ROOT) with the drive letter, and suffix it with the build directory. I've tried setting the -prefix flag to various directories like "\.", "/.", ".", "/", and "\" when running configure.exe, and it achieves the desired result in the makefiles, but the builds end up failing.
Does anybody have any advice on configuring Qt builds so that I can install them to any directory using "mingw32-make install"?
Cheers,
~ andy.f
Re: Thoughts on building Qt and QtCreator on Windows using MinGW
I figured out a workaround. I set INSTALL_ROOT before calling mingw32-make, then I copy the directory created to any directory I choose, then I re-run configure.exe with the -dont-process flag in the directory I chose (making sure the other configure.exe flags are the same as when I built Qt).
This gives me a fully functional installed version of Qt for development with the extra bonus of having all the Qt headers point back to the original source directory.
Re-running configure.exe in the installed/copied directory is the best way to go imho.
Cheers,
~ andy.f
Re: Thoughts on building Qt and QtCreator on Windows using MinGW
hey Andy.
I'm trying to compile QTcreator with mingw,
when finish, if I run my Qtcreator ia have the next msg:
'there is not
found entry point to procedure _Z17qt_message_output9QtMsgTypePKc at
QTCore4.dll'
Must I to recompile also QT with mingw?
I would be grateful if you tell us how you has get it
Thanks
Re: Thoughts on building Qt and QtCreator on Windows using MinGW
There are many things that can go wrong when compiling QtCreator (especially on Windows), so I'm not sure exactly what issues you're having. My best guess is it sounds like the QtCore4.dll QtCreator is trying to use at runtime is not compatible with the QtCore4 library being used at link-time, but I'm not sure. Maybe there is an older version of QtCore4.dll on your PATH?
Cheers,
~ andy.f