[Qgis-developer] Re: VS 2008 link errors for QMetaObkects references
giohappy at gmail.com
Fri Apr 16 19:30:41 EDT 2010
Somewhere I've read that this problem can be related to missing *.moc files.
The ones from the plugin I'm testing get compiled, but now I wonder if I'm
following the corect steps to link things together...
1 - I've set up a project for VS 2008, setting also the CORE_EXPORT and
2 - I've set the various include and lib folders and dependencies.
3 - it compiles everything, but link fails
I'm not expert with build systems, and I wonder wether this process is ok to
build a qgis plugin, or it's necessary to set the project inside the global
qgis build project to make it work. I thought that having the *.lib and the
headers from qgis would have been enough... Am I wrong?
I would appreciate your help. I'm right moving my first steps in the C++
2010/4/16 G. Allegri <giohappy at gmail.com>
> I have a problem while building a c++ plugin with msvc 9 (VS 2008) on
> windows xp.
> during linking I receive various errors referring to QMetaObject references
> *public: static struct QMetaObject const QgisInterface::staticMetaObject"
> (?staticMetaObject at QgisInterface@@2UQMetaObject@@B)*
> I set the following lib folders
> and the dipendencies (first trial was without the complete path for qt):
> I don't understand what the linker needs to resolve that... I see that this
> specific symbol is exported by qgis_gui.dll... and it's there.
> The general configurations are the same as the one generated by cmake for
> the other qgis dlls.
> Has anybody faced this problem?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Qgis-developer