cp Make_cyg_ming.mak current.mak
<div>3.编辑current.mak </div><div>查看PYTHON_VER和PYTHON3_VER是否与自己的python版本匹配,不匹配则修改为自己的python版本。</div><div><br></div><div>注:需要提前安装python2和python3,例如安装目录分别为:D:/python/Python27和D:/python/Python35。</div><div>搜索ifdef PYTHON,在ifdef PYTHON前增加PYTHON=D:/python/Python27</div><div><br></div><div>PYTHON=D:/python/Python27</div><div>ifdef PYTHON</div><div><br></div><div>搜索ifdef PYTHON3,在ifdef PYTHON3前增加PYTHON=D:/python/Python35</div><div><br></div><div>PYTHON=D:/python/Python35 //这句不用,不然编不过,</div><div>ifdef PYTHON3</div>
<div>3.编辑current.mak </div><div>查看PYTHON_VER和PYTHON3_VER是否与自己的python版本匹配,不匹配则修改为自己的python版本。</div><div><br></div><div>注:需要提前安装python2和python3,例如安装目录分别为:D:/python/Python27和D:/python/Python35。</div><div>搜索ifdef PYTHON,在ifdef PYTHON前增加PYTHON=D:/python/Python27</div><div><br></div><div>PYTHON=D:/python/Python27</div><div>ifdef PYTHON</div><div><br></div><div>搜索ifdef PYTHON3,在ifdef PYTHON3前增加PYTHON=D:/python/Python35</div><div><br></div><div>PYTHON=D:/python/Python35 //这句不用,不然编不过,</div><div>ifdef PYTHON3</div>
<div>1.编译:</div><div><br></div><div>mingw32-make.exe -f current.mak</div>
<div>如果有编译失败,重新编译需要增加clean参数:</div><div><br></div><div>mingw32-make.exe -f custom.mak clean</div>