tfussell / xlnt

:bar_chart: Cross-platform user-friendly xlsx library for C++11+
Other
1.49k stars 418 forks source link

Impossible to include in a Qt project #615

Open 945fc41467 opened 2 years ago

945fc41467 commented 2 years ago

Hello, I have an old project using Qt and xlnt. I reformatted my PC and reinstalled Qt Creator. I redownloaded xlnt, I compiled it using CMake and g++. But I am stuck at the next step.

What should I do know ? There is nothing about it in the doc.

I added

RESOURCES +=

win32:CONFIG(release, debug|release): LIBS += -LC:/Qt/xlnt-debug/source/ -lxlnt
else:win32:CONFIG(debug, debug|release): LIBS += -LC:/Qt/xlnt-debug/source/ -lxlntd
else:unix: LIBS += -LC:/Qt/xlnt-debug/source/ -lxlnt

INCLUDEPATH += C:/Qt/xlnt-debug/source
DEPENDPATH += C:/Qt/xlnt-debug/source

at the end of the *.pro file last time.

Here when I try to compile, I have the followings lines in the debugger :

cannot find -lxlntd
collect2.exe: error: ld returned 1 exit status

Thanks for your help.