ubuntu-12.04

Runtime Opencv HighGui Error- “HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP”. Opencv cross compiled. Host=64bit Ubuntu 12.04. Target=ARM-Cortex-A9

耗尽温柔 提交于 2019-11-29 08:01:34
问题 I am a beginner at OpenCV and trying my best to get a simple application running on an embedded platform. I cross-compiled OpenCV 2.4.4 and built it WITH_GTK=ON, WITH_UNICAP=ON, WITH_V4L=ON as needed for camera and GUI support. The following sample code cross-compiles on host: #include <opencv/cv.h> #include <opencv/highgui.h> using namespace cv; int main(int, char**) { VideoCapture cap(0); // open the default camera if (!cap.isOpened()) // check if we succeeded return -1; Mat edges;

Editable .pdf fields disappear (but visible on field focus) after save with evince

人走茶凉 提交于 2019-11-29 07:57:12
First off, let me thank the SO community for helping me so many times in the past; you guys are an amazing resource! At my job I work on a web application that uses PDF templates created in Scribus and the iText Java library to populate the templates with data from our database. Sometimes, a user-supplied field is required and not touched by iText. When the .pdf is downloaded, a field is edited, and a copy is saved with Evince the resulting file will not display the edited text upon reopen. However, upon focus of an edited field it will show the saved text. Unfocus, text disappears. Cut the

error: iostream.h due to including cplex

。_饼干妹妹 提交于 2019-11-29 07:40:21
I am trying to use cplex in eclipse in Ubuntu 12.04 but when I include ilocplex.h I get the following error /opt/ibm/ILOG/CPLEX_Studio124/concert/include/ilconcert/ilosys.h:360:22: fatal error: iostream.h: No such file or directory The only two includes are written as follows: #include <ilcplex/ilocplex.h> #include <iostream> I would appreciate if anyone could help me with this. David Nehme At the time ILOG's Concert library was first released, the older iostream.h headers were still common in C++ compilers, but it supports the standard iostream libraries. To use the standard headers and

Python: ImportError: /usr/local/lib/python2.7/lib-dynload/_io.so: undefined symbol: PyUnicodeUCS2_Replace

瘦欲@ 提交于 2019-11-29 06:42:40
I am trying to build a triviol Python script that will grab data from URL and save it onto the server. Concider the below code: #!/usr/bin/python import pprint import json import urllib2 def getUSGS_json(): print "Fetch data from URL" fileName = 'data/usgsEarthquacks_12Hrs.json' url = 'http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojson' data = urllib2.urlopen(url).read() if data: try: with open(fileName) as jsonGetData: filePut = open(fileName, 'w+') #add data filePut.write(data) filePut.close() j = json.load(jsonGetData) print j except Exception, e: print e raise else:

g++ 4.7.1 compilation error : conflicting types for ‘strsignal’

試著忘記壹切 提交于 2019-11-29 03:56:42
I'm trying to compile g++ 4.7.1 from source on Ubuntu 12.04 32 bits. For the moment I've exactly done that : https://askubuntu.com/questions/168947/how-to-upgrade-g-to-4-7-1 Except just before the compilation of g++ 4.7.1 it asks me to "unset LIBRARY_PATH" (so I've done that). So the compilation starts, and after a while I have the following error message : In file included from ../.././gcc/c-lang.c:24:0: ../.././gcc/system.h:499:20: erreur: conflicting types for ‘strsignal’ /usr/include/string.h:566:14: note: previous declaration of ‘strsignal’ was here In file included from ./tm.h:19:0, from

RVM Ruby on Rails installation

坚强是说给别人听的谎言 提交于 2019-11-29 00:18:15
I'm having a trouble installing rvm ROR on my machine using ubuntu 12.04 here are the outputs I'm getting: Output #1: Searching for binary rubies, this might take some time. No binary rubies available for: ubuntu/12.04/i386/ruby-1.8.7-p371.Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. Installing requirements for ubuntu, might require sudo password. and at the end of the line of update I get this: Output #2: There has been error while updating 'apt-get', please give it some time and try again later. For 404 errors check your sources configured in

PIP Could not find any downloads that satisfy the requirement SQLAlchemy

风格不统一 提交于 2019-11-28 23:01:33
Ubuntu 12.04 Apache 2.2.22 pip has stopped working on my ubuntu server and gives the below error when I try to download anything. $ sudo pip install SQLAlchemy Downloading/unpacking SQLAlchemy Cannot fetch index base URL http://pypi.python.org/simple/ Could not find any downloads that satisfy the requirement SQLAlchemy No distributions at all found for SQLAlchemy Storing complete log in /home/user/.pip/pip.log All of the below also do not work $ sudo pip install --upgrade pip $ sudo apt-get install build-essential My /etc/environment has the below settings which were working previously. http

Can't OPEN Eclipse in Ubuntu 12.04 - java.lang.UnsatisfiedLinkError: Could not load SWT library

无人久伴 提交于 2019-11-28 21:36:19
I have installed Ubuntu 12.04 newly. Also i installed Java 7. I try to install eclipse-java-indigo-SR2-linux-gtk.tar.gz. i extracted this file in /home/ramprabhu location. Then i try to run eclipse executable file. I got error as see the log file. My log file: !SESSION 2012-06-10 22:47:35.959 ----------------------------------------------- eclipse.buildId=M20120208-0800 java.version=1.7.0_04 java.vendor=Oracle Corporation BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US Framework arguments: -product org.eclipse.epp.package.java.product Command-line arguments: -os linux -ws gtk -arch

Connection Reset when port forwarding with Vagrant

我与影子孤独终老i 提交于 2019-11-28 20:59:02
问题 I have Vagrant/VirtualBox running an Ubuntu 12.04 LTS OS. I have configured Vagrant to forward the guest port 8000 to my host port 8888. [default] Preparing network interfaces based on configuration... [default] Forwarding ports... [default] -- 22 => 2222 (adapter 1) [default] -- 8000 => 8888 (adapter 1) [default] Booting VM... [default] Waiting for VM to boot. This can take a few minutes. [default] VM booted and ready for use! When the virtual machine starts up, I start a Django dev server

Setting/Installing up OpenCV 2.4.6.1+ on Ubuntu 12.04.02

為{幸葍}努か 提交于 2019-11-28 19:44:36
I had previously used OpenCV 2.4.5 with some certain configs and packages on Ubuntu 12.04.1 but had issues upgrading to OpenCV 2.4.6.1 on Ubuntu 12.04.2 I would like to share some ideas (a compilation of noteworthy information gathered from several sources including SO, ubuntu.org, asklinux.org and many other; and of course by trying several procedures) Below is what eventually got me through. NOTE: ensure you uninstall any previous installation of OpenCV, FFMpeg and other dependencies previously installed. STEP 1 (install ffmpeg and dependencies) # goto http://sourceforge.net/projects