Here is the most common tutorial I find, and this is where I get stuck on it.
*Installed QtSDK 4.7.3 for Windows. Working on Windows 7 64-bit Professional.
TUTORIAL 1:
URL: doc.qt.nokia.com/qq/qq10-windows-deployment.html
1. Open a command prompt and enter the following:
cd %QTDIR%
configure -static <any other options you need
What I did:
cd C:\QtSDK (there is no C:\Qt)
configure -static
Output:
'configure' is not recognized as an internal or external command, operable program or batch file.
What I did:
Searched the QtSDK directory for 'configure'
Search returned:
C:\QtSDK\Symbian\tools\sbs\win32\mingw\info\config ure.info
C:\QtSDK\Symbian\tools\gcce4\share\doc\symbian-adt-arm-none-symbianelf\html\gdb\Configure-Options.html
C:\QtSDK\Simulator\Qt\mingw\configure.cache
END OF ATTEMPT
I cannot figure out the appropriate place to run this command in.
TUTORIAL 2:
URL: cartan.cas.suffolk.edu/qtdocs/deployment-windows.html
URL: doc.qt.nokia.com/latest/deployment-windows.html
URL: qt.developpez.com/doc/4.7/deployment-windows/
1. Open a command prompt and enter the following:
cd C:\path\to\Qt
configure -static <any other options you need
What I did:
cd C:\QtSDK (there is no C:\Qt)
configure -static
Output:
'configure' is not recognized as an internal or external command, operable program or batch file.
END OF ATTEMPT
TUTORIAL 3:
URL: qtnode.net/wiki?title-Building_static
1. To use static linking, you must first rebuild Qt to enable static linking.
2. To build a static app, use CONFIG += static inside your project (.pro) file.
Opened proejct in Qt Creator.
Double-clicked RPC.pro (my project filename)
Added CONFIG += static.
Saved.
Still received dll error.
3. To build a static lib that uses qt, use CONFIG += staticlib inside your project (.pro) file.
Added CONFIG += staticlib to RPC.pro
Still received dll error.
4. You may have to build the Qt library itself to be able to link Qt statically to your application. Before you compile Qt, when configure, use the -static option to enable static builds:
prompt> configure -static [other configure options]
Still not certain where to run this command.
End of attempt.
Bookmarks