graphviz linking to qt

hi...
i've been tried too link graphviz to qt for 3 days but i dont know why it does not work...here my .pro file

QT += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = QGraphViz
TEMPLATE = app
#Configure GraphViz path here :
GRAPHVIZ_PATH = D:/Graphviz2.38
#GraphViz librairie
DEFINES += WIN32_DLL
DEFINES += GVDLL
DEFINES += WITH_CGRAPH
INCLUDEPATH += $$GRAPHVIZ_PATH/include/graphviz
LIBS += -L$$GRAPHVIZ_PATH/lib/release/lib -lgvc -lcgraph -lgraph -lcdt

SOURCES += main.cpp\
MainWindow.cpp \
QGVScene.cpp \
QGraphicsViewEc.cpp \
QGVNode.cpp \
QGVEdge.cpp \
QGVSubGraph.cpp \
QGVCore.cpp

HEADERS += MainWindow.h \
QGVScene.h \
QGraphicsViewEc.h \
QGVNode.h \
QGVEdge.h \
QGVSubGraph.h \
QGVCore.h
FORMS += MainWindow.ui

RESOURCES += \
ress.qrc

error massege is:

QGVScene.obj:-1: error: LNK2019: unresolved external symbol agset referenced in function "public: void __cdecl QGVScene::setRootNode(class QGVNode *)" (?setRootNode@QGVScene@@QEAAXPEAVQGVNode@@@Z)

what's wrong in this .pro file

I'm not a Qt expert, but the

I'm not a Qt expert, but the first thing is to remove -lgraph from the LIBS. The graph library was replaced with the cgraph library. If there are still problems, you might check the .pro file in cmd/gvedit. The gvedit program uses Qt.

not working

i did it but it still does not work

The next thing to try is to

The next thing to try is to check the final link, to make sure that the cgraph library is being linked in, and do an nm on libcgraph to verify that the name agset is there.

Here's what I use: TOP     =

Here's what I use:

TOP     = $${PWD}/../..
DOT     = $${TOP}/graphviz

LIBS += -L$${DOT}/lib -lgvc -lcgraph -lcdt -lgvplugin_core -lgvplugin_dot_layout

 

ttnx for reply

tnx for your reply i did it but it still does not work..i have alot of program but they all don't work either...

Recent comments