./configure --enable-shared --enable-pic
For more details, please refer to :
http://www.ozbotz.org/opencv-installation/
I have successfully compiled on Fedora 64 bits. Good luck.
This is Kuan-Ting Lai's technical blog. My personal website is at sites.google.com/site/kuantinglai
ln -s libopencv_imgproc.so libcv.so.2
ln -s libopencv_highgui.so libhighgui.so.2
ln -s libopencv_ml.so libml.so.2
ln -s libopencv_video.so libcvaux.so.2