[GH-ISSUE #112] Compilation failed #92

Closed
opened 2026-05-05 11:38:50 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @Tikani on GitHub (Jul 20, 2017).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/112

Originally assigned to: @jmcnamara on GitHub.

I'm trying to build this library under Windows as DLL (i want to write a Delphi/ObjectPascal wrapper over it for my project) using the latest available MinGW-x64 (i686 flavor) from the official site, but encountered an error.

Output:

PS D:\libxlsxwriter> mingw32-make.exe
mingw32-make[1]: Entering directory 'D:/libxlsxwriter/third_party/minizip'
process_begin: CreateProcess(NULL, uname, ...) failed.
mingw32-make[1]:
ioapi.c:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default]
 /* ioapi.h -- IO base function header for compress/uncompress .zip
 ^
zip.c:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default]
 /* zip.c -- IO on .zip files using zlib
 ^
mingw32-make[1]: Leaving directory 'D:/libxlsxwriter/third_party/minizip'
mingw32-make[1]: Entering directory 'D:/libxlsxwriter/third_party/tmpfileplus'
process_begin: CreateProcess(NULL, uname, ...) failed.
mingw32-make[1]:
tmpfileplus.c:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default]
 /* $Id: tmpfileplus.c $ */
 ^
mingw32-make[1]: Leaving directory 'D:/libxlsxwriter/third_party/tmpfileplus'
mingw32-make[1]: Entering directory 'D:/libxlsxwriter/src'
process_begin: CreateProcess(NULL, uname, ...) failed.
mingw32-make[1]:
In file included from ../include/xlsxwriter/third_party/zip.h:59:0,
                 from ../include/xlsxwriter/packager.h:13,
                 from packager.c:11:
../include/xlsxwriter/third_party/ioapi.h:106:23: warning: ISO C90 does not support 'long long' [-Wlong-long]
 typedef unsigned long long int ZPOS64_T;
                       ^
In file included from ../include/xlsxwriter/third_party/zip.h:59:0,
                 from ../include/xlsxwriter/packager.h:13,
                 from workbook.c:13:
../include/xlsxwriter/third_party/ioapi.h:106:23: warning: ISO C90 does not support 'long long' [-Wlong-long]
 typedef unsigned long long int ZPOS64_T;
                       ^
packager.c:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default]
 /*****************************************************************************
 ^
In file included from ../include/xlsxwriter/third_party/zip.h:59:0,
                 from ../include/xlsxwriter/packager.h:13,
                 from packager.c:11:
../include/xlsxwriter/third_party/ioapi.h:106:23: warning: ISO C90 does not support 'long long' [-Wlong-long]
 typedef unsigned long long int ZPOS64_T;
                       ^
hash_table.c:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default]
 /*****************************************************************************
 ^
...
drawing.c:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default]
 /*****************************************************************************
 ^
process_begin: CreateProcess(NULL, cp libxlsxwriter.a libxlsxwriter.so ../lib, ...) failed.
make (e=2): Не удается найти указанный файл.
mingw32-make[1]: *** [all] Error 2
mingw32-make[1]: Leaving directory 'D:/libxlsxwriter/src'
Makefile:20: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
Originally created by @Tikani on GitHub (Jul 20, 2017). Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/112 Originally assigned to: @jmcnamara on GitHub. I'm trying to build this library under Windows as DLL (i want to write a Delphi/ObjectPascal wrapper over it for my project) using the latest available MinGW-x64 (i686 flavor) from the official site, but encountered an error. Output: ``` PS D:\libxlsxwriter> mingw32-make.exe mingw32-make[1]: Entering directory 'D:/libxlsxwriter/third_party/minizip' process_begin: CreateProcess(NULL, uname, ...) failed. mingw32-make[1]: ioapi.c:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default] /* ioapi.h -- IO base function header for compress/uncompress .zip ^ zip.c:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default] /* zip.c -- IO on .zip files using zlib ^ mingw32-make[1]: Leaving directory 'D:/libxlsxwriter/third_party/minizip' mingw32-make[1]: Entering directory 'D:/libxlsxwriter/third_party/tmpfileplus' process_begin: CreateProcess(NULL, uname, ...) failed. mingw32-make[1]: tmpfileplus.c:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default] /* $Id: tmpfileplus.c $ */ ^ mingw32-make[1]: Leaving directory 'D:/libxlsxwriter/third_party/tmpfileplus' mingw32-make[1]: Entering directory 'D:/libxlsxwriter/src' process_begin: CreateProcess(NULL, uname, ...) failed. mingw32-make[1]: In file included from ../include/xlsxwriter/third_party/zip.h:59:0, from ../include/xlsxwriter/packager.h:13, from packager.c:11: ../include/xlsxwriter/third_party/ioapi.h:106:23: warning: ISO C90 does not support 'long long' [-Wlong-long] typedef unsigned long long int ZPOS64_T; ^ In file included from ../include/xlsxwriter/third_party/zip.h:59:0, from ../include/xlsxwriter/packager.h:13, from workbook.c:13: ../include/xlsxwriter/third_party/ioapi.h:106:23: warning: ISO C90 does not support 'long long' [-Wlong-long] typedef unsigned long long int ZPOS64_T; ^ packager.c:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default] /***************************************************************************** ^ In file included from ../include/xlsxwriter/third_party/zip.h:59:0, from ../include/xlsxwriter/packager.h:13, from packager.c:11: ../include/xlsxwriter/third_party/ioapi.h:106:23: warning: ISO C90 does not support 'long long' [-Wlong-long] typedef unsigned long long int ZPOS64_T; ^ hash_table.c:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default] /***************************************************************************** ^ ... drawing.c:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default] /***************************************************************************** ^ process_begin: CreateProcess(NULL, cp libxlsxwriter.a libxlsxwriter.so ../lib, ...) failed. make (e=2): Не удается найти указанный файл. mingw32-make[1]: *** [all] Error 2 mingw32-make[1]: Leaving directory 'D:/libxlsxwriter/src' Makefile:20: recipe for target 'all' failed mingw32-make: *** [all] Error 2 ```
gitea-mirror 2026-05-05 11:38:50 -06:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@jmcnamara commented on GitHub (Jul 20, 2017):

Try the installation instructions form the docs: Installation on Windows using Mingw-w64 and MSYS2.

The fPIC issue should be fixed by the Makefile for the various Ming variants but maybe something is missing for the 32bit version.

Anyway, try the instructions above from scratch and let me know.

<!-- gh-comment-id:316772007 --> @jmcnamara commented on GitHub (Jul 20, 2017): Try the installation instructions form the docs: [Installation on Windows using Mingw-w64 and MSYS2](https://libxlsxwriter.github.io/getting_started.html#gsg_ming). The `fPIC` issue should be fixed by the Makefile for the various Ming variants but maybe something is missing for the 32bit version. Anyway, try the instructions above from scratch and let me know.
Author
Owner

@Tikani commented on GitHub (Jul 20, 2017):

Thanks a lot, DLL was successfully built within MSYS2 shell. May I suggest an ObjectPascal wrapper over this library in a pull request? Maybe it will increase a userbase of it (under Windows, at least :D). If you don't change API signatures from release to release, I think it is really good idea.

<!-- gh-comment-id:316836007 --> @Tikani commented on GitHub (Jul 20, 2017): Thanks a lot, DLL was successfully built within MSYS2 shell. May I suggest an ObjectPascal wrapper over this library in a pull request? Maybe it will increase a userbase of it (under Windows, at least :D). If you don't change API signatures from release to release, I think it is really good idea.
Author
Owner

@jmcnamara commented on GitHub (Jul 24, 2017):

I suggest an ObjectPascal wrapper over this library in a pull request?

It would probably be better to host that in a separate GitHub repo.

There are already some wrappers for Ruby, Go, Python, C++ and some other languages: https://github.com/search?q=topic%3Alibxlsxwriter&type=Repositories

Let me know if you create one.

Thanks,

John

<!-- gh-comment-id:317463247 --> @jmcnamara commented on GitHub (Jul 24, 2017): > I suggest an ObjectPascal wrapper over this library in a pull request? It would probably be better to host that in a separate GitHub repo. There are already some wrappers for Ruby, Go, Python, C++ and some other languages: https://github.com/search?q=topic%3Alibxlsxwriter&type=Repositories Let me know if you create one. Thanks, John
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/libxlsxwriter#92
No description provided.