-
Notifications
You must be signed in to change notification settings - Fork 428
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
New Windows build instructions? #242
Comments
I just started with a fresh install of MSYS2. pacboy is just a wrapper that avoids having to specify i686, x86_64, etc. architectures. flashrom then seemed to run with no problems on my system. |
@mightymos Oh, that's lovely! I suppose it still requires manually copying the DLLs if you intend to use the program outside of MSYS2, though – is that correct? |
I think you'd need: |
Yep, alright, so step #7 is still relevant. |
For the record, this is one way to build the current snapshot on Windows (using MSys2 MinGW64 shell):
I'm only using flashrom with the CH341A, hence the settings. Adjust to your needs as you see fit. |
try SNANDer? |
I recently spent about a full day trying to build Flashrom on Windows! I initially attempted to follow the instructions on the wiki, but they work neither for the latest stable release (1.2) nor the latest commit (ff4c624) – instead yielding errors like
Checking for libpci headers... not found.
andChecking for libusb-1.0 headers... not found.
. The instructions allude to using MSYS2 rather than the ancient version of MinGW recommended, but doesn't specify instructions on how.Eventually, I managed to build Flashrom 1.2 via MSYS2 by doing the following:
pacman -Syu
to update packages.pacman -S binutils
.wget https://raw.githubusercontent.com/msys2/MINGW-packages/master/mingw-w64-flashrom/PKGBUILD
.makepkg-mingw -sCLf
.libusb-1.0.dll
,libftdi1.dll
, andlibwinpthread-1.dll
from/mingw64/bin
into the build directorypkg/mingw-w64-x86_64-flashrom/mingw64/bin/flashrom.exe
and deletelibflashrom-1.dll
.pkg/mingw-w64-x86_64-flashrom/mingw64/bin/
now containsflashrom.exe
and everything needed to run it on Windows.This was a bit of an involved process, and I'm not sure manually copying DLLs is the best way to do things, so I wouldn't be comfortable saying these are the build instructions to recommend, but… either way, I think Flashrom needs new build instructions for Windows!
The text was updated successfully, but these errors were encountered: