when import cv2, there is an error
ImportError: /anaconda/bin/../lib/libm.so.6: version `GLIBC_2.15' not found (required by /usr/lib/x86_64-linux-gnu/libxvidcore.so.4)
just copy libm.so.6 from '/usr/lib/x86_64-linux-gnu' to '/home/username/anaconda/lib/'
then it can work
2015年1月14日 星期三
2014年11月3日 星期一
install rce in ubuntu14.04+ROS indigo with Anaconda python
~/rce$ sudo ./install.sh
會將rce相關套件裝到 /usr/local/lib/python2.7/dist-packages中
如要使用安裝在~/anaconda中的python會找不到rce相關套件
所以
~/rce$ ./setup/provision all
會import不到RCE套件
因此可以用以下兩種方式(擇一即可):
1. 將/usr/local/lib/python2.7/dist-packages中的相關套件與.pth檔複製到
~/anaconda/lib/python2.7/site-packages中
2.修改或新增.pth檔到~/anaconda/lib/python2.7/site-packages將相關的RCE egg指到
/usr/local/lib/python2.7/dist-packages
如:
/usr/local/lib/python2.7/dist-packages/rce_util-0.3-py2.7.egg
/usr/local/lib/python2.7/dist-packages/rce_comm-0.3-py2.7.egg
/usr/local/lib/python2.7/dist-packages/autobahn_rce-0.6.0.5-py2.7-linux-x86_64.egg
/usr/local/lib/python2.7/dist-packages/Twisted-14.0.2-py2.7-linux-x86_64.egg
/usr/local/lib/python2.7/dist-packages/rce_core-0.3-py2.7.egg
/usr/local/lib/python2.7/dist-packages/python_iptables-0.5.0-py2.7-linux-x86_64.egg
/usr/local/lib/python2.7/dist-packages/rce_client-0.3-py2.7.egg
/usr/local/lib/python2.7/dist-packages/rce_console-0.3-py2.7.egg
如有缺少zope.interface套件
可用 pip install zope.interface安裝
而RCE只支援到UBUNTU 13.04 + ROS hydro
如要使用UBUNTU 14.04 + ROS indigo需要修改provision檔
可將版本改掉
in my case:
using 'tursty' to substitute 'Raring'
using 'indigo' to substitute 'hydro'
remove openvswitch-brcompat in _HOST_PKGS , becouse it cannot find it in ubuntu 14.04 and some one say ubuntu 14.04 for OVS don't need that.
http://openvswitch.org/
2013年11月24日 星期日
compiling opencv with g++
There are two methods in compiling opencv with g++ without IDE
First is typing following command in command line directly
~$ g++ testcv.cpp -o testcv `pkg-config opencv --cflags --libs `
ps: ` place in the left of 1 on the keyboard, not ' in the left of Enter
Second is to set a makefile as below:
testcv: testcv.cpp
g++ -o ${@} $< `pkg-config opencv --cflags --libs `
and then type make in command line
~$ make
note:
keep the sequence of the command. put the `pkg-config opencv --cflags --libs ` after others.
If you make a command like
~$ g++ `pkg-config opencv --cflags --libs ` testcv.cpp -o testcv
there will be error
I don't know why...><
###########################################################################
opencv on qt creater ubuntu
set .pro
If an error occur like this
"Cannot connect creator comm socket /tmp/qt_temp.S27961/stub-socket: No such file or directory"
go to "Run Settings" and then cancel "Run in terminal"
First is typing following command in command line directly
~$ g++ testcv.cpp -o testcv `pkg-config opencv --cflags --libs `
ps: ` place in the left of 1 on the keyboard, not ' in the left of Enter
Second is to set a makefile as below:
testcv: testcv.cpp
g++ -o ${@} $< `pkg-config opencv --cflags --libs `
and then type make in command line
~$ make
note:
keep the sequence of the command. put the `pkg-config opencv --cflags --libs ` after others.
If you make a command like
~$ g++ `pkg-config opencv --cflags --libs ` testcv.cpp -o testcv
there will be error
I don't know why...><
###########################################################################
opencv on qt creater ubuntu
set .pro
INCLUDEPATH += /usr/local/include
LIBS += `pkg-config opencv --libs`
If an error occur like this
"Cannot connect creator comm socket /tmp/qt_temp.S27961/stub-socket: No such file or directory"
go to "Run Settings" and then cancel "Run in terminal"
訂閱:
文章 (Atom)