Search

'configure'에 해당되는 글 1건

  1. 2016.06.29 Log4cxx Build in VS2013

Log4cxx Build in VS2013

Programming/C,CPP,CS 2016. 6. 29. 15:01 Posted by TanSanC
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

Log4cxx Build in VS2013


1. DownLoad FIles


Apache log4cxx 

Apache Portable Runtime (APR)
Apache Portable Runtime-util (APR-util)

GNU Sed


apache-log4cxx-0.10.0.zip

apr-1.5.2-win32-src.zip

apr-util-1.5.4-win32-src.zip

sed-4.2.1-setup.exe




2. Installation


2.1. Decompress APR, APR-util, log4cxx File in same folder
...\log4cxx\apr
...\log4cxx\apr-util
...\log4cxx\log4cxx

2.2 Install GNU sed
Run "sed-4.2-1-setup.exe"
Add environment variable %PATH% : "C:\Program Files\GnuWin32\bin" 

2.3 in "cmd.exe" move to "...\log4cxx" folder
Run "configure.bat" in "cmd.exe"
Run "configure-aprutil.bat" in "cmd.exe"

2.4. Compile "C:\work\log4cxx\log4cxx\projects\log4cxx.dsw"
Result : log4cxx.dll, log4cxx.lib
("...\log4cxx\projects\Debug or Release")

config1.

log4cxx 프로젝트 속성 / 구성 속성 / 링커 / 입력 / 추가 종속성 : 
apr.lib,
aprutil.lib,
xml.lib
추가

config2.
apr,aprutil,xml 프로젝트 속성/ 구성 속성/ 라이브러리 관리자/ 일반/출력 파일
apr.lib,
aprutil.lib,
xml.lib
이름과 같은지 확인(apr-1.lib 인경우가 있음)

config3.
log4cxx 프로젝트 속성 / 구성 속성 / C/C++ / 추가 포함 디렉터리 : 
..\src\main\include
..\..\apr\include
..\..\apr-util\include

config4.
log4cxx 프로젝트 속성 / 구성 속성 / 링커 / 추가 라이브러리 디렉터리 : 
..\..\apr\LibD
..\..\apr-util\LibD
..\..\apr-util\xml\expat\lib\LibD

Error1. C2252

LOG4CXX_LIST_DEF( ... , ... );

move to out of class area, in same namespace

but, 

LOG4CXX_LIST_DEF(ConnectionList, Connection);  

move with 

typedef log4cxx::helpers::SocketPtr Connection; 


Error2. C2039

"LoggingEvent::KeySet" change to "KeySet"


Error3. LNK2019

프로젝트 속성 / 구성 속성 / 링커 / 입력 / 추가 종속성 : Rpcrt4.lib 추가






'Programming > C,CPP,CS' 카테고리의 다른 글

비쥬얼 스튜디오 디버깅 팁 ( Visual Studio Debugging Tips )  (0) 2016.08.09
C++ Standard library has many containers  (0) 2016.07.19
Log4cxx Tutorial  (0) 2016.06.28
Log Librarys  (0) 2016.06.27
ATL,CPP,C# dll 배포  (0) 2016.05.27