Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sfinktah cygwin readme #85

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sfinktah
Copy link

Added instructions for compiling under cygwin.

Any chance of a pre-compiled wheel for Windows?

@mwilliamson
Copy link
Owner

If I remember correctly, jq doesn't compile on native Windows. Presumably a Windows wheel that used cygwin to compile jq would end up dragging in cygwin as well?

@sfinktah
Copy link
Author

sfinktah commented Feb 15, 2023

If I remember correctly, jq doesn't compile on native Windows. Presumably a Windows wheel that used cygwin to compile jq would end up dragging in cygwin as well?

Firstly, I shouldn't have even connected cygwin and windows... jq compiles wonderfully under cygwin, works great, and you should approve the PR to the readme, just so others can use it.

I would advocate for a cygwin wheel, but I have since read your comments about the short falling of the CI environment as they pertain to windows, so that would rely on cross-compiling a cygwin binary from linux -- which is not impossible https://askubuntu.com/questions/110534/how-can-i-use-cygwin-under-ubuntu/1291347#1291347 -- but yeah... effort.

As to the dreaded question of a Windows wheel (and I apologise for not research before mentioning it), I did attempt to build a Windows wheel via cygwin and mingw, and it looked like it was going to work, but ended with:

*** Warning: This system cannot link to static lib archive /cygdrive/e/git/jq.py/_deps/build/onig-install-6.9.4/lib/libonig.la.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

That might be solved by some more liberal applications of -static -static-libgcc to various Makefiles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants