Hi all
Working on Qt 4.3.4 on windows using Microsoft Visual Studio 5? I am using dynamic version of Qt, Now i want to build it statically, Pls explain me the steps to build Qt Statically.
Hi all
Working on Qt 4.3.4 on windows using Microsoft Visual Studio 5? I am using dynamic version of Qt, Now i want to build it statically, Pls explain me the steps to build Qt Statically.
Always Believe in Urself![]()
Merry
Are you referring to the tool released somewhere in the mid 90's? Or did you mean Visual Studio 2005? Have you tried searching the forums? This question has been asked quite many times...
J-P Nurmi
I mean Visual Studio 2005, yaa i tried searching and i got the answer.....and also implemented....can u pls tell me , how much time taken for building Qt static.
Always Believe in Urself![]()
Merry
After deploying Static Qt4.3.4, I tried to compile my application in release mode using static Qt...i got some fatal errors:
why i got these errors and what to do?NMAKE : fatal error U1077: ' "C:\Program Files\Microsoft Visual Studio 8\VC\BIN\LINK.EXE"' : return code '0x460'
Stop
NMAKE : fatal error U1077: ' "C:\Program Files\Microsoft Visual Studio 8\VC|BIN\Nmake.exe"' : return code '0x2'
Stop
Last edited by merry; 19th July 2008 at 06:03. Reason: missing [code] tags
Always Believe in Urself![]()
Merry
What is the first error message?
J-P Nurmi
first error:
error LNK2019 : unresolved external symbol "class QObject * __cdec1 qt_plugin_instance_qjpeg<void>" <?qt_plugin_instance_qjpeg@@YAPAVQObject@@XZ> referenced in function "public:__thiscall Static qjpegPluginInstance::staticqjpegPluginInstance::St aticqjpegPluginInstance<void>"<??0StaticqgifPlugin Istance@@QAE@XZ>
error LNK2019 : unresolved external symbol "class QObject * __cdec1 qt_plugin_instance_qgif<void>" <?qt_plugin_instance_qgif@@YAPAVQObject@@XZ> referenced in function "public:__thiscall Static qgifPluginInstance::staticqgifPluginInstance::Stat icqgifPluginInstance<void>"<??0StaticqgifPluginIst ance@@QAE@XZ>
error LNK2019 : unresolved external symbol "class QObject * __cdec1 qt_plugin_instance_qtiff<void>" <?qt_plugin_instance_qtiff@@YAPAVQObject@@XZ> referenced in function "public:__thiscall Static qtiffPluginInstance::staticqgifPluginInstance::Sta ticqtiffPluginInstance<void>"<??0StaticqtiffPlugin Istance@@QAE@XZ>
Always Believe in Urself![]()
Merry
You forgot to link to your staitc plugins: http://doc.trolltech.com/4.3/plugins...static-plugins
Hi,
do onething,
try to install qt using cmd.
./configure -static -qt-gif -qt-jpeg
NMAKE
NOTE:Check the error . it will tell you to use that particular qt library instead of normal library.
enjoy
regards
Biswajit
You forgot to link to your staitc plugins
No I wont forgot to link to my static plugins
in .pro file I added
QTPLUGIN +=qjpeg qgif qtiff
in main.cpp I define all plugins:;
Q_IMPORT_PLUGIN(qjpeg)
Q_IMPORT_PLUGIN(qgif)
Q_IMPORT_PLUGIN(qtiff)
Always Believe in Urself![]()
Merry
Thanks 4 replies
Ok i ll try to install qt using cmd and let u know
Always Believe in Urself![]()
Merry
Then you forgot to rerun qmake or something like this. You definitely don't link against static qjpeg plugin - otherwise you won't get those linker errors!
now i added
in the plugin.pro file , then it doesnt return the previous error but generates some other linking errorconfig += static
but with the same it generates the manifest file and exe of my application and exe also runs fine.LINK : fatal error LNK1104: cannot open file 'c:\Qt\Qt4.3.4l\lib\QtGuid.lib'
NMAKE : fatal error U1077: ' "C:\Program Files\Microsoft Visual Studio 8\VC\BIN\LINK.EXE"' : return code '0x450'
Stop
NMAKE : fatal error U1077: ' "C:\Program Files\Microsoft Visual Studio 8\VC|BIN\Nmake.exe"' : return code '0x2'
Stop
Always Believe in Urself![]()
Merry
Bookmarks