zoukankan      html  css  js  c++  java
  • qt5 源码编译

    源码 qt-everywhere-src-5.11.3

    依赖

    apt-get install bison build-essential gperf flex ruby python libasound2-dev libbz2-dev libcap-dev
    libcups2-dev libdrm-dev libegl1-mesa-dev libgcrypt11-dev libnss3-dev libpci-dev libpulse-dev libudev-dev
    libxtst-dev gyp ninja-build libglu1-mesa-dev libfontconfig1-dev libx11-xcb-dev libicu-dev


    不安装这些依赖库接下来运行configure的时候可能会报如下错误

    WARNING: gperf is required to build QtWebEngine.

    WARNING: bison is required to build QtWebEngine.

    WARNING: flex is required to build QtWebEngine.

    WARNING: host pkg-config not found

    ERROR: The OpenGL functionality tests failed!
    You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],
    QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.


    如果发生类似这样的错 安装完相关依赖库之后 记得运行 rm config.cache来删除缓存的配置

    ./configure -prefix $PWD/qtbase -opensource -nomake examples -nomake tests
    make -j 4
    make install

  • 相关阅读:
    android学习第一天
    定力
    C++ 虚基类表指针字节对齐
    c++内存对齐 转载
    #Pragma Pack(n)与内存分配
    c++ data语意学
    point类型·
    对象内存 (扩展 Data Structure Alignment)
    reinterpret_cast and const_cast
    static_cast AND dynamic_cast
  • 原文地址:https://www.cnblogs.com/ahuo/p/11286843.html
Copyright © 2011-2022 走看看