Comments (4)
hey,
if i recall correctly you need to copy the header files found in "src". If you are using QtCreator use INCLUDEPATH += path/to/header/files
in your .pro file. Otherwise copy the headers in "src" to the include path your compiler is instructed to search into.
Are you using linux?
from qtxlsxwriter.
I build it in Qt Creator 3.1.1 and Qt 5.2.1
then I into the release directory and make install
seems everything is done, but when i back to the ide and change the .pro file
QT += xlsx
but i also can not include Qtxlsx
below is the output when i do "make install"
AbeltekiMacBook-Pro:build-qtxlsx-Desktop_Qt_5_3_0_clang_64bit-Release abellee$ make install
cd src/ && ( test -e Makefile || /Users/abellee/Qt/5.3/clang_64/bin/qmake /Users/abellee/Downloads/QtXlsxWriter-master/src/src.pro -spec macx-clang CONFIG+=x86_64 -o Makefile ) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile install
cd xlsx/ && ( test -e Makefile || /Users/abellee/Qt/5.3/clang_64/bin/qmake /Users/abellee/Downloads/QtXlsxWriter-master/src/xlsx/xlsx.pro -spec macx-clang CONFIG+=x86_64 -o Makefile ) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile install
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.Release install
cp -f "../../lib/QtXlsx.framework/Versions/0/QtXlsx" "/Users/abellee/Qt/5.3/clang_64/lib/QtXlsx.framework/Versions/0/QtXlsx"
rm -f "/Users/abellee/Qt/5.3/clang_64/lib/QtXlsx.framework/Versions/Current"
cp -f -R ../../lib/QtXlsx.framework/Versions/Current "/Users/abellee/Qt/5.3/clang_64/lib/QtXlsx.framework/Versions/Current"
rm -f "/Users/abellee/Qt/5.3/clang_64/lib/QtXlsx.framework/QtXlsx"
cp -f -R ../../lib/QtXlsx.framework/QtXlsx "/Users/abellee/Qt/5.3/clang_64/lib/QtXlsx.framework/QtXlsx"
rm -f "/Users/abellee/Qt/5.3/clang_64/lib/QtXlsx.framework/Contents/Info.plist"
cp -f -R ../../lib/QtXlsx.framework/Contents/Info.plist "/Users/abellee/Qt/5.3/clang_64/lib/QtXlsx.framework/Contents/Info.plist"
rm -f "/Users/abellee/Qt/5.3/clang_64/lib/QtXlsx.framework/Headers"
cp -f -R ../../lib/QtXlsx.framework/Headers "/Users/abellee/Qt/5.3/clang_64/lib/QtXlsx.framework/Headers"
rm -f "/Users/abellee/Qt/5.3/clang_64/lib/QtXlsx.framework/Versions/0/Headers/QtXlsxDepends"
cp -f -R ../../lib/QtXlsx.framework/Versions/0/Headers/QtXlsxDepends "/Users/abellee/Qt/5.3/clang_64/lib/QtXlsx.framework/Versions/0/Headers/QtXlsxDepends"
sed -e s,/Users/abellee/Downloads/build-qtxlsx-Desktop_Qt_5_3_0_clang_64bit-Release/include,/Users/abellee/Qt/5.3/clang_64/include,g -e s,/Users/abellee/Downloads/build-qtxlsx-Desktop_Qt_5_3_0_clang_64bit-Release/lib,/Users/abellee/Qt/5.3/clang_64/lib,g "../../lib/QtXlsx.framework/QtXlsx.prl" >"/Users/abellee/Qt/5.3/clang_64/lib/QtXlsx.framework/QtXlsx.prl"
sed -e s,/Users/abellee/Downloads/build-qtxlsx-Desktop_Qt_5_3_0_clang_64bit-Release/include,/Users/abellee/Qt/5.3/clang_64/include,g -e s,/Users/abellee/Downloads/build-qtxlsx-Desktop_Qt_5_3_0_clang_64bit-Release/lib,/Users/abellee/Qt/5.3/clang_64/lib,g "../../lib/QtXlsx.la" >"/Users/abellee/Qt/5.3/clang_64/lib/QtXlsx.la"
sed -e s,/Users/abellee/Downloads/build-qtxlsx-Desktop_Qt_5_3_0_clang_64bit-Release/include,/Users/abellee/Qt/5.3/clang_64/include,g -e s,/Users/abellee/Downloads/build-qtxlsx-Desktop_Qt_5_3_0_clang_64bit-Release/lib,/Users/abellee/Qt/5.3/clang_64/lib,g "../../lib/pkgconfig/Qt0Xlsx.pc" >"/Users/abellee/Qt/5.3/clang_64/lib/pkgconfig/Qt0Xlsx.pc"
cp -f /Users/abellee/Downloads/build-qtxlsx-Desktop_Qt_5_3_0_clang_64bit-Release/mkspecs/modules-inst/qt_lib_xlsx.pri /Users/abellee/Qt/5.3/clang_64/mkspecs/modules/
cp -f /Users/abellee/Downloads/build-qtxlsx-Desktop_Qt_5_3_0_clang_64bit-Release/mkspecs/modules-inst/qt_lib_xlsx_private.pri /Users/abellee/Qt/5.3/clang_64/mkspecs/modules/
cp -f /Users/abellee/Downloads/build-qtxlsx-Desktop_Qt_5_3_0_clang_64bit-Release/lib/cmake/Qt5Xlsx/Qt5XlsxConfig.cmake /Users/abellee/Qt/5.3/clang_64/lib/cmake/Qt5Xlsx/
cp -f /Users/abellee/Downloads/build-qtxlsx-Desktop_Qt_5_3_0_clang_64bit-Release/lib/cmake/Qt5Xlsx/Qt5XlsxConfigVersion.cmake /Users/abellee/Qt/5.3/clang_64/lib/cmake/Qt5Xlsx/
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.Debug install
cp -f "../../lib/QtXlsx.framework/Versions/0/QtXlsx_debug" "/Users/abellee/Qt/5.3/clang_64/lib/QtXlsx.framework/Versions/0/QtXlsx_debug"
rm -f "/Users/abellee/Qt/5.3/clang_64/lib/QtXlsx.framework/Versions/Current"
cp -f -R ../../lib/QtXlsx.framework/Versions/Current "/Users/abellee/Qt/5.3/clang_64/lib/QtXlsx.framework/Versions/Current"
rm -f "/Users/abellee/Qt/5.3/clang_64/lib/QtXlsx.framework/QtXlsx_debug"
cp -f -R ../../lib/QtXlsx.framework/QtXlsx_debug "/Users/abellee/Qt/5.3/clang_64/lib/QtXlsx.framework/QtXlsx_debug"
rm -f "/Users/abellee/Qt/5.3/clang_64/lib/QtXlsx.framework/Contents/Info.plist"
cp -f -R ../../lib/QtXlsx.framework/Contents/Info.plist "/Users/abellee/Qt/5.3/clang_64/lib/QtXlsx.framework/Contents/Info.plist"
sed -e s,/Users/abellee/Downloads/build-qtxlsx-Desktop_Qt_5_3_0_clang_64bit-Release/include,/Users/abellee/Qt/5.3/clang_64/include,g -e s,/Users/abellee/Downloads/build-qtxlsx-Desktop_Qt_5_3_0_clang_64bit-Release/lib,/Users/abellee/Qt/5.3/clang_64/lib,g "../../lib/QtXlsx.framework/QtXlsx_debug.prl" >"/Users/abellee/Qt/5.3/clang_64/lib/QtXlsx.framework/QtXlsx_debug.prl"
sed -e s,/Users/abellee/Downloads/build-qtxlsx-Desktop_Qt_5_3_0_clang_64bit-Release/include,/Users/abellee/Qt/5.3/clang_64/include,g -e s,/Users/abellee/Downloads/build-qtxlsx-Desktop_Qt_5_3_0_clang_64bit-Release/lib,/Users/abellee/Qt/5.3/clang_64/lib,g "../../lib/QtXlsx_debug.la" >"/Users/abellee/Qt/5.3/clang_64/lib/QtXlsx_debug.la"
sed -e s,/Users/abellee/Downloads/build-qtxlsx-Desktop_Qt_5_3_0_clang_64bit-Release/include,/Users/abellee/Qt/5.3/clang_64/include,g -e s,/Users/abellee/Downloads/build-qtxlsx-Desktop_Qt_5_3_0_clang_64bit-Release/lib,/Users/abellee/Qt/5.3/clang_64/lib,g "../../lib/pkgconfig/Qt0Xlsx.pc" >"/Users/abellee/Qt/5.3/clang_64/lib/pkgconfig/Qt0Xlsx.pc"
cp -f /Users/abellee/Downloads/build-qtxlsx-Desktop_Qt_5_3_0_clang_64bit-Release/mkspecs/modules-inst/qt_lib_xlsx.pri /Users/abellee/Qt/5.3/clang_64/mkspecs/modules/
cp -f /Users/abellee/Downloads/build-qtxlsx-Desktop_Qt_5_3_0_clang_64bit-Release/mkspecs/modules-inst/qt_lib_xlsx_private.pri /Users/abellee/Qt/5.3/clang_64/mkspecs/modules/
cp -f /Users/abellee/Downloads/build-qtxlsx-Desktop_Qt_5_3_0_clang_64bit-Release/lib/cmake/Qt5Xlsx/Qt5XlsxConfig.cmake /Users/abellee/Qt/5.3/clang_64/lib/cmake/Qt5Xlsx/
cp -f /Users/abellee/Downloads/build-qtxlsx-Desktop_Qt_5_3_0_clang_64bit-Release/lib/cmake/Qt5Xlsx/Qt5XlsxConfigVersion.cmake /Users/abellee/Qt/5.3/clang_64/lib/cmake/Qt5Xlsx/
anything i do wrong?
from qtxlsxwriter.
I open the .pro file and right click in it, choose the "add lib" -> "add system lib",
then choose the Qt/5.3/clang_64/lib/QtXlsx.framework
but only i can include QtXlsxDepends.
it almost make me crazy!
from qtxlsxwriter.
Bravo!
I have successfully done!
first I create a folder on my desktop, then
git clone https://github.com/dbzhang800/QtXlsxWriter
after finish cloning, cd to the QtXlsxWriter folder, and
qmake
sudo make install
before u do qmake
, u'd better sure that the qmake is in the PATH,
my qmake is:
/Users/{your user name}/Qt/5.3/clang_64/bin:$PATH
then open a new Terminal window to make sure that take effect with.
now if everything is ok,
open the .pro file and
QT += xlsx
open the mainwindow.h, and
#include <xlsxdocument.h>
then you could try it with input
QXlsx::Document xlsx;
in any file of your project.
Hope these can help anyone else, really make me crazy these days!
from qtxlsxwriter.
Related Issues (20)
- How to write data in batches HOT 1
- 如何设置纸张方向的横向和纵向? HOT 1
- how to use CellRange with import and export together
- Save to pdf
- examples Chart::CT_Line
- How to setup Qtxlsxwriter
- Very good
- Building QtXlsxWriter with Qt using android kit HOT 1
- How to delete row or column
- Ask for a new release (0.3.1) with the LICENSE file HOT 4
- Unable to determine byte order HOT 2
- mingw32-make error HOT 1
- Save with protection On and password
- How put the color in chart with Xlsx
- Build in mingw32
- 这个库有一些bug
- why Workbook::copySheet always returns false ?
- 使用库后,VS报已在****.exe 中执行断点指令(__debugbreak()语句或类似调用)。
- 如何冻结sheet的前几行?
- Error when delete sheet
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qtxlsxwriter.