青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

戰(zhàn)魂小筑

討論群:309800774 知乎關(guān)注:http://zhihu.com/people/sunicdavy 開源項(xiàng)目:https://github.com/davyxu

   :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
  257 隨筆 :: 0 文章 :: 506 評(píng)論 :: 0 Trackbacks

NDK版本r8

下載log4cpp-1.1.tar.gz并解壓

默認(rèn)情況下, log4cpp準(zhǔn)備好了windows平臺(tái)的config文件, 但是linux下一般是通過configurator生成的.

我先找了個(gè)linux生成了一下, 然后把config放在log4cpp/include/log4cpp/config.h, 內(nèi)容參見

#ifndef _INCLUDE_LOG4CPP_CONFIG_H
#define _INCLUDE_LOG4CPP_CONFIG_H 1
 
/* include/log4cpp/config.h. Generated automatically at end of configure. */
/* include/config.h.  Generated from config.h.in by configure.  */
/* include/config.h.in.  Generated from configure.in by autoheader.  */
 
/* Define to 1 if you have the <dlfcn.h> header file. */
#ifndef LOG4CPP_HAVE_DLFCN_H 
#define LOG4CPP_HAVE_DLFCN_H  1 
#endif
 
/* Define to 1 if you have the `ftime' function. */
#ifndef LOG4CPP_HAVE_FTIME 
#define LOG4CPP_HAVE_FTIME  1 
#endif
 
/* Define to 1 if you have the `gettimeofday' function. */
#ifndef LOG4CPP_HAVE_GETTIMEOFDAY 
#define LOG4CPP_HAVE_GETTIMEOFDAY  1 
#endif
 
/* define if the compiler has int64_t */
#ifndef LOG4CPP_HAVE_INT64_T 
#define LOG4CPP_HAVE_INT64_T  /**/ 
#endif
 
/* Define to 1 if you have the <inttypes.h> header file. */
#ifndef LOG4CPP_HAVE_INTTYPES_H 
#define LOG4CPP_HAVE_INTTYPES_H  1 
#endif
 
/* Define to 1 if you have the <io.h> header file. */
/* #undef LOG4CPP_HAVE_IO_H */
 
/* Define to 1 if you have the `idsa' library (-lidsa). */
/* #undef LOG4CPP_HAVE_LIBIDSA */
 
/* Define to 1 if you have the `localtime_r' function. */
#ifndef LOG4CPP_HAVE_LOCALTIME_R 
#define LOG4CPP_HAVE_LOCALTIME_R  1 
#endif
 
/* Define to 1 if you have the <memory.h> header file. */
#ifndef LOG4CPP_HAVE_MEMORY_H 
#define LOG4CPP_HAVE_MEMORY_H  1 
#endif
 
/* define if the compiler implements namespaces */
#ifndef LOG4CPP_HAVE_NAMESPACES 
#define LOG4CPP_HAVE_NAMESPACES  /**/ 
#endif
 
/* Define if you have POSIX threads libraries and header files. */
#ifndef LOG4CPP_HAVE_PTHREAD 
#define LOG4CPP_HAVE_PTHREAD  1 
#endif
 
/* define if the C library has snprintf */
#ifndef LOG4CPP_HAVE_SNPRINTF 
#define LOG4CPP_HAVE_SNPRINTF  /**/ 
#endif
 
/* define if the compiler has stringstream */
#ifndef LOG4CPP_HAVE_SSTREAM 
#define LOG4CPP_HAVE_SSTREAM  /**/ 
#endif
 
/* define if you have the <stdint.h> header file. */
#ifndef LOG4CPP_HAVE_STDINT_H 
#define LOG4CPP_HAVE_STDINT_H  /**/ 
#endif
 
/* Define to 1 if you have the <stdlib.h> header file. */
#ifndef LOG4CPP_HAVE_STDLIB_H 
#define LOG4CPP_HAVE_STDLIB_H  1 
#endif
 
/* Define to 1 if you have the <strings.h> header file. */
#ifndef LOG4CPP_HAVE_STRINGS_H 
#define LOG4CPP_HAVE_STRINGS_H  1 
#endif
 
/* Define to 1 if you have the <string.h> header file. */
#ifndef LOG4CPP_HAVE_STRING_H 
#define LOG4CPP_HAVE_STRING_H  1 
#endif
 
/* Define to 1 if you have the `syslog' function. */
#ifndef LOG4CPP_HAVE_SYSLOG 
#define LOG4CPP_HAVE_SYSLOG  1 
#endif
 
/* Define to 1 if you have the <sys/stat.h> header file. */
#ifndef LOG4CPP_HAVE_SYS_STAT_H 
#define LOG4CPP_HAVE_SYS_STAT_H  1 
#endif
 
/* Define to 1 if you have the <sys/types.h> header file. */
#ifndef LOG4CPP_HAVE_SYS_TYPES_H 
#define LOG4CPP_HAVE_SYS_TYPES_H  1 
#endif
 
/* define if threading is enabled */
#ifndef LOG4CPP_HAVE_THREADING 
#define LOG4CPP_HAVE_THREADING  1 
#endif
 
/* Define to 1 if you have the <unistd.h> header file. */
#ifndef LOG4CPP_HAVE_UNISTD_H 
#define LOG4CPP_HAVE_UNISTD_H  1 
#endif
 
/* Define to the sub-directory in which libtool stores uninstalled libraries.
   */
#ifndef LOG4CPP_LT_OBJDIR 
#define LOG4CPP_LT_OBJDIR  ".libs/" 
#endif
 
/* Name of package */
#ifndef LOG4CPP_PACKAGE 
#define LOG4CPP_PACKAGE  "log4cpp" 
#endif
 
/* Define to the address where bug reports for this package should be sent. */
#ifndef LOG4CPP_PACKAGE_BUGREPORT 
#define LOG4CPP_PACKAGE_BUGREPORT  "" 
#endif
 
/* Define to the full name of this package. */
#ifndef LOG4CPP_PACKAGE_NAME 
#define LOG4CPP_PACKAGE_NAME  "log4cpp" 
#endif
 
/* Define to the full name and version of this package. */
#ifndef LOG4CPP_PACKAGE_STRING 
#define LOG4CPP_PACKAGE_STRING  "log4cpp 1.1" 
#endif
 
/* Define to the one symbol short name of this package. */
#ifndef LOG4CPP_PACKAGE_TARNAME 
#define LOG4CPP_PACKAGE_TARNAME  "log4cpp" 
#endif
 
/* Define to the home page for this package. */
#ifndef LOG4CPP_PACKAGE_URL 
#define LOG4CPP_PACKAGE_URL  "" 
#endif
 
/* Define to the version of this package. */
#ifndef LOG4CPP_PACKAGE_VERSION 
#define LOG4CPP_PACKAGE_VERSION  "1.1" 
#endif
 
/* Define to necessary symbol if this constant uses a non-standard name on
   your system. */
/* #undef LOG4CPP_PTHREAD_CREATE_JOINABLE */
 
/* Define to 1 if you have the ANSI C header files. */
#ifndef LOG4CPP_STDC_HEADERS 
#define LOG4CPP_STDC_HEADERS  1 
#endif
 
/* define if pthread library is available */
#ifndef LOG4CPP_USE_PTHREADS 
#define LOG4CPP_USE_PTHREADS  1 
#endif
 
/* Version number of package */
#ifndef LOG4CPP_VERSION 
#define LOG4CPP_VERSION  "1.1" 
#endif
 
/* _INCLUDE_LOG4CPP_CONFIG_H */
#endif 

 

接著, 修改log4cpp/include/log4cpp/RemoteSyslogAppender.hh的包含,改為

#ifdef WIN32
#include <winsock2.h>
#else
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#endif

可以刪除RemoteSyslogAppender.cpp里的這個(gè)定義即可

添加Android.mk

LOCAL_PATH := $(call my-dir)
 
include $(CLEAR_VARS)
 
LOCAL_MODULE := log4cpp
 
LOCAL_SRC_FILES := \
src/AbortAppender.cpp \
src/Appender.cpp \
src/AppendersFactory.cpp \
src/AppenderSkeleton.cpp \
src/BasicConfigurator.cpp \
src/BasicLayout.cpp \
src/BufferingAppender.cpp \
src/Category.cpp \
src/CategoryStream.cpp \
src/Configurator.cpp \
src/DllMain.cpp \
src/DummyThreads.cpp \
src/FactoryParams.cpp \
src/FileAppender.cpp \
src/Filter.cpp \
src/FixedContextCategory.cpp \
src/HierarchyMaintainer.cpp \
src/IdsaAppender.cpp \
src/LayoutAppender.cpp \
src/LayoutsFactory.cpp \
src/LevelEvaluator.cpp \
src/Localtime.cpp \
src/LoggingEvent.cpp \
src/Manipulator.cpp \
src/MSThreads.cpp \
src/NDC.cpp \
src/NTEventLogAppender.cpp \
src/OmniThreads.cpp \
src/OstreamAppender.cpp \
src/PassThroughLayout.cpp \
src/PatternLayout.cpp \
src/PortabilityImpl.cpp \
src/Priority.cpp \
src/Properties.cpp \
src/PropertyConfigurator.cpp \
src/PropertyConfiguratorImpl.cpp \
src/PThreads.cpp \
src/RemoteSyslogAppender.cpp \
src/RollingFileAppender.cpp \
src/SimpleConfigurator.cpp \
src/SimpleLayout.cpp \
src/SmtpAppender.cpp \
src/StringQueueAppender.cpp \
src/StringUtil.cpp \
src/SyslogAppender.cpp \
src/TimeStamp.cpp \
src/TriggeringEventEvaluatorFactory.cpp \
 
 
LOCAL_C_INCLUDES := $(LOCAL_PATH) \
                    $(LOCAL_PATH)/include
                   
 
include $(BUILD_STATIC_LIBRARY)
 
編譯即可
posted on 2013-11-14 17:11 戰(zhàn)魂小筑 閱讀(3232) 評(píng)論(0)  編輯 收藏 引用 所屬分類: 移動(dòng)開發(fā)
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            久久精品首页| 亚洲电影免费在线观看| 老鸭窝亚洲一区二区三区| 免费av成人在线| 欧美在线视频观看免费网站| 欧美片网站免费| 欧美成人亚洲成人| 国产亚洲欧美一区| 亚洲视频导航| 洋洋av久久久久久久一区| 久久国产色av| 久久国产精品99国产| 欧美午夜不卡影院在线观看完整版免费 | 久久久久久久久久久一区 | 欧美激情第一页xxx| 国产伦精品免费视频| 99在线|亚洲一区二区| 亚洲日本va午夜在线电影| 久久国产99| 久久久视频精品| 国产女人精品视频| 亚洲一区视频在线观看视频| 亚洲视频网站在线观看| 欧美精品在线观看一区二区| 欧美国产日韩免费| 亚洲国产成人精品久久久国产成人一区| 欧美一乱一性一交一视频| 欧美一区二区三区在线免费观看| 国产精品理论片| 亚洲欧美成人一区二区三区| 午夜久久tv| 国产日韩欧美亚洲| 久久精品九九| 欧美国产国产综合| 日韩午夜免费视频| 欧美视频成人| 午夜精品视频| 久久亚洲午夜电影| 91久久夜色精品国产九色| 麻豆国产精品va在线观看不卡 | 亚洲大胆人体视频| 亚洲第一网站免费视频| 欧美a级一区| 亚洲日本aⅴ片在线观看香蕉| 一区二区三区视频免费在线观看| 欧美日本不卡| 亚洲一区亚洲| 欧美a级在线| 在线亚洲+欧美+日本专区| 国产精品欧美精品| 久久av免费一区| 亚洲国产成人av| 亚洲小说欧美另类婷婷| 国产午夜精品一区二区三区欧美 | 狠狠做深爱婷婷久久综合一区 | 狠狠干综合网| 欧美激情亚洲国产| 亚洲欧美怡红院| 欧美肥婆在线| 亚洲欧美中日韩| 亚洲国产日韩一级| 欧美亚一区二区| 久久久噜噜噜久噜久久| 日韩视频在线一区二区三区| 欧美一区日本一区韩国一区| 亚洲激情av| 国产日韩欧美精品综合| 欧美大尺度在线观看| 亚洲资源av| 亚洲国产一区在线| 久久久久国内| 亚洲视频免费观看| 亚洲国产精品99久久久久久久久| 欧美午夜在线| 欧美大片免费久久精品三p| 亚洲免费人成在线视频观看| 亚洲国产精品va| 久久国产精品电影| 亚洲视频久久| 亚洲日本免费| 黄色成人91| 国产精品久久久久999| 欧美成人蜜桃| 久久久久久久成人| 香蕉久久精品日日躁夜夜躁| 99国产精品久久久久老师 | 亚洲国产欧美久久| 久久视频一区| 久久成人在线| 午夜免费日韩视频| 亚洲一区二区黄色| 9l视频自拍蝌蚪9l视频成人| 在线看国产日韩| 国内精品伊人久久久久av影院| 欧美午夜久久| 欧美日韩一区二区三区在线观看免| 久久久水蜜桃av免费网站| 欧美一区二区三区视频免费播放| 一区二区三区欧美| 日韩一区二区精品葵司在线| 亚洲经典在线| 亚洲国产精品传媒在线观看| 久久婷婷av| 久久综合色88| 久久亚洲精品欧美| 久久久国产视频91| 久久精品国产欧美激情| 欧美在线中文字幕| 久久精品九九| 久久久亚洲高清| 久久久久一本一区二区青青蜜月| 欧美有码视频| 久久躁日日躁aaaaxxxx| 久久精品一区蜜桃臀影院| 久久久99爱| 美国十次成人| 欧美激情第9页| 亚洲激情社区| 99亚洲一区二区| 亚洲私人影院在线观看| 亚洲亚洲精品三区日韩精品在线视频 | 久热精品视频在线观看| 欧美插天视频在线播放| 欧美啪啪一区| 国产精品专区第二| 狠狠色综合色区| 亚洲国产激情| 中国av一区| 久久av一区二区三区亚洲| 久久婷婷蜜乳一本欲蜜臀| 美女精品自拍一二三四| 亚洲欧洲日产国产综合网| 艳女tv在线观看国产一区| 亚洲影院色在线观看免费| 欧美在线亚洲综合一区| 免费精品视频| 欧美天堂在线观看| 国内揄拍国内精品少妇国语| 亚洲国产成人精品久久| 亚洲一区二区三区成人在线视频精品 | 免费在线亚洲欧美| 亚洲美女毛片| 先锋a资源在线看亚洲| 欧美成人午夜77777| 国产精品久久久久国产a级| 韩国女主播一区二区三区| 9l国产精品久久久久麻豆| 久久久久久9| 日韩视频不卡中文| 久久久久久久成人| 国产精品成人一区二区网站软件| 国一区二区在线观看| 亚洲一区二区欧美| 欧美大片免费久久精品三p| 亚洲视频在线看| 欧美成人一区二区三区| 国产精品五区| 99热在线精品观看| 久久综合中文| 亚洲一区在线播放| 欧美人妖另类| 亚洲国产精品黑人久久久| 欧美一级专区| 99精品国产在热久久下载| 久久五月天婷婷| 国产日韩欧美综合在线| 亚洲作爱视频| 亚洲福利av| 久久久综合免费视频| 国产欧美大片| 亚洲欧美福利一区二区| 亚洲国产日韩欧美在线动漫| 久久成人精品视频| 国产欧美日韩综合一区在线观看| 一片黄亚洲嫩模| 亚洲激情网站| 美女国产精品| 伊人久久综合97精品| 久久aⅴ国产欧美74aaa| 亚洲一区二区精品| 欧美天堂亚洲电影院在线播放| 99re6热在线精品视频播放速度| 蜜乳av另类精品一区二区| 午夜精品久久久久久久蜜桃app| 欧美三级小说| 中文精品在线| 夜夜嗨一区二区| 欧美日韩在线视频观看| 中国日韩欧美久久久久久久久| 亚洲黄一区二区三区| 美女视频一区免费观看| 亚洲国产综合91精品麻豆| 欧美成人免费网| 蜜臀va亚洲va欧美va天堂 | 亚洲黄色在线视频| 欧美成人首页| 欧美不卡在线视频| 夜色激情一区二区| 日韩一级欧洲| 国产精品毛片一区二区三区|