| Issue 552: | When using qt4 with msvc under windows, configuration fails and build fails. | |
| 1 person starred this issue and may be notified of changes. | Back to list |
It seems, qt4 tool does not support windows at all. It also does not correctly work with msvc tool. If I don't understand some details of qt4 tool, please >> operating system: windows XP SP3 >> python version: 2.6 >> waf version (or svn revision): waf-1.5.9 >> observed output and expected output: When configuring, following warning (?) appears for each qt module with its _debug version: Checking for QtCore_debug: "PKG_CONFIG_PATH" is not recognized as an internal or external command, operable program or batch file. When building, qxx task fails with messages like that: could not open src\test\window_1.o >> how to reproduce the problem? Just try to compile qt4 example. I used Visual studio 9.0 express edition with Windows SDK 7.0 >> Workaround qt4 tool should be modified to support win32. Modified qt4.py file attached. Also, msvc should somehow interoperate with qt4 tool, as msvc uses its own exec_command_msvc and qxx tool does not, that's why qxx tasks fail. They point *.o files as input to msvc compiler. For this purpose quick fix is just to modify line 543 in msvc.py for k in'cc cxx winrc cc_link cxx_link static_link'.split(): to for k in'cc cxx winrc cc_link cxx_link static_link qxx'.split(): But I think it's not a best solution. |
|
,
Oct 27, 2009
Could you patch the source code and not the generated files? thanks
Status: Incomplete
|
|
,
Oct 28, 2009
Here are modified source qt4.py and msvc.py - latest version from SVN. I'm not sure that my changes will not break qt4 tool on other platforms (in theory, they should not), but now qt4 works on win32 with msvc. |
|
,
Nov 01, 2009
Nice hack, but there are a few problems with the qt4.py modifications: * they do not take into account the modifications made in trunk some time ago (qt & osx frameworks) * it seems there is no library detection (no failure if the libraries are not installed) - why removing the pkg-config use? * there are leftover "print" statements * there is a new QtUiTools module, which is not present elsewhere The modification to msvc.py requires having the qt4 tool loaded before the msvc tool - this change has been applied though.
Labels: -Type-Other Type-Enhancement
|
|
|
|