Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Updated 11-Feb-13 18:16pm
v2
Comments
Sergey Alexandrovich Kryukov 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

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900