在macOS上为运行linux的armv7l编译

时间:2018-02-02 16:59:06

标签: linux macos cross-compiling armv7

我想在我的macbook上为我的路由器构建https://github.com/relan/exfat

# uname -a
Linux RT-N18U 2.6.36.4brcmarm #1 PREEMPT Fri Jan 12 18:35:32 CST 2018 armv7l GNU/Linux

我找到了以下具有相应障碍的解决方案

  1. https://github.com/tpoechtrager/osxcross - 如何设定目标?
  2. https://github.com/multiarch/crossbuild - 如何构建autoconf项目?
  3. 在第二个解决方案期间,我收到以下错误

    $ docker run --rm -v ~/workspace/exfat/:/workdir -e CROSS_TRIPLE=armv7l multiarch/crossbuild autoreconf --install
    configure.ac:32: installing './ar-lib'
    configure.ac:29: installing './compile'
    configure.ac:28: installing './install-sh'
    configure.ac:28: installing './missing'
    dump/Makefile.am: installing './depcomp'
    $ docker run --rm -v ~/workspace/exfat/:/workdir -e CROSS_TRIPLE=armv7l multiarch/crossbuild ./configure
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    ...
    ...
    checking for special C compiler options needed for large files... no
    checking for _FILE_OFFSET_BITS value needed for large files... 64
    ./configure: line 4080: syntax error near unexpected token `FUSE,'
    ./configure: line 4080: `PKG_CHECK_MODULES(FUSE, fuse)'
    

0 个答案:

没有答案