-
Notifications
You must be signed in to change notification settings - Fork 13
Fix Windows CI (Help Wanted: Cygwin) #106
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
Closed
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| environment: | ||
| SDL2_VERSION: 2.0.9 | ||
| MINGW_SHELL: C:\MinGW\msys\1.0\bin\bash | ||
| CYG_ARCH: x86_64 | ||
| CYG_ROOT: C:/cygwin64 | ||
|
|
||
| matrix: | ||
| - MACEMU_PROJECT: BasiliskII | ||
| MACEMU_OS: Unix | ||
| - MACEMU_PROJECT: SheepShaver | ||
| MACEMU_OS: Windows | ||
|
|
||
|
|
||
| build: off | ||
|
|
||
| install: | ||
| - set PATH=C:\cygwin64\bin;%PATH% | ||
| - '%CYG_ROOT%\setup-%CYG_ARCH%.exe -qnNdO -R %CYG_ROOT% | ||
| -l %CYG_ROOT%/var/cache/setup | ||
| -P autoconf | ||
| -P automake | ||
| -P bison | ||
| -P curl | ||
| -P gcc-core | ||
| -P gcc-g++ | ||
| -P gettext | ||
| -P gettext-devel | ||
| -P git | ||
| -P intltool | ||
| -P libgmp-devel | ||
| -P libiconv | ||
| -P libncurses-devel | ||
| -P libreadline-devel | ||
| -P libtool | ||
| -P make | ||
| -P mingw-binutils | ||
| -P mingw-gcc-core | ||
| -P mingw-gcc-g++ | ||
| -P mingw-pthreads | ||
| -P mingw-runtime | ||
| -P mingw-w32api | ||
| -P pkg-config | ||
| -P wget' | ||
| - IF NOT EXIST %APPVEYOR_BUILD_FOLDER%\SDL2-%SDL2_VERSION%.zip appveyor DownloadFile http://libsdl.org/release/SDL2-%SDL2_VERSION%.zip | ||
| - unzip -o SDL2-%SDL2_VERSION%.zip | ||
| - ren SDL2-%SDL2_VERSION% my_SDL2 | ||
| - '%MINGW_SHELL% -c "export PATH=.:/usr/local/bin:/mingw/bin:/bin:$PATH && cd my_SDL2 && ./autogen.sh && ./configure --disable-shared && make && make install"' | ||
|
|
||
|
|
||
| test_script: | ||
| - ps: $ProgressPreference = "SilentlyContinue" | ||
| - 'echo %MACEMU_PROJECT%' | ||
| - 'cd %MACEMU_PROJECT%' | ||
| - ps: ($env:MACEMU_PROJECT -eq "SheepShaver") -and $(make links) | ||
| - 'cd src/%MACEMU_OS%' | ||
| - '%MINGW_SHELL% -c "export PATH=.:/usr/local/bin:/mingw/bin:/bin:$PATH && NO_CONFIGURE=1 ./autogen.sh && ./configure && make"' | ||
|
|
||
|
|
||
| # on_finish: | ||
| # - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) | ||
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This bit here fails because there is no
autogen.shinsrc/Windows. I tested it out by removingautogen.shand replacing it withautoconf, which results in this:https://ci.appveyor.com/project/davewongillies/macemu/builds/25887698
Here's my current
appveyor.ymlThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... it should be building out of src/unix (see the matrix env vars above), as per these instructions kanjitalk755/macemu#14 (comment)
I think there is indeed an
autogen.shin that directory. However, I will definitely run into that issue on the SheepShaver/Windows combination.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, so I just straight up copied the autogen.sh from the Unix directories. Looks like there's something funky with
configure.acwith BasiliskII:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And SheepShaver has other errors: https://ci.appveyor.com/project/davewongillies/macemu/builds/25888060/job/huo5il5fbp40aiof
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So looking through this guide is looks like there's some steps there that aren't part of the default build process for Windows that possibly should get merged into here (I don't know how up to date that guide is though)?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is an old project with many guides still available online that have long since fallen out of date or relevance. @kanjitalk755 is the most active current maintainer, and that's where the guide I had followed came from.
... and I see now that I'm mistaken in using the unix build, it was just using the unix
autogen.sh! Must have been a late night.As far as the "syntax error near unexpected token" / "AM_*" error you're getting, is
autoreconfgetting run either directly or as part of any of the scripts you're running (it was in cxmon'sboostrap.sh)? Supposedly that will fix those errors.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh interesting. OK, so going off of those instructions, it looks like its building out of
src/Windowsbut callingautogen.shfromsrc/Unix:I've updated the build to do that an am getting further now:
https://ci.appveyor.com/project/davewongillies/macemu/build/job/qsp8gaylngd63o7b
It's failing to find some build deps, which is promising
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've switched back to building SDL in the test job instead of Cygwin's version and am now getting further in the build process: https://ci.appveyor.com/project/davewongillies/macemu/build/job/2985rhps1c0ve624
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm at bit of a loss here to what to do to get things pushed forward. I've tried quite a few things. I think (this is just a gut instinct) that the build environment should probably get changed from Cygwin to MinGW or MSYS2, but I don't really know either of those well enough.
Two errors that I hit on with both MSYS2 and Cygwin was:
or if I could force things past that point, compilation errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These links are all redirecting to the latest build, so I opened #109 to more easily track the progress.