Building Ardour on Windows with AI
An unsupported build, a community recipe that had gone stale, and an AI feedback loop with a person checking every step.
A build its own developers don't support
A short-film scoring project needed Ardour, one of the most capable open-source audio workstations, running on Windows. It was also a good test: could AI take on a build this complex?
Ardour's developers build their Windows version on Linux, and they publish no instructions for building it on Windows itself. Their FAQ is direct about it:
"We do not provide assistance with this process and particularly on Windows and macOS this can be challenging and take a long time."
Ardour FAQ, ardour.org
Ardour depends on 89 other libraries, and they all have to be built with the same tools as Ardour itself. The best starting point was a community recipe on Ardour's forum, but it had been written for an earlier pre-release, and some of its steps no longer fit the current code.
A feedback loop, with a person in charge
Turn the recipe into a script
The AI rewrote the forum recipe as one script that installs every dependency and builds Ardour, so each attempt is a single command.
Share one folder
The AI and the person shared a folder. Each run saved its full log there, and revised scripts came back the same way. No copying errors into a chat.
Diagnose from the full log
Errors scroll past fast, and the cause is often far above the last line. With the complete log, each problem could be diagnosed from a single failed run.
Review, then re-run
A person read each revision before running it. Finished steps are skipped, so a retry took minutes instead of a full rebuild.
Six problems on the way
A download that wasn't a download
The script's automatic download of Steinberg's ASIO SDK saved a web page instead of the zip. The fix was a manual download in a browser. The 9.10 update later showed this fix was incomplete (problem 8).
A missing library link
PortAudio's JACK support needs a library that MSYS2 doesn't link by default. Ardour has its own JACK support, so we built PortAudio without it.
Fixes that had already been made
The recipe's patches had since become part of Ardour's own code. Applying them again broke the configuration step. The AI compared them with Ardour's current files, and we dropped them.
A failure caught in advance
The same check showed that the recipe's other patches insert lines at fixed line numbers, which now landed in the wrong place. They would have broken the compile.
A program that wouldn't start
The finished program couldn't find the libraries it was built with. A small launcher now points Windows to them, and a second script copies the 133 it needs next to it.
A false alarm
That script then reported 17 "missing" files that were already in place: it had been checking from the wrong folder. We verified before acting, and fixed the check instead.
Seven more problems, and a better build
Libraries that disappeared
The first 9.10 run stopped in seconds. MSYS2 no longer builds eleven of Ardour's libraries for the MINGW64 environment the scripts used. We switched to UCRT64, MSYS2's recommended default, and the scripts now refuse to run anywhere else.
The first build very likely had no ASIO
Investigating a PortAudio error showed that the 9.8 script unpacked the ASIO SDK into a folder PortAudio doesn't search. PortAudio then built without ASIO, with no error. The script now installs MSYS2's ASIO SDK package, puts it where PortAudio looks, and stops if ASIO is missing.
Video tools Ardour couldn't find
Reading Ardour's source showed that on Windows it ignores video tools on the system path and only looks in one folder named in the Windows registry. A new script copies harvid, ffmpeg and xjadeo there, checks that each one runs, and registers the folder.
A launcher that could start the old version
Sorted as text,
ardour-9.8.284.execomes afterardour-9.10.0.exe, so after the upgrade the launcher would have picked 9.8. The scripts now sort by version number and move the old install aside first.A Windows command with the same name
A check failed with "Invalid syntax" even though the tool was fine: it had run Windows' own
TIMEOUTcommand instead of MSYS2's. Calling MSYS2's by its full path fixed it.Another false alarm
The DLL check reported twelve
api-ms-win-crtfiles as missing. They're part of Windows 10 and 11 itself, so the check now ignores them.Old settings, endless dialog
Ardour kept asking to launch the video server. Settings carried over from 9.8 pointed to a video folder inside the old install, which the upgrade had moved. Unticking one preference and starting a new project fixed it.
The result
Working
- Ardour 9.10 (release) built from source on Windows
- Starts with a double-click on its launcher
- Records through an external audio interface over ASIO (ASIO is also verified at build time)
- The video timeline and video monitor, for scoring to picture
- Three scripts that repeat the whole build, with every fix included
Not yet tested
- Other Windows machines and audio interfaces
- Future Ardour versions
Lessons for any AI-assisted technical work
A recipe is a snapshot
Instructions are correct for the moment they were written. Check every step against the current code before applying it, whether a person or an AI wrote it.
Give AI the full picture
A complete log in a shared folder beat pasting the last few lines into a chat. Better evidence meant right answers the first time.
Make retries cheap
Scripts that skip finished steps turn each attempt into minutes, so it's easy to test a fix instead of guessing.
Verify before acting
Not every warning is real. Our own checking script raised a false alarm, and checking it first avoided an unnecessary "fix".
Package sources change too
A build that worked in September failed in November because libraries had moved between MSYS2 environments. It's not only recipes that go out of date.
Read the source when docs are thin
Where to put the video tools, and why ASIO went missing without an error, were both found by reading the program's own code.
"Success" can hide a missing feature
The first build finished without errors but very likely had no ASIO. If a feature matters, make the script check that it's there.
Run the file you fixed
Once, a corrected script never reached the shared folder and the old one ran again. Checking the file's size before running it caught the mix-up.
If you use Ardour, please consider buying the official ready-made version from ardour.org (from US$1). It funds the people who build it. Our scripts are unofficial; please don't ask Ardour's developers for help with them.
Using AI on complex technical work?
We help organizations get the speed of AI with the checks that keep it safe and reliable.
Let's Talk