小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

make編譯報(bào)錯(cuò),安裝對(duì)應(yīng)依賴

 印度阿三17 2019-10-28

安卓的make報(bào)錯(cuò)集合,與對(duì)應(yīng)解決方案

  1. usr/include/c std…
    sudo apt-get install gcc-multilib g ±m(xù)ultilib

  2. externals/qemu/distrib/sdl-1.2.12/include/SDL_syswm.h:55:22: fatal error: X11/Xlib.h:
    sudo apt-get install libx11-dev

  3. externals/qemu/distrib/sdl-1.2.12/src/video/x11/SDL_x11video.h:50:33: fatal error: X11/extensions/dpms.h: 沒有那個(gè)文件或目錄
    $ sudo apt-get install libasound2-dev -

  4. externals/opengl/emulator/host/libs/Translator/GLcommon/…/include/EGL/eglinternalplatform.h:54:20: fatal error: GL/glx.h: 沒有那個(gè)文
    sudo apt-get install libgl1-mesa-dev

  5. /usr/bin/ld: 找不到 -lX11

sudo apt-get install libgl1-mesa-dev:i386
export LD_LIBRARY_PATH=/usr/local/lib/

sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
sudo ln -s /usr/lib/i386-linux-gnu/libX11.so.6 /usr/lib/i386-linux-gnu/libX11.so
6. /usr/bin/ld: 找不到 -lz
sudo apt-get install zlib1g-dev
ln -fs /lib64/libz.so.1.2.3 /usr/lib64/libz.so ??

other: 6(1) /usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt] Error 1
解決方法: sudo apt-get install zlib1g-dev sudo apt-get install lib64z1-dev

  1. externals/qemu/audio/paaudio.c:5:26: fatal error: pulse/simple.h: 沒有那個(gè)文件或目錄
    compilation terminated.
    sudo apt-get install libpulse-dev

  2. collect2: ld returned 1 exit status
    make: *** [out/host/linux-x86/obj/EXECUTABLES/zipalign_intermediates/zipalign] Error 1
    sudo aptitude install lib32z-dev

  3. File “development/cpktool/cpktool”, line 21, in
    import lxml
    ImportError: No module named lxml

sudo pip install lxml

  1. x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -I/tmp/pip-install-wWaika/M2Crypto/SWIG -c SWIG/_m2crypto_wrap.c -o build/temp.linux-x86_64-2.7/SWIG/_m2crypto_wrap.o -Wno-deprecated-declarations -DTHREADING
    SWIG/_m2crypto_wrap.c:3561:25: fatal error: openssl/err.h: 沒有那個(gè)文件或目錄
    compilation terminated.
    error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1

  2. pip install M2Crytyp FAILED

  3. apt-file find openssl/err.h
    libssl-dev: /usr/include/openssl/err.h
    libwolfssl-dev: /usr/include/cyassl/openssl/err.h
    libwolfssl-dev: /usr/include/wolfssl/openssl/err.h

  4. sudo apt-get install libssl-dev

  5. File “development/cpktool/cpktool”, line 24, in
    import M2Crypto
    ImportError: No module named M2Crypto

    sudo pip install M2Crypto

  6. home/zuoliangli/speed/framework/base/NGraphics/ImageCodec/tests/NGBmpHandler_Test.cpp:72: multiple definition of `main’
    out/target/product/generic/obj/EXECUTABLES/gtstNGImageCodec_intermediates/NGTestImageCodec.o:/home/zuoliangli/speed/framework/base/NGraphics/ImageCodec/tests/NGTestImageCodec.cpp:2400: first defined here
    collect2: error: ld returned 1 exit status

多了main()

  1. Resource/BackgroundFile.h: No such file or directo
    注意include的兩種不同寫法,#include<***.h>和#include"***.h"
    采用"< >“方式進(jìn)行包含的頭文件表示讓編譯器在編譯器的預(yù)設(shè)標(biāo)準(zhǔn)路徑下去搜索相應(yīng)的頭文件,如果找不到則報(bào)錯(cuò)。
    例如:VS2008的安裝目錄\Microsoft Visual Studio 9.0\VC\include下面就包含了標(biāo)準(zhǔn)庫的頭文件。
    第二種方式表示先在工程所在路徑下搜索,如果失敗,再到系統(tǒng)標(biāo)準(zhǔn)路徑下搜索。
    所以,特別要注意的是,如果是標(biāo)準(zhǔn)庫頭文件,那么既可以采用<>的方式,又可以采用” “的方式,而用戶自定義的頭文件只能采用” "的方式。
    nclude頭文件時(shí)的參考路徑是 相對(duì)于本文件的路徑

  2. /home/zuoliangli/speed/framework/base/NGraphics/ImageCodec/tests/NGBmpHandler_Test.cpp:44: undefined reference to NGBmpHandler_Test::ngBmpHandler' out/target/product/generic/obj/EXECUTABLES/gtstNGImageCodec_intermediates/NGBmpHandler_Test.o: In functionNGBmpHandler_Test_read_Test::TestBody()’:
    /home/zuoliangli/speed/framework/base/NGraphics/ImageCodec/tests/NGBmpHandler_Test.cpp:63: undefined reference to `NGBmpHandler_Test::ngBmpHandler’
    collect2: error: ld returned 1 exit status

來源:https://www./content-4-529651.html

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多