ubuntu平台编译opencv 3D项目一

遇到一个问题,就是用cmake-gui的时候,找不到编译器。

后面 sudo apt-get install build-essential libtiff4-dev libgtk2.0-dev libavcodec-dev libavformat-dev libjpeg-dev  cmake cmake-gui libswscale-dev libjasper-dev pkg-config

把这些安装上就可以了。

build-essential libgtk2.0-dev libavcodec-dev libavformat-dev  libswscale-dev  pkg-config 一定要装的

sudo apt-get install fonts-wqy-zenhei


sudo apt-get install fonts-wqy-microhei 


include /etc/ld.so.conf.d/*.conf
/home/xx/bigwellNV/devboard/opencvDev/opencv2.4.2bulid/lib


cmake-curses-gui

apt-get install lubuntu-desktop



time_t t;  
t = time(NULL);  
struct tm *lt;  
int ii = time(&t);  
printf("ii = %d\n", ii);  
t = time(NULL);  
lt = localtime(&t);  
char nowtime[50];  
memset(nowtime, 0, sizeof(nowtime));  
strftime(nowtime, 24, "%Y-%m-%d-%H-%M-%S", lt); 
strcat(nowtime,".avi");
printf("nowtime = %s\n", nowtime);  


关于gtk++ 的问题


sudo apt-get install libgtk2.0-dev libpango1-dev libcairo2-dev libfontconfig1-dev

deb http://fr.archive.ubuntu.com/ubuntu/ precise-updates main restricted
 
sudo apt-get update
sudo apt-get autoremove
sudo apt-get install -f

  1. apt-get install geany xterm # debian / ubuntu linux
  2. 註: 若不安裝 xterm, 也可於設定將 編譯 / 執行的 Terminal 換掉.
sudo find . -name "*opencv*" -exec rm -rf {} \;



你可能感兴趣的:(ubuntu平台编译opencv 3D项目一)