mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #124] Guide: How to build under Qt-Creator / Windows (MinGW) #104
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#104
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @petricf on GitHub (Sep 4, 2017).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/124
Originally assigned to: @jmcnamara on GitHub.
Qt-Creator (http://qt.io) is a multi-platform/-compiler IDE. Platform here: Windows 7
Under Windows (if you want to avoid MS VisualStudio) you can use the MingGW compiler bundled with it. mingw32_make.exe is also included.
This guide is to build libxlsxwriter w/o installing MSYS (how i did it). Reason: Minimize packages to be installed and use the MinGW-compiler bundled with Qt-Creator.
3.a. Unpack contents bin directory from binary files to C:/Qt/Tools/zlib/lib/*
5.a. Menu "Extras" -> Settings
5.b. Select "Build and Execution"
5.c. Select Tab "CMake" and define the Location of cmake.exe (from Step 1)
5.d. Select Tab "Kits" and choose the Kit (here: Desktop Qt 5.9.0 MinGW 5.3.0)
5.e. In the lines appearing below labeled "CMake-Tool" select the CMake defined in 5.c.
5.e. At the last line labeled "CMake-Configuration" push the button "Change"
5.f. In the dialog box appearing then add the lines (path value given at Step 3):
One problem i have currently is that it only creates a static library but no shared library (aka *.dll).
In a project using libxlsxwriter the qmake *.pro file requires two lines:
The zlib used to build xlsxwriter above is no more required - Qt comes with a own version but misses zlib.lib required for linking libxlsxwriter.
Hope that helps.
@jmcnamara commented on GitHub (Sep 5, 2017):
Thanks. Those are useful instructions. When I get a chance I'll try it out and maybe add it to the docs.
It would probably be useful would be if you uploaded a sample QT project to Github.
@petricf commented on GitHub (Sep 22, 2017):
Attached a sample Qt GUI application designed like the minimal test in your package.
Simply open the *.pro file inside the Qt-Creator IDE (downloaded/installed from http://qt.io).
The *.pro file contains the reference to the includes and libs created in the steps above. I copied them to C:\Qt\Tools\xlsxwriter\include and C:\Qt\Tools\xlsxwriter\libs.
Hope it helps. Sorry i am currently not good in using git.
xlsxwriter-test.zip
@petricf commented on GitHub (Sep 22, 2017):
Oh, i forgot - sure this is an application simply using the C-interface of libxlsxwriter directly.
Currently i am designing Qt classes inspired by https://github.com/Alexhuszagh/libxlsxwriterpp.
@jmcnamara commented on GitHub (Sep 23, 2017):
Thanks for the contribution. I'm sure someone will find it useful.
@petricf commented on GitHub (Jan 21, 2020):
Released a new guide at Issue #270