【问题标题】:cross compile git repository with mingw under UbuntuUbuntu下使用mingw交叉编译git仓库
【发布时间】:2015-07-01 11:33:30
【问题描述】:

我有一个可以构建的 git 存储库:

./autogen.sh
./configure
make
sudo make install

现在我想用 mingw32/mingw-w64 交叉编译器为 windows 交叉编译它。

我试过了

export CXX=/usr/bin/x86_64-w64-mingw32-gcc

但这对我不起作用。

我已经配置了 eclipse,我也可以编译 windows 可执行文件,它可以工作,但只能使用平面 c 代码。现在我需要外部库,我也必须为 windows 编译它。

【问题讨论】:

    标签: c eclipse cross-compiling mingw32 mingw-w64


    【解决方案1】:

    如a(n 旧,但大部分正确)page of the MinGW-w64 wiki 中所述(很久以前由您真正写的):

    ./configure --host=x86_64-w64-mingw32

    如果包不需要对 Windows 进行特殊处理,应该可以解决问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-26
      • 1970-01-01
      相关资源
      最近更新 更多