visual c++ - How to compile Qt 3.3.6 for use in VC2012? -


i need compile qt 3.3.6 on win 7 pc use in combination msvc2012 c++ compiler (msvs 2012 professional).

the simple reason have qt 3.3.6 license , lot of qt 3.3.6 source code. so, qt upgrade not option. "google" not help...

edited:16/11/10 1:40 pm

i tried compile starting shell via vs2012 (tools/visualstudiocommandprompt) , changing cwd qt directory containing appropriate makefile:

c:\qt\3.3.6>bin\configure.exe -redo -spec win32-msvc2012 license file not found in c:/users/mdew enterprise modules not available.  qmakespec...................win32-msvc maketool....................nmake  [...list of installed programs...]  configuration:     nocrosscompiler     dialogs     iconview     kernel     styles     tools     widgets     workspace     minimal-config     small-config     medium-config     large-config     full-config     release     thread     no-gif     zlib     jpeg     mng     png     bigcodecs     no-tablet debug symbols...............no thread support..............yes  accessibility support.......no big textcodecs..............yes tablet support..............no stl support.................yes additional exports..........no exception support...........yes rtti support................yes opengl support..............no  image formats:     gif support.............no     mng support.............qt     jpeg support............qt     png support.............qt  styles:     windows.................yes     windows xp..............no     motif...................yes     platinum................yes     motifplus...............yes     cde.....................yes     sgi.....................yes  sql drivers:     odbc....................no     mysql...................no     oci.....................no     postgresql..............no     tds.....................no     db2.....................no     sqlite..................no     interbase...............no  sources in..............c:\qt\3.3.6 install prefix..............c:\qt\3.3.6 headers installed to........c:\qt\3.3.6\include libraries installed to......c:\qt\3.3.6\lib plugins installed to........c:\qt\3.3.6\plugins binaries installed to.......c:\qt\3.3.6\bin docs installed to...........c:\qt\3.3.6\doc data installed to...........c:\qt\3.3.6 translations installed to...c:\qt\3.3.6\translations   creating qmake...  microsoft (r) program maintenance utility version 11.00.61030.0 copyright (c) microsoft corporation.  rights reserved.          cd qmake nmake : fatal error u1077: 'cd' : return code '0x1' stop. building qmake failed, return code 2 

so, attempt compile via msvs2012 failed. nmake gets in trouble.

what doing wrong?

thank in advance hint!

br mdew

have tried compile qt 3.3.6 source msvc2015 , i've success.

download qt 3 source https://sourceforge.net/projects/qtwin/files/unofficial%20qtwin/qt-win-3.3.6-6/

you must have qtdir environment variable

set qtdir=<your path qt 3 folder> 

make sure bin folder in path

set path=%qtdir%\bin;%path% 

replace path_max max_path in following files:

src\tools\qdir_win.cpp src\tools\qdir.cpp 

comment or remove

#include <winable.h> 

from

src\kernel\qaccessible_win.cpp 

run

configure.bat --help 

configure.exe , link_includes.exe generated in bin folder.

cd bin configure.exe -no-dsp -v 

if errors saing error c3688: invalid literal suffix 'qtdll_postfix'

delete qtdll_postfix in files:

qmake\generators\win32\borland_bmake.cpp qmake\generators\win32\mingw_make.cpp qmake\generators\win32\msvc_dsp.cpp qmake\generators\win32\msvc_nmake.cpp qmake\generators\win32\msvc_vcproj.cpp 

and change

qstring dllstem = stem + qtdll_postfix; 

to

qstring dllstem = stem; 

in

qmake\generators\win32\winmakefile.cpp 

rerun

configure.exe -no-dsp -v 

it should compile successfully


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -