Difference between revisions of "Log4cxx"
From CBLFS
Jump to navigationJump to search (Added fix for build problems I encountered (due to recent version of gcc?)) |
|||
Line 17: | Line 17: | ||
Compile the package: | Compile the package: | ||
+ | sed -i '18i#include <string.h>' src/main/cpp/inputstreamreader.cpp && | ||
+ | sed -i '18i#include <string.h>' src/main/cpp/socketoutputstream.cpp && | ||
+ | sed -i '19i#include <string.h>' src/examples/cpp/console.cpp && | ||
./configure --prefix=/usr && | ./configure --prefix=/usr && | ||
make | make | ||
Line 30: | Line 33: | ||
Compile the package: | Compile the package: | ||
+ | sed -i '18i#include <string.h>' src/main/cpp/inputstreamreader.cpp && | ||
+ | sed -i '18i#include <string.h>' src/main/cpp/socketoutputstream.cpp && | ||
+ | sed -i '19i#include <string.h>' src/examples/cpp/console.cpp && | ||
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \ | CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \ | ||
USE_ARCH=32 ./configure --prefix=/usr && | USE_ARCH=32 ./configure --prefix=/usr && | ||
Line 42: | Line 48: | ||
Compile the package: | Compile the package: | ||
+ | sed -i '18i#include <string.h>' src/main/cpp/inputstreamreader.cpp && | ||
+ | sed -i '18i#include <string.h>' src/main/cpp/socketoutputstream.cpp && | ||
+ | sed -i '19i#include <string.h>' src/examples/cpp/console.cpp && | ||
CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" \ | CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" \ | ||
USE_ARCH=n32 ./configure --prefix=/usr && | USE_ARCH=n32 ./configure --prefix=/usr && | ||
Line 54: | Line 63: | ||
Compile the package: | Compile the package: | ||
+ | sed -i '18i#include <string.h>' src/main/cpp/inputstreamreader.cpp && | ||
+ | sed -i '18i#include <string.h>' src/main/cpp/socketoutputstream.cpp && | ||
+ | sed -i '19i#include <string.h>' src/examples/cpp/console.cpp && | ||
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \ | CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \ | ||
USE_ARCH=64 ./configure --prefix=/usr \ | USE_ARCH=64 ./configure --prefix=/usr \ |
Revision as of 05:50, 31 March 2009
Download Source: | http://apache.cs.utah.edu/logging/log4cxx/0.10.0/apache-log4cxx-0.10.0.tar.gz |
---|
Contents
Dependencies
Required
Non-Multilib
Compile the package:
sed -i '18i#include <string.h>' src/main/cpp/inputstreamreader.cpp && sed -i '18i#include <string.h>' src/main/cpp/socketoutputstream.cpp && sed -i '19i#include <string.h>' src/examples/cpp/console.cpp && ./configure --prefix=/usr && make
Install the package:
make install
Multilib
32Bit
Compile the package:
sed -i '18i#include <string.h>' src/main/cpp/inputstreamreader.cpp && sed -i '18i#include <string.h>' src/main/cpp/socketoutputstream.cpp && sed -i '19i#include <string.h>' src/examples/cpp/console.cpp && CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \ USE_ARCH=32 ./configure --prefix=/usr && make
Install the package:
make install
N32
Compile the package:
sed -i '18i#include <string.h>' src/main/cpp/inputstreamreader.cpp && sed -i '18i#include <string.h>' src/main/cpp/socketoutputstream.cpp && sed -i '19i#include <string.h>' src/examples/cpp/console.cpp && CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" \ USE_ARCH=n32 ./configure --prefix=/usr && make
Install the package:
make install
64Bit
Compile the package:
sed -i '18i#include <string.h>' src/main/cpp/inputstreamreader.cpp && sed -i '18i#include <string.h>' src/main/cpp/socketoutputstream.cpp && sed -i '19i#include <string.h>' src/examples/cpp/console.cpp && CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \ USE_ARCH=64 ./configure --prefix=/usr \ --libdir=/usr/lib64 && make
Install the package:
make install
Contents
Installed Directories: | /usr/include/log4cxx, /usr/share/log4cxx |
---|---|
Installed Programs: | None |
Installed Libraries: | liblog4cxx.{a,la,so} |