Trouble linking glew32.lib to QML plugin
I am trying to create a QML plugin that links against glew32.lib because I would like to use some GLSL shaders. I am using MSVS 2010 express and have one project for generating the pluging DLL and another project that imports the QML files and runs the declarative engine. I have made a simple subclass of QDeclarativeItem, called Triangle, that simple draws a triangle in QML.
Originally, I had this working using the fixed-function OpenGL pipeline. So the basic setup seems to be fine. But, when I add the shader code and linked against glew32 I get the following error,
qrc:///app.qml:2:1: plugin cannot be loaded for module "Example": Cannot load library C:/Users/jdowner/Documents/Visual Studio 2010/Projects/QmlPrototype/plugins/Example/qmlplugin.dll:
I am a little confused by this. I don't really know if this specifically QML related or just not knowing my way around windows DLLs. I thought that I was statically linking glew32 to the plugin DLL, but tried linking it against the executable project to see if it needed to be made aware of the symbols (didn't work). Hoping someone here has tried something similar and can tell me whether I am attempting something I shouldn't do with a plugin or QML or whether this is totally doable and I just making a mistake somewhere in my configuration.
Any suggestions appreciated.
Is the glew32.lib a static library or a DLL import library? Because if it is a DLL import library, you will have to make sure that glew32.dll is in the PATH of your system or next to your executable file/DLL.
[quote author="rcari" date="1349684262"]Is the glew32.lib a static library or a DLL import library? Because if it is a DLL import library, you will have to make sure that glew32.dll is in the PATH of your system or next to your executable file/DLL.[/quote]
I am linking glew32.lib statically.