Ask Your Question
0

INstalling OpenCV

asked 2017-01-05 14:52:44 -0600

Hi guys just downloadOpenCV , and have a question on how to install it as a static ? witch files do i need ? will i be okay just copying include folder to my project folder ? or do i need something more , also i need it only for c++ so don't want to include java and others as well because i have no use i them

edit retag flag offensive close merge delete

Comments

i need static not dynamic way

egizz983 gravatar imageegizz983 ( 2017-01-05 15:06:58 -0600 )edit

you have to build yourself using cmake :

git clone https://github.com/opencv/opencv.git

and run cmake

LBerger gravatar imageLBerger ( 2017-01-05 15:11:57 -0600 )edit

cmake will just build me solution i am asking how to install OpenCV saticly on my project ? would be enought to copy libs and includes ?

egizz983 gravatar imageegizz983 ( 2017-01-05 15:36:25 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2017-01-06 02:37:54 -0600

berak gravatar image

if you are using vs2015, you can download binaries , which already contain static libs .

(never try to copy anything to your project dir, rather set up include / linker paths in your ide.)

for any other version you have to run cmake with:

cmake -DBUILD_SHARED_LIBS=OFF

to produce static libs.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-01-05 14:52:44 -0600

Seen: 231 times

Last updated: Jan 06 '17