2015年3月22日 星期日

opencv with cuda error

when i test my opencv package in c file by using the command
$ gcc cvtest.c -o cvtest  `pkg-config opencv --cflags --libs`
There are with some error

/usr/bin/ld: cannot find -lcufft
/usr/bin/ld: cannot find -lnpps
/usr/bin/ld: cannot find -lnppi
/usr/bin/ld: cannot find -lnppc
/usr/bin/ld: cannot find -lcudart

According to this post in stackoverflow
http://stackoverflow.com/questions/24322466/makefile-opencv-stopped-working

i change the command with -L to my cuda lib path
$gcc -L /usr/local/cuda/lib64 cvtest.c -o cvtest  `pkg-config opencv --cflags --libs`

it's working

or put the cuda lib path in LIBRARY_PATH
export LIBRARY_PATH=/usr/local/cuda/lib64

2015年3月16日 星期一

WIN7 + UBUNTU Installtation

先裝win7後裝UBUNTU14.04 直接進入UBUNTU的解決方式

sudo update-grub

sudo gedit /etc/default/grub


將 GRUB_HIDDEN_TIMEOUT=0註解

#GRUB_HIDDEN_TIMEOUT=0

sudo update-grub

sudo reboot