Closed Jumes closed 10 years ago
Did you try to copy the header/source files in your project folder? From the error it seems it's missing. I recommend compiling the library to a dll, it's quite straightforward and will save you from the hassle of including the source every time you want to create a new project.
Tell me if you need any help.
Yes, I use the source code directly.Then I add "include(../xlsx/qtxlsx.pri)" to *.pro file.But I don't know how to make the "xlsxdocument.h" appears in header files searching path not include "../xlsx/xlsxdocument.h".
are you using QtCreator?
If yes go to your .pro file and add the line:
INCLUDEPATH += C:/Qt/Qt5.2.1/Tools/mingw48_32/include
but replace the path with the path in your computer where the header files are located.
Did you run "qmake" before compiling?
Hi, you can add following line to your project's .pro file, then run qmake to see what happened.
message($$INCLUDEPATH)
And there is no need to call make install.
I followed he document "Usage(2): Use source code directly", but the code below has compile error. The qt creator cannot find file "xlsxdocument.h".
include "xlsxdocument.h"