KLog

July 26, 2008

Setting up Samba server

Filed under: Misc tips — hwkang @ 3:02 pm

http://www.linuxforums.org/forum/linux-tutorials-howtos-reference-material/54415-fileserver-samba-printserver-cups-howto.html

http://oreilly.com/catalog/samba/chapter/book/ch09_01.html

July 22, 2008

How to increase VMWare preallocated disk space

Filed under: Misc tips — hwkang @ 5:02 am

Problem: my Ubuntu image comes with pre-allocated 8GB disk space.  More space needed to keep up with growing programs

Solution: using vmware-vdiskmanager,  from VMWare WorkStation.

1. go to Windows command line

2. vmware-vdiskmanager -x sizeGB file.vmdk

3. fire up VM Player (or VM WorkStation)

4. install gparted if not already installed

5. start gparted, and you’ll see a unallocated partition.

6. create a new partition from the unallocated one.

7.  Edit /etc/fstab so that the new partition mounts automatically at boot time

July 19, 2008

Install OpenCV with FFMPEG Step by Step

Filed under: Misc tips — hwkang @ 3:22 pm

1) Download ffmpeg:

svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg

2) Install ffmpeg:

cd ffmpeg

./configure –enable-shared

make

make install

mkdir /usr/local/include/ffmpeg

cp /usr/local/include/libavcodec/*.h /usr/local/include/ffmpeg

cp /usr/local/include/libavdevice/*.h /usr/local/include/ffmpeg

cp /usr/local/include/libavformat/*.h /usr/local/include/ffmpeg

cp /usr/local/include/libavutil/*.h /usr/local/include/ffmpeg

3) configure and install opencv-patched

./configure –enable-apps –enable-shared –with-ffmpeg –with-gnu-ld –with-x –without-quicktime CXXFLAGS=-fno-strict-aliasing CFLAGS=-I/usr/local/include CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib

make

make install

July 7, 2008

extra qualification in C++

Filed under: Misc tips — hwkang @ 5:54 pm

It’s a problem of some older C++ code.

e.g.

class Foo

{

Foo::fun();

} ;

Here Foo:: has to  be removed because it is an over-complete constraint on fun().

Example:  compiling QuickNet v3_20 will result in the following errors,

QN_fir.h:116: error: extra qualification ‘QN_InFtrStream_FIR::’ on member ‘FillDeltaFilt’
QN_fir.h:118: error: extra qualification ‘QN_InFtrStream_FIR::’ on member ‘FillDoubleDeltaFilt’

Solution:  remove ‘QN_InFtrStream_FIR::’

Powered by WordPress