小编Abd*_*ADI的帖子

将基于gnulib的项目交叉编译到MinGW

我正在尝试将此项目交叉编译为MinGW.

该项目使用autotools作为构建系统,并依赖于libcurl,CUnit,Jansson和一些gnulib模块.

我已经编译x86_64-w64-mingw32并安装了所有依赖项/home/user/mingw64

我跑:

$ gnulib-tool --update
$ autoreconf -fi
$ CURL_CFLAGS="-I/home/user/mingw64/usr/local/include" \
CURL_LIBS="-L/home/user/mingw64/usr/local/lib -lcurl" \
JANSSON_CFLAGS="-I/home/user/mingw64/usr/local/include" \
JANSSON_LIBS="-L/home/user/mingw64/usr/local/lib -ljansson" \
CUNIT_CFLAGS="-I/home/user/mingw64/usr/local/include" \
CUNIT_LIBS="-L/home/user/mingw64/usr/local/lib -lcunit" \
./configure --host=x86_64-w64-mingw32
$ make
Run Code Online (Sandbox Code Playgroud)

我收到这个错误:

make  all-recursive
make[1]: Entering directory '/home/user/projects/shill'
Making all in po
make[2]: Entering directory '/home/user/projects/shill/po'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/user/projects/shill/po'
Making all in lib
make[2]: Entering directory '/home/user/projects/shill/lib'
make[2]: *** No rule to …
Run Code Online (Sandbox Code Playgroud)

c autotools cross-compiling gnulib

7
推荐指数
1
解决办法
606
查看次数

标签 统计

autotools ×1

c ×1

cross-compiling ×1

gnulib ×1