打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

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

安卓的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

来源:https://www.icode9.com/content-4-529651.html
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
GStreamer 1.16.0编译安装(亲测有效)
不再收费!MapD数据库开源,过来人指点如何上手
ubuntu 编译 Android 出现的若干错误及解决方法(转)
ubuntu 下编译android源码错误解决记录
ubuntu下安装ns2详细步骤
ROS 安装详细教程
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服