Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Ubuntu install OpenCV
hi
 
i am beginner in ubuntu 12.04 and i dont know how command-line into it works?
i am trying to install open-cv 2.4.3 in it but i have some problems .
 
for example when i have tried to run this code :
sudo apt-get install libpnglite-dev libpngwriter0-dev libpngwriter0c2
 
i received this results :
 
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libpngwriter0-dev
E: Unable to locate package libpngwriter0c2
 
what is the problem?
i am doing it by following this instruction :
opencv.willowgarage.com/wiki/InstallGuide %3A Debian
 
Generally i want to know how i can use the command-line?
how should i run this codes :
 
cd ~/<my_working _directory> git clone https://github.com/Itseez/opencv.git
 
or i cant understand this instruction :
 
Create a temporary directory, which we denote as <cmake_binary_dir>, where you want to put the generated Makefiles, project files as well the object files and output binaries.
 
Enter the <cmake_binary_dir> and type
 
cmake [<some optional parameters>] <path to the OpenCV source directory>
 
For example
    cd ~/opencv mkdir release cd release cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
    Enter the created temporary directory (<cmake_binary_dir>) and proceed with:
    make sudo make install
 

 
may anyone explain that how i should and what i should write in command line?
 
i am very grateful to him
Posted 11-Feb-13 19:08pm
hor_313627
Edited 11-Feb-13 19:16pm
v2
Comments
Sergey Alexandrovich Kryukov at 12-Feb-13 0:12am
   
It works in exact same way as in Windows (but usually Linux users knows how, much less of Windows users). The meaning of arguments and allowed syntax is totally application-specific. See help on each application, that's all. (And you also need to know piping: '|', '>>', '>'...)
—SA

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

cd ~/opencv
mkdir release
cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
 
REM Enter the created temporary directory (<cmake_binary_dir>) and proceed with:
 
make sudo make install
I don't know what is meant by the line beginning REM, but presumably it means to use the cd command to move into some temporary directory created by the cmake command. You should go back to the documentation for this product and check the instructions. It would also be time well spent if you get hold of a book that expalins all the various Linux commands and their options. Something that you will need to understand well if you wish to be a Linux administrator/developer.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 587
1 Sergey Alexandrovich Kryukov 479
2 Maciej Los 305
3 Mathew Soji 195
4 Richard MacCutchan 145
0 OriginalGriff 7,356
1 Sergey Alexandrovich Kryukov 6,712
2 DamithSL 5,461
3 Manas Bhardwaj 4,916
4 Maciej Los 4,475


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 12 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100