I'm writing a plugin for Lightwave3D which uses Qt for GUI instead of the LW native GUI. However I get this when I start LW:
msg.jpg
I'm writing a plugin for Lightwave3D which uses Qt for GUI instead of the LW native GUI. However I get this when I start LW:
msg.jpg
Most likely you have taken an incorrect version of Qt libraries (the ones for QtCreator instead of those for your apps) when deploying the plugin.
I don't use QtCreator. I copied the Qt dlls: QtCore4.dll, QtGui4.dll, and QtOpenGL4.dll from Qt bins to the plugin directory. However when I compile as Debug, and use the debug dll versions I get another error complaining about the MSVCP100d.dll not found...This file does not even look installed in my system.
My platform is Windows 7, VS 2008, and Qt 4.8.1 SDK.
you should take it as a hint that copy/pasting dlls all over the shop isn't the correct thing to do![]()
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
Nothing Qt code related as I'm not using it. just trying to get the plugin loaded properly first. I could upload the project but first I need a confirmation that someone who willing to test it has access to Lightwave 3D 9.6. Otherwise it's useless. The code I have is only LW SDK plugin initialization, nothing more.
Correct when the DLLs are installed in the proper system directoryyou should take it as a hint that copy/pasting dlls all over the shop isn't the correct thing to do
As I mentioned not much details. The problem is very clear, a third party application loading a dll that depends on Qt dlls is failing to load. Clearly something has to do with Qt DLLs. I will try statically link to the Qt libs instead.Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
That's my sig you are responding to, but thanks for reading![]()
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
LoL, sorry! I did not see that.
Anyway I hope it's something I can solve on my end, cause working with LW GUI is a pain...![]()
Copied from C:\Qt\4.8.1\bin
This is the Microsoft Visual C 10 runtime debug version. It will be installed on any machine that has a recent enough Windows SDK/Visual Studio of some sort installed (I don't know if that is VS 2008 or 2010) as a SxS assembly and also redist file. If you are deploying your release application then you can use the redist package to ensure the release version of the runtime is present. You are not permitted to redistribute the debug library IIRC.I get another error complaining about the MSVCP100d.dll not found...This file does not even look installed in my system.
I could fix the problem, using a release build only, and a dialog based Qt application rather than a frame window. The plugin loads fine until I create the dialog instance, it crashes. I cannot debug the plugin since I cannot use a Debug version.
More details:
extern "C" void plugin_starter(...)
{
//Qt-main-code copied here
// Instantiate dialog class, CRASH!
}
Finally this worked! I have the dialog shows within the main program and no problem. After I added a tabbed widget to the dialog, the plugin fails to load again. And I got this message:
msg2.jpg
I have the correct DLLs QtCore4.dll, QtGui4.dll QtOpenGL4.dll version 4.8.2 and all copied from Qt\4.8.2\bin\
Any idea?
Any suggestions?
I'm suspecting it's a problem with Qt build itself since the module is aware of the dependency DLL, QtGui4.dll, but it cannot link to the function, which means a different signature/name mangling...
Should I build Qt from the source?
Can I link to static version of Qt libs?
do you have qt built with the same compiler as your app?
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
I installed the binary version 4.8.2 for the same compiler VS 2008.
Bookmarks