Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

there are actually 3 relevant folders here,

  1. the source folder, this is where CmakeLists.txt is. in your case it is the "sources" folder, and it is admittedly confusing, that it looks different from https://github.com/itseez/opencv

  2. the build folder. this can be anywhere on your machine, you need ~2.5gb free disk space for the temporary build files, and you can remove it later, once everything is ok

  3. the install folder. this is , where the final libs, dlls and include files und up. you specify it with cmake -DCMAKE_INSTALL_PREFIX

so, as an example, create a build folder, say, d:\mybuild, run cmake from that folder, set the install prefix to d:\opencv\final, and the last cmake argument should be the path to d:\opencv\sources

finally, don't forget to adjust the PATH, so it points to your newly build dlls, not the old, prebuilt ones !

there are actually 3 relevant folders here,

  1. the source folder, folder. this is where CmakeLists.txt is. in your case it is the "sources" folder, and it is admittedly confusing, that it looks different from https://github.com/itseez/opencv

  2. the build folder. this can be anywhere on your machine, you need ~2.5gb free disk space for the temporary build files, and you can remove it later, once everything is ok

  3. the install folder. this is , where the final libs, dlls and include files und up. you specify it with cmake -DCMAKE_INSTALL_PREFIX

so, as an example, create a build folder, say, d:\mybuild, run cmake from that folder, set the install prefix to d:\opencv\final, and the last cmake argument should be the path to d:\opencv\sources

finally, don't forget to adjust the PATH, so it points to your newly build dlls, not the old, prebuilt ones !

there are actually 3 relevant folders here,

  1. the source folder. this is where CmakeLists.txt is. in your case it is the "sources" folder, and it is admittedly confusing, that it looks different from https://github.com/itseez/opencv

  2. the build folder. this can be anywhere on your machine, you need ~2.5gb free disk space for the temporary build files, and you can remove it later, once everything is ok

  3. the install folder. this is , where the final libs, dlls and include files und end up. you specify it with cmake -DCMAKE_INSTALL_PREFIX

so, as an example, create a build folder, say, d:\mybuild, run cmake from that folder, set the install prefix to d:\opencv\final, and the last cmake argument should be the path to d:\opencv\sources

finally, don't forget to adjust the PATH, so it points to your newly build dlls, not the old, prebuilt ones !

there are actually 3 relevant folders here,

  1. the source folder. this is where CmakeLists.txt is. in your case it is the "sources" folder, and it is admittedly confusing, that it looks different from https://github.com/itseez/opencv

  2. the build folder. this can be anywhere on your machine, you need ~2.5gb free disk space for the temporary build files, and you can remove it later, once everything is ok

  3. the install folder. this is , where the final libs, dlls and include files end up. you specify it with cmake -DCMAKE_INSTALL_PREFIX

please make sure, you use latest opencv master version (3.1, atm.)

so, as an example, create a build folder, say, d:\mybuild, run cmake from that folder, set the install prefix to d:\opencv\final, and the last cmake argument should be the path to d:\opencv\sources

finally, don't forget to adjust the PATH, so it points to your newly build dlls, not the old, prebuilt ones !