2017-02-14 136 views
0

在Mono Linux上使用mkbundle工具嘗試使用新的交叉編譯/鏈接功能時,我遇到了一些問題。 我在Intel x86環境中使用Linux Mint 14.04 32位,我想用64位平臺的mkbundle創建一個靜態二進制文件。 由於我使用的是單聲道參考,4.6.2版在Mono中與mkbundle交叉編譯問題

[email protected] ~ $ mono --version 
Mono JIT compiler version 4.6.2 (Stable 4.6.2.16/ac9e222 Tue Jan 3 11:57:29 UTC 2017) 
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com 
    TLS:   __thread 
    SIGSEGV:  altstack 
    Notifications: epoll 
    Architecture: x86 
    Disabled:  none 
    Misc:   softdebug 
    LLVM:   supported, not enabled. 
    GC:   sgen 

據我需要先有目的地目標文件的文檔,所以我嘗試從服務器獲取它:

[email protected] ~ $ mkbundle --fetch-target 4.6.1-linux-libc2.12-amd64 --target-server https://download.mono-project.com/runtimes/raw/ 
Downloading runtime https://download.mono-project.com/runtimes/raw/4.6.1-linux-libc2.12-amd64 to /home/mc/.mono/targets/4.6.1-linux-libc2.12-amd64/mono 
Failure to download the specified runtime from https://download.mono-project.com/runtimes/raw/4.6.1-linux-libc2.12-amd64 
[email protected] ~ $ 

但是,正如你可以注意到的,無論我嘗試下載的文件是什麼,我都會得到相同的錯誤。

我注意到我的版本沒有文件(4.6.2),所以我不確定這是否可能是問題的根源。

有沒有人請給我任何線索發生什麼事?

非常感謝您提前。

回答

0

萬一有人會需要一個答案: 我在Mono項目接觸的人,似乎有在他們的服務器出了問題,所以他們建議我使用備用服務器:

$ mkbundle --fetch-target 4.6.1-linux-libc2.12-amd64 --target-server https://mono-project.azureedge.net/runtimes/raw/ 
1

對於我來說,我需要添加.zip文件下載的目標:

mkbundle --fetch-target mono-4.8.0-ubuntu-16.04-x86.zip 

以及對--cross選項添加.zip文件。

+1

Thanks @ dominic.e 根據我與Mono合作的人分享的一些電子郵件,看起來這個項目的這一部分還不成熟,所以它需要一些調試和返工。 – Carles