zoukankan      html  css  js  c++  java
  • zlog 程序日志的库 交叉编译(Linux生成ARM库,观察执行步骤)

    1. zlog 是个很好的写程序日志的库,功能比较强大,上手快。

    2. 下载地址:https://github.com/bmanojlovic/zlog

    3. cd 到文件夹下,对 autogen.sh 添加可执行权限:chmod +x autogen.sh

        然后执行:./autogen.sh

        如果出现不能识别的函数错误,或报"Syntax error: "(" unexpected 的错误,请取消dash:

        dpkg-reconfigure dash

        选择  no ;然后再执行:./autogen.sh

    4. 配置 configure

        CC=arm-am335x-Linux-gnueabihf-gcc ./configure --prefix=/opt/embedded/zlog --host=arm-am335x-linux-gnueabihf

    5. 执行:make

        可能会出现以下错误:

        ./.libs/libzlog.so: undefined reference to `rpl_realloc'

        这时,我们要改 makefile 文件,cd 到 src 文件下,修改 makefile:将 rpl_realloc 替换为 realloc,保存,执行:

        make clean

        make

        make install

    http://blog.csdn.net/lc250123/article/details/54174401

  • 相关阅读:
    ZooKeeper详解
    数据结构与算法2——数组
    jquery复习笔记
    关于水平居中
    回顾这些日子
    阻止事件冒泡
    css导航栏
    js正则
    js事件绑定
    操作iframe
  • 原文地址:https://www.cnblogs.com/findumars/p/7461253.html
Copyright © 2011-2022 走看看