Giter VIP home page Giter VIP logo

Comments (4)

JohnGreek avatar JohnGreek commented on May 18, 2024

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.

abellee avatar abellee commented on May 18, 2024

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.

abellee avatar abellee commented on May 18, 2024

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.

abellee avatar abellee commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.