Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
4.6.2
-
None
-
Windows XP SP 2
Description
I want to build a shadowed version of Qt to work with MS Visual Studio 2008 for Windows Mobile 6.5. The qt makespec for that is wincewm65professional-msvc2008. First I run configure from another directory:
C:\Qt\4.6\qt\configure -platform win32-msvc2008 -xplatform wincewm65professional-msvc2008 -nomake demos -nomake examples -release
After qmake is built, I get an error:
############################################################################
Microsoft (R) Incremental Linker Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.
copy qmake.exe C:\Qt\4.6-WinMo6.5\qt\bin\qmake.exe
1 file(s) copied.
Creating makefiles in src...
Generating Visual Studio project files...
Could not find mkspecs for your QMAKESPEC(wincewm65professional-msvc2008) after
trying:
C:/qt-greenhouse/Trolltech/Code_less_create_more/Trolltech/Code_less_cre
ate_more/Troll/4.6/qt\mkspecs
Error processing project file: C:/Qt/4.6/qt/projects.pro
Qmake failed, return code 3
Generating Makefiles...
Could not find mkspecs for your QMAKESPEC(wincewm65professional-msvc2008) after
trying:
C:/qt-greenhouse/Trolltech/Code_less_create_more/Trolltech/Code_less_cre
ate_more/Troll/4.6/qt\mkspecs
Error processing project file: C:/Qt/4.6/qt/projects.pro
Qmake failed, return code 3
############################################################################
As you can see, it's looking for them in a specific hard-coded directory. This was supposedly fixed, but came back, I guess. I think the problem lies in qt/src/corelib/global/qtconfig.cpp.
The current solution I think is to either create the desired directory, or to modify qconfig.cpp with actual paths.
EDIT: Solution was found in http://www.qtforum.org/post/93618/how-to-deploy-a-static-app-in-qt-4-5.html#post93618, by creating symlinks to the real files in the trolltech directory using junction. However, I think qtconfig.cpp can be edited too but when I tried, it led to more problems.