Ask Your Question
0

Set the OpenCV enviroment variable and add it to the systems path

asked 2013-04-25 09:11:10 -0600

etudiante gravatar image

updated 2013-04-25 09:19:27 -0600

I am trying to install OpenCV in windows by using the pre-built libraries.

I want to set the OpenCV enviroment variable and add it to the systems path but when I write:

setx -m OPENCV_DIR D:\OpenCV\Build\x86\vc10

It tells me

'setx-m' n'est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes

Can you help me please?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2013-04-25 09:13:53 -0600

Rogeeeer gravatar image

updated 2013-04-25 09:23:07 -0600

Translated the topic to English, since this is the main language of the forum

Please follow the next steps:

  • Right click on 'Computer'
  • Properties
  • Advanced system properties
  • Environment variables
  • Look for PATH variable under system variables --> double click
  • Add the text at the back = D:\OpenCV\Build\x86\vc10;
edit flag offensive delete link more

Comments

1

Sorry Steven, thought it could be easier for this time...

Rogeeeer gravatar imageRogeeeer ( 2013-04-25 09:24:39 -0600 )edit

No problem, I didn't make a problem of translating. However, if someone has same problem now, they will always understand the answer.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-04-25 09:35:29 -0600 )edit
1

thanks , what should i do to finish the install and where i write "% OPENCV_DIR% \ bin"??

etudiante gravatar imageetudiante ( 2013-04-25 09:43:59 -0600 )edit
1

Oh you have 2 choices : -You create a new variable named OPENCV_DIR with value D:\OpenCV\Build\x86\vc10; and add %OPENCV_DIR%\bin to the PATH. -You add ;D:\OpenCV\Build\x86\vc10\bin to the PATH.

Maybe the first is more correct, I made a mistake sorry.

Rogeeeer gravatar imageRogeeeer ( 2013-04-25 09:52:22 -0600 )edit

Question Tools

Stats

Asked: 2013-04-25 09:11:10 -0600

Seen: 4,028 times

Last updated: Apr 25 '13