我在我的ubuntu 12.04上構建android源代碼,我更新到最新版本的ubuntu和android(repo sync)。 之後,我試圖建立Android源代碼(乾淨的構建)。我得到了下面的生成錯誤在ubuntu上構建android源代碼時出現錯誤12.04
> host SharedLib: libOpenglRender
> (out/host/linux-x86/obj/lib/libOpenglRender.so) host Prebuilt:
> eventanalyzer
> (out/host/linux-x86/obj/EXECUTABLES/eventanalyzer_intermediates/eventanalyzer)
> Install: out/host/linux-x86/bin/exc_dump Install:
> out/host/linux-x86/bin/fastboot Install:
> out/host/linux-x86/bin/fs_config Install:
> out/host/linux-x86/bin/fs_get_stats Install:
> out/host/linux-x86/bin/genext2fs Install:
> out/host/linux-x86/bin/gpttool host Prebuilt: hierarchyviewer
> (out/host/linux-x86/obj/EXECUTABLES/hierarchyviewer_intermediates/hierarchyviewer)
> /usr/bin/ld: cannot find -lX11 collect2: ld returned 1 exit status
> make: *** [out/host/linux-x86/obj/lib/libOpenglRender.so] Error 1
> make: *** Waiting for unfinished jobs....
我發現在互聯網上的解決方案..