KDChart Library Linking Issue
-
I'm having linking issues to the KDChart library. I've followed the INSTALL.txt. I don't know what I'm doing wrong. I'm using KDChart-2.8.0 and Qt5 on Windows.
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../KDAB/KDChart-2.8.0/lib/release -lkdchart
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../KDAB/KDChart-2.8.0/lib/debug -lkdchartd
else:unix:!macx: LIBS += -L$$PWD/../KDAB/KDChart-2.8.0/lib/ -lkdchartINCLUDEPATH +=
$$PWD/../KDAB/KDChart-2.8.0/include
$$PWD/../KDAB/KDChart-2.8.0/include/KDChart
$$PWD/../KDAB/KDChart-2.8.0/include/KDGantt
DEPENDPATH += $$PWD/../KDAB/KDChart-2.8.0/include

-
Hi
What compiler are you using ?
Are you matching 32 vs 64 bit etc ?Did you compile that DLL yourself ?
-
Hi
What compiler are you using ?
Are you matching 32 vs 64 bit etc ?Did you compile that DLL yourself ?
-
Hi,
Did you use the same compiler for KDChart as you are using for Qt ?
Are you sure the architecture is correct ? -
I checked and the library was compiling with a 32 bit compiler while QtCreator was using a 64 bit compiler. I fixed it and now I'm getting another error that I've not seen before.

@Phamy1289 It looks like another lib is missing - the one containing KDGantt (I guess KDChart depends on it).
-
This is all of the library files it gave me, and I've manage to get it built on Centos 7:

@Phamy1289 On CentOS you probably already had the library which is now missing on Windows.
See https://docs.kdab.com/kdchart/latest/namespace_k_d_gantt.html - this is what linker cannot resolve because you do not link against the lib containing these symbols.