根据mfx源码目录下的README.md的文件,windows下mingw编译分四步:
1) autoreconf -i2) ./configure --host=x86_64-w64-mingw32
3) make -j
4) make install DESTDIR=/usr/x86_64-w64-mingw32
在第一步中总出现下面的错误提示:
$ autoreconf -i
autom4te-2.68: need GNU m4 1.4 or later: C:\GnuWin32\bin\m4.exe
aclocal-1.11: /mingw/bin/autom4te-2.68 failed with exit status: 1
autoreconf-2.68: aclocal failed with exit status: 1
查看C:\GnuWin32这个路径并不存在,现在m4.exe放到对应的位置,还是出现同样的错误。打开环境变量发现存在环境变量M4,值为C:\GnuWin32\bin\m4.exe。删除该环境变量再编译成功,问题解决。