- Prerequisite
- ffmpeg
- build with pic "--enable-pic"
- build shared "--enable-shared" (optional)
- numpy
- libgfortran
- Intel TBB
- Build
tar xjf OpenCV-2.4.3.tar.bz2
cd OpenCV-2.4.3
mkdir release
cd release
cmake .. -D CMAKE_INSTALL_PATH=$topt -D PYTHON_LIBRARY=$topt/lib/libpython2.7.a -D PYTHON_INCLUDE_DIR=$topt/include/python2.7 -D PYTHON_PACKAGES_PATH=$topt/lib/python -D WITH_TBB=ON -D TBB_LIB_DIR=$topt/lib/cc.4.1.0_libc2.4_kernel2.6.16.21
make
make install
2012/12/09
Build OpenCV
2012/11/21
Create self signed certificate
openssl req -new -x509 -key server.key -out server.cert -newkey rsa:1024
-req: request
-x509: self-signed
2012/11/20
Install python module
python setup.py install --home=$topt
installs the module to $topt/lib/python
or
python setup.py install --prefix=$topt
will install the module to $topt/lib/pythonX.Y/site-packages
2012/11/19
Build apache2.4
- get apr
wget http://ftp.mirror.tw/pub/apache/apr/apr-1.4.6.tar.gz
- get berkeley db
wget http://download.oracle.com/berkeley-db/db-5.3.21.tar.gz
tar xzf db-5.3.21.tar.gz
cd db-5.3.21/build_unix
../dist/configure --prefix=$topt --enable-cxx --enable-stl
make && make install - get apr-util
wget http://ftp.mirror.tw/pub/apache//apr/apr-util-1.5.1.tar.gz - build apache
./configure --prefix=$topt/apache2 --with-apr=$topt/bin/apr-1-config --with-apr-util=$topt/bin/apu-1-config --enable-mods-shared=all --enable-deflate --enable-proxy --enable-proxy-balancer --enable-proxy-http --enable-dav --enable-dav-fs --enable-so --with-mpm=worker --enable-mpms-shared --sysconfdir=$HOME/etc/httpd
2012/08/01
Build subversion with apache
- build berkeley db wget http://download.oracle.com/berkeley-db/db-5.3.21.tar.gz
- build apr
wget http://ftp.mirror.tw/pub/apache//apr/apr-1.4.6.tar.gz - build apr-util
wget http://ftp.mirror.tw/pub/apache//apr/apr-util-1.4.1.tar.gz
./configure --prefix=$prefix --with-berkeley-db=$prefix - build openssl
wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz
./config shared --prefix=$prefix - build neon
./configure --prefix=$prefix --enable-shared --with-ssl=openssl --without-gssapi --with-libs=$prefix - build apache
./configure --prefix=$prefix/apache2 --enable-mods-shared=all --with-mpm=prefork --enable-so --enable-digest --enable-deflate --enable-proxy --enable-proxy-balancer --enable-proxy-http --sysconfdir=$HOME/etc/httpd - build subversion
./configure --prefix=$prefix --with-apr=$prefix/bin/apr-1-config --with-apr-util=$prefix/bin/apu-1-config --with-apxs=$prefix/apache2/bin/apxs --with-apache-libexecdir=$prefix/apache2/modules
tar xzf db-5.3.21.tar.gz
cd db-5.3.21
cd build_unix
../dist/configure --enable-cxx --enable-stl --enable-sql --prefix=$topt
2012/07/30
Build Lua shared library
/src/Makefile:
CFLAGS = ... -fPIC
LUA_SO = liblua.so
ALL_T = $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
$(LUA_SO): $(CORE_O) $(LIB_O)
$(CC) -o $@ -shared $?
/Makefile:
TO_LIB = liblua.a liblua.so
CFLAGS = ... -fPIC
LUA_SO = liblua.so
ALL_T = $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
$(LUA_SO): $(CORE_O) $(LIB_O)
$(CC) -o $@ -shared $?
/Makefile:
TO_LIB = liblua.a liblua.so
2012/06/29
cue sheet still mojibake in UTF-8
foobar read cue in UTF-8 only when a BOM is seen, so it is necessary to insert a BOM.
to do so in vim, set bomb before save the file
to do so in vim, set bomb before save the file
2012/06/03
Build MySQL
First get the source from mysql website (login required)
http://dev.mysql.com/downloads/mirror.php?id=408409
Extract the source
tar xzf mysql-5.5.25.tar.gz
Build with option
cmake . -DCMAKE_INSTALL_PREFIX=$topt/mysql -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_SSL=yes -DMYSQL_UNIX_ADDR=$topt/tmp/mysql.sock
make && make install
There is problem when specifying self built openssl libraries so just let mysql detect it
run mysqld with option
mysqld_safe --defaults-file=$defaults &
reference: http://dev.mysql.com/doc/refman/5.6/en/server-options.html
http://dev.mysql.com/doc/refman/5.5/en/source-configuration-options.html
http://dev.mysql.com/downloads/mirror.php?id=408409
Extract the source
tar xzf mysql-5.5.25.tar.gz
Build with option
cmake . -DCMAKE_INSTALL_PREFIX=$topt/mysql -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_SSL=yes -DMYSQL_UNIX_ADDR=$topt/tmp/mysql.sock
make && make install
There is problem when specifying self built openssl libraries so just let mysql detect it
run mysqld with option
mysqld_safe --defaults-file=$defaults &
reference: http://dev.mysql.com/doc/refman/5.6/en/server-options.html
http://dev.mysql.com/doc/refman/5.5/en/source-configuration-options.html
Subscribe to:
Posts (Atom)