-
Notifications
You must be signed in to change notification settings - Fork 139
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
Readline support for mingw #1155
Comments
Some trial and error here, not so successful so far. |
The best I can come out with is to use dynamic link for libreadline. |
BTW, if your MSYS2 mingw installation has readline included, git main will fail the build. As of now, github action mingw build does not include readline support. It has two issues with the default build as the default build use static link. Solution is to modify termcap and add libtermcap.a in the build.
|
The other simple workaround is to use dynamic link for the dependancies. github action artifact here.
|
For those who want to test readline and static linking version of avrdude git main under Windows (mingw32 version), you can try the binary mentioned here. I did some simple test of the binary (https://github.com/arduino/avrdude-packing/files/9889835/avrdude-main-test-libusb-compat.zip) and it works well. |
I am closing this one as it is a specific problem with the current MSYS2 packaging of readline/termcap. |
Re-open so that this gets attention as it will affect Out of the two issues, missing
|
One potential solution is here. Once #1171 is merged, I will publish snapshot binaries for Linux/Windows/macOS. |
Snapshot release are here: |
Is it possible for you to fix the CMake issue to include The other issue is MSYS2 specific issue. |
@mariusgreuel |
This is what I have, after rebuild libtermcap.a for MinGW.
|
It seems to me the issue has been fixed in github action MSYS2 MinGW. So I will create a PR for review. |
I will close this and create a new issue to adopt the approach of PR #1264 for MinGW. |
FYI only: MSYS2 has fixed the issue with GNU Readline static linking. Still it is better to adopt the approach of PR #1264 for MinGW than to use GNU Readline. |
Build log.
|
I created PR #1148 to add readline for mingw32/64 github action build. Unfortunately it caused problem and had to be reverted.
Looking at the failed build log (https://github.com/avrdudes/avrdude/actions/runs/3308684165/jobs/5461248027), the issue is still the MSYS2 readline/termcap packaging issues mentioned here.
On my local machine I can fix the issue by rebuilding termcap as per the tips from MSYS2 github issue.
I'll see what I can do to correct this issue using github action. I am not good at github action scripts. Hopefully someone more experienced in github action can help as well.
The text was updated successfully, but these errors were encountered: