Do you use qmake from the static Qt build?
Do you use qmake from the static Qt build?
ht1 (16th January 2008)
Yes, indeed, I use QMAKE from static Qt build. Also, I am able to incorporate other static plugins no problem, just not the imageformat static plugins. Taking these plugins out makes the program to compile fine but unable to handle image files (because the plugins were not incorporated). So, I think the compiler is fine and the code is fine. It's either that imageformat plugins have a problem, or I do not declare them right, or they are not in the right folder.
Could you post the command used to link your application (the one where the g++ is invoked with -l options)?
Do you get any other error messages apart from "undefined reference to qt_plugin_instance_xxx"?
ht1 (16th January 2008)
Great, Jacek, you may have figured out what the problem is. I do not know how to link properly using the command line. I've been doing:
1) prompt>qmake -project
2) then manually add the plugin info to the myproject.pro as shown in an earlier post
3) prompt>qmake
4) prompt>make
I guess I have to use -l in step 4?? How?
Thanks again
ht1 (16th January 2008)
Hi Jacek,
The last command I run when I compile is
prompt> make
I don't know if that's what you meant when you asked about the last command?
The last thing the compiler does before giving error message is:
-LC:/Qt/4.3.3/plugins/imageformats/ -lqmng4 -lQtGui -ldgi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws_32
(hopefully I didn't make mistakes copying it down)
Last edited by ht1; 16th January 2008 at 22:37.
ht1 (16th January 2008)
Hi again.
I didn't find the aaa.txt but
the last thing the compiler does before giving error message is:
-LC:/Qt/4.3.3/plugins/imageformats/ -lqmng4 -lQtGui -ldgi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws_32
Jacek, you are asking a very good question about the compiler. The compiler says:
-LC:/Qt/4.3.3/plugins/imageformats/ -lqmng4 -lQtGui -ldgi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws_32
but my working directory is Qt/static, not Qt/4.3.3. Seems like the system is confused about the folder where imageformat flugins are. What does that mean?
I just put the imageformat plugins in the folder that compiler wants. Now the error is:
"cannot find -lqjpeg4"
Last edited by ht1; 16th January 2008 at 22:56.
ht1 (16th January 2008)
Jacek, you are a genius! Thank you so much, your suggestion worked and now everything is perfect!
After two weeks of banging my head against the wall!
Hi all,
How to use and build the jpg plugin on QtCreator?
I got the error = undefined reference to `qt_plugin_instance_qjpeg()'
Bookmarks