PDA

View Full Version : Windows 7 Deployment



mlheese
10th November 2010, 21:21
We compiled Qt for Static build and have created an application that runs perfectly under Windows XP Pro. However, when I put the exe on a Windows 7 machine, it displays a "Runtime Error" saying the app must terminate.

We use Qt with Visual Studio 2008 C++ to compile/develop with. I tried both a Debug and a Release version of the same app and neither worked.

Then, I tried copying Qt DLL's into the same folder as the EXE and still nothing worked.

We've tried setting admin privileges and just about everything else we could think of on that PC to get this app to run. We even installed the VC90_DebugCRT msi files and the redistribution files for VS2008. Still, nothing worked.

A partial copy of our PRO is below minus the Source\Header\Forms entries.

Any help anyone could provide us would be much appreciated. I've tried most everything I have found on this forum and still nothing has even changed anything.

PRO File:

TEMPLATE = app
LANGUAGE = C++
CONFIG += qt warn_on thread debug_and_release build_all
QT += network xml
CONFIG += embed_manifest_exe
CONFIG -= flat

win32 {
QMAKE_CXXFLAGS += -wd4005 -wd4114 -wd4091 -wd4996 -wd4290
DEFINES += _BIND_TO_CURRENT_VCLIBS_VERSION
#Disable warnings
QMAKE_CXXFLAGS += -wd4005 -wd4114 -wd4091 -wd4996 -wd4290
QMAKE_CXXFLAGS += /EHsc
}

QMAKE_CXXFLAGS += /MT
TARGET = SILTestAppR
OBJECTS_DIR = release
MOC_DIR = release
RCC_DIR = release
UI_DIR = release
QMAKE_CXXFLAGS += /MP /GL

LIBS += C:/"Program Files"/"Microsoft SDKs"/Windows/v6.0A/Lib/SetupAPI.Lib
LIBS += C:/"Program Files"/"Microsoft SDKs"/Windows/v6.0A/Lib/Ws2_32.Lib
LIBS += C:/"Program Files"/"Microsoft SDKs"/Windows/v6.0A/Lib/IPHlpApi.Lib

HERE IS A DUMP OF OUR COMMAND LINES FROM VISUAL STUDIO:

C++ compiler Command Line:

/O2 /GL /I "..\..\Qt\qt-4.6.2-static\include\QtCore" /I "..\..\Qt\qt-4.6.2-static\include\QtNetwork" /I "..\..\Qt\qt-4.6.2-static\include\QtGui" /I "..\..\Qt\qt-4.6.2-static\include\QtXml" /I "..\..\Qt\qt-4.6.2-static\include" /I "Code\Common\SubscriberInterfaceLibrary\include" /I "..\..\Qt\qt-4.6.2-static\include\ActiveQt" /I "release" /I "..\..\Qt\qt-4.6.2-static\mkspecs\win32-msvc2008" /D "QT_NO_DEBUG" /D "NDEBUG" /D "_WINDOWS" /D "UNICODE" /D "WIN32" /D "QT_LARGEFILE_SUPPORT" /D "_BIND_TO_CURRENT_VCLIBS_VERSION" /D "QT_THREAD_SUPPORT" /D "QT_XML_LIB" /D "QT_GUI_LIB" /D "QT_NETWORK_LIB" /D "QT_CORE_LIB" /D "QT_NO_DYNAMIC_CAST" /FD /EHsc /MT /GS- /Zc:wchar_t- /Fo"release\\" /Fd".\\" /W3 /nologo /c /TP /wd4005 /wd4114 /wd4091 /wd4996 /wd4290 /errorReport:prompt


Linker Command Line:

/OUT:"release\SILTestAppR.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"c:\Qt\qt-4.6.2-static\lib" /MANIFEST /MANIFESTFILE:"release\\SILTestAppR.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /SUBSYSTEM:WINDOWS /DYNAMICBASE /NXCOMPAT /ERRORREPORT:PROMPT c:\Qt\qt-4.6.2-static\lib\qtmain.lib "C:/Program Files/Microsoft SDKs/Windows/v6.0A/Lib/SetupAPI.Lib" "C:/Program Files/Microsoft SDKs/Windows/v6.0A/Lib/Ws2_32.Lib" "C:/Program Files/Microsoft SDKs/Windows/v6.0A/Lib/IPHlpApi.Lib" c:\Qt\qt-4.6.2-static\lib\QtXml.lib c:\Qt\qt-4.6.2-static\lib\QtGui.lib c:\Qt\qt-4.6.2-static\lib\QtNetwork.lib c:\Qt\qt-4.6.2-static\lib\QtCore.lib kernel32.lib user32.lib shell32.lib uuid.lib ole32.lib advapi32.lib ws2_32.lib gdi32.lib comdlg32.lib oleaut32.lib imm32.lib winmm.lib winspool.lib msimg32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib