The reason of why you can't use "sudo apt-get" is because you are logged as root so you don't need to use sudo and the image you are using don't work with apt-get but with opkg. This is why you need to use opkg update and opkg install to instal .ipk packages
You can use the Ubilinux image from EmutexLabs that supports apt-get if you want to use this command.
If you are using the IoT image I suggest you to use V4L or you can install it from source from: fsphil/fswebcam · GitHub
Hi payalkumar7 ;
The IoT image is the one you get following these steps: Making a bootable micro SD Card with Windows* | Intel® Developer Zone
About the "bad address" message, it could be related with a network issue. Could you post a screenshot of what you are getting after running ping www.google.com -c3?
What are you getting after running ./configure?
IN the image above....i am trying to install opencv as i wanna check my camera using a c++ program because fswebcam isnt working for me .i am following
- Enter command prompt
- Use command vi /etc/opkg/base-feeds.conf
- Press “i” for edit vi
- Paste this on the base-feeds.conf file:
src/gz all http://repo.opkg.net/galileo/repo/all
src/gz clanton http://repo.opkg.net/galileo/repo/clanton
src/gz i586 http://repo.opkg.net/galileo/repo/i586
5.Press “Esc” to exit edit vi mode. Press “:wq”
6.Run “opkg update” and confirm you have the output of the file website given above.
7. type " opkg install --force-overwrite uclibc"
8. Run " opkg install packagegroup-core-buildessential git"
For the 7 and 8 step it shows no valid architecture . and the when i try downloading opencv using
cd ~/<my_working _directory>
git clone https://github.com/Itseez/opencv.git
the disk is full it says .as in the image . i use a 4gb card. is it that big.
how do make it run.
Hi payalkumar7 ;
What is the result of running df -h in your board?
I think you are using the IoT/EGLIBC image, if this is the case you don't have to do the steps you are doing.
I saw that you are following the steps that annu_shah provided in this thread: sd card image linux run cpp file
Those steps work in the UCLIBC image. You don't need to do that because the IoT image already has the building-tools and git installed.
If you are on a fresh image you should be able to run:
root@galileo:~# git clone https://github.com/Itseez/opencv.git
But, if you are using this image (IoT) you already has the OpenCV library. You can see the libraries in: /usr/include/opencv
i am trying to run an opencv code in putty to detect an object of black colour , and just print on the screen "contour found".
could you please tell me what is wrong with code as it giving an error.i am not sure whether my code is correct.but as i am jus trying to see a colored ball and simply print that its found as we cannot see the video on putty
using namespace cv;
using namespace std;
int main ()
if ( !cap.isOpened() )
printf("Cannot open the web cam");
bool bSuccess = cap.read(imgOriginal);
if (!bSuccess) //if not success, break loop
printf( "Cannot read a frame from video stream");
cvtColor(img, hsv, CV_BGR2HSV);
inRange(hsv, Scalar(0,0, 0), Scalar(10, 10,10), binary);
vector< vector<Point> > contours;
findContours(binary, contours, CV_RETR_TREE, CV_CHAIN_APPROX_SIMPLE); //find contour
OpenCV Error: Assertion failed ((scn == 3 || scn == 4) && (depth == CV_8U || dep th == CV_32F)) in cvtColor, file /home/pokybuild/yocto-autobuilder/yocto-worker/ quark-multilib/build/build/tmp/work/i586-poky-linux/opencv/2.4.9+gitAUTOINC+df8e 28283f-r0/git/modules/imgproc/src/color.cpp, line 3959
terminate called after throwing an instance of 'cv::Exception'
what(): /home/pokybuild/yocto-autobuilder/yocto-worker/quark-multilib/build/b uild/tmp/work/i586-poky-linux/opencv/2.4.9+gitAUTOINC+df8e28283f-r0/git/modules/ imgproc/src/color.cpp:3959: error: (-215) (scn == 3 || scn == 4) && (depth == CV _8U || depth == CV_32F) in function cvtColor