Adding plugin to project
Closed this issue · 2 comments
Deleted user commented
Hello.
I'm trying to add this plugin to my own project in following way:
- modified pro file:
DEPENDPATH += \
$$PWD/../OGDF
QML_IMPORT_PATH += \
$$PWD/..
- OGDF folder added to project directory with built libs (on linux / win32) and copied qmldir from your src folder:
OGDF$ ls
libogdfplugin.so ogdfplugin.dll qmldir - in main qml file :
import OGDF 1.0
- The odgf component are unknown for qt creator on linux and it is not possible to run the plugin.
- Windows can't find the fonts in /lib/fonts, so i added them from qt source.
- The output is still the same : qrc:/qml/main.qml:15:1: module "OGDF" is not installed
Deleted user commented
Ok, I just simply fixed it by compiling both Debug/Release versions separately in visual studio and i have copied it into my source folder
Problem was successfully solved by copying whole /ODGF folder using install rules:
OGDF.path = $${DESTDIR}/OGDF
OGDF.files += imports/OGDF/EdgeSpline.qml \
imports/OGDF/GraphView.qml \
imports/OGDF/qmldir
win32: {
CONFIG(debug, debug|release):{
OGDF.files += imports/OGDF/ogdfplugind.dll
}
else{
OGDF.files += imports/OGDF/ogdfplugin.dll
}
}
unix: {
OGDF.files += imports/OGDF/ogdfplugin.so
}
OGDF folder content:
EdgeSpline.qml libogdfplugin.so ogdfplugin.exp ogdfplugind.dll
GraphView.qml ogdfplugin.dll ogdfplugin.lib qmldir
schulzch commented
Great to hear you could fix your problems.