msys2 : yosys Cross-Building for Windows with MXE

Check http://mxe.cc/#requirements and install all missing requirements.

安装 msys2-x86_64-20220904.exe ,需要加装 一些包。

比如

安装  mingw-w64-python-mako    

Package: mingw-w64-x86_64-python-mako

pacman -S mingw-w64-x86_64-python-mako

Package: mingw-w64-x86_64-gdk-pixbuf2

pacman -S mingw-w64-x86_64-gdk-pixbuf2

Package: p7zip

缺失的包 可以 用  bing 在 https://packages.msys2.org/package/p7zip 网站搜索。

autoconf 、automake 、 bison  、 7za(p7zip) 、 unzip 、ruby 、patch 、lzip 、libtoolize 、libtool 、intltoolize(intltool) 、 gperf 、flex

----------------------------

As root (or other user with write access to /usr/local/src):

cd /usr/local/src
git clone https://github.com/mxe/mxe.git
cd mxe

make -j$(nproc) MXE_PLUGIN_DIRS="plugins/tcl.tk" \
MXE_TARGETS="i686-w64-mingw32.static" \
gcc tcl readline

Then as regular user in some directory where you build stuff:

git clone https://github.com/YosysHQ/yosys.git yosys-win32
cd yosys-win32
make config-mxe
make -j$(nproc) mxebin

Open YosysVS.sln with Visual Studio

posted @ 2022-09-28 08:47  大块头  阅读(195)  评论(0编辑  收藏  举报