Ubuntu中源碼編譯Virtualbox

來源:互聯網
上載者:User

環境: Ubuntu 12.04 (64 bits), Virtualbox 4.2.8源碼

首先從https://www.virtualbox.org/wiki/Downloads下載Virtualbox原始碼,其官方Wiki上還提供了編譯指導:https://www.virtualbox.org/wiki/Linux%20build%20instructions。總體上按指導上一步步來就行,但實際操作中總還是會碰到問題的,下面總結一下:

1. 指導中提到要建立libXTrap.so的軟連結,但Ubuntu中壓根沒有這個檔案。根據https://forums.virtualbox.org/viewtopic.php?f=10&t=52734,不用去管它。

2. /home/zjin/source/VirtualBox-4.2.8/src/bldprogs/checkUndefined.sh: following symbols not defined in the files
xxx:
__realpath_chk __memcpy_chk __sprintf_chk

根據https://forums.virtualbox.org/viewtopic.php?f=10&t=54337,建立LocalConfig.kmk,內容為

VBOX_JAVA_HOME := /usr/lib/jvm/java-6-openjdkVBOX_WITH_WARNINGS_AS_ERRORS :=VBOX_WITH_TESTCASES :=VBOX_WITH_TESTSUITE := 

3. jni.h: No such file or directory

LocalConfig.kmk中JDK路徑沒設好,確保VBOX_JAVA_HOME路徑下有include/jni.h。

4. 編譯tex檔案時出錯:

! I can't find file `bchr8t'.
<*> ...:=ljfour; mag:=1; nonstopmode; input bchr8t
                                                  
Please type another input file name
! Emergency stop.
<*> ...:=ljfour; mag:=1; nonstopmode; input bchr8t
                                                  
Transcript written on mfput.log.

! I can't find file `bchr8t'.
<*> ...:=ljfour; mag:=1; nonstopmode; input bchr8t
                                                  
Please type another input file name
! Emergency stop.
<*> ...:=ljfour; mag:=1; nonstopmode; input bchr8t

根據http://michail.flouris.net/2010/07/using-the-tkiz-package-in-latex-on-rhel5-centos-fc-and-ubuntu-linux/,

$ sudo apt-get install texlive-fonts-recommended

即可解決。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.