ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

make编译报错,安装对应依赖

2019-10-28 10:39:04  阅读:480  来源: 互联网

标签:make sudo dev 编译 apt 报错 usr install include


安卓的make报错集合,与对应解决方案

  1. usr/include/c++std…
    sudo apt-get install gcc-multilib g+±multilib

  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: 没有那个文件或目录
    $ 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: 没有那个文
    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: 没有那个文件或目录
    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: 没有那个文件或目录
    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"
    采用"< >“方式进行包含的头文件表示让编译器在编译器的预设标准路径下去搜索相应的头文件,如果找不到则报错。
    例如:VS2008的安装目录\Microsoft Visual Studio 9.0\VC\include下面就包含了标准库的头文件。
    第二种方式表示先在工程所在路径下搜索,如果失败,再到系统标准路径下搜索。
    所以,特别要注意的是,如果是标准库头文件,那么既可以采用<>的方式,又可以采用” “的方式,而用户自定义的头文件只能采用” "的方式。
    nclude头文件时的参考路径是 相对于本文件的路径

  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

标签:make,sudo,dev,编译,apt,报错,usr,install,include
来源: https://blog.csdn.net/smiling_Z/article/details/102776748

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有