Ask Your Question
0

Where can I find the cmake options used for the 4.1.0 build

asked 2019-04-22 17:33:06 -0600

trispade gravatar image

updated 2019-04-22 23:03:38 -0600

I was having some issues with my custom build and decided to try the prebuilt and sure enough it worked. So now I am trying to find what cmake settings were used to build the default one. Also how do you get it to output the python bindings to build to the opencv/build/python directory mine keeps trying to put it into my python environment.

EDIT: I am using visual studio 15 2017 and cmake. Basically what I am trying to do is get the package build to work. However when I go to build it is grabbing absolute paths for my python environment. I am no longer using anaconda to do this but using the standard python 3.7.3 environment. I notice that the prebuilt 4.1.0 doesn't have this issue. I also notice that I am having a cmake warning pop up:

CMake Warning at cmake/OpenCVGenSetupVars.cmake:54 (message):
  CONFIGURATION IS NOT SUPPORTED: validate setupvars script in install
  directory
Call Stack (most recent call first):
  CMakeLists.txt:1066 (include)

Below is my first configuration run and my generation run separated into two separate blocks:

CONFIGURATION:

The CXX compiler identification is MSVC 19.16.27030.1
The C compiler identification is MSVC 19.16.27030.1
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Detecting C compile features
Detecting C compile features - done
Performing Test HAVE_CXX11 (check file: cmake/checks/cxx11.cpp)
Performing Test HAVE_CXX11 - Success
Found PythonInterp: C:/Users/DoD_Admin/AppData/Local/Programs/Python/Python37/python.exe (found suitable version "3.7.3", minimum required is "2.7") 
CMake Warning at cmake/OpenCVDetectPython.cmake:81 (message):
  CMake's 'find_host_package(PythonInterp 2.7)' founds wrong Python version:


  PYTHON_EXECUTABLE=C:/Users/DoD_Admin/AppData/Local/Programs/Python/Python37/python.exe


  PYTHON_VERSION_STRING=3.7.3

  Consider specify 'PYTHON2_EXECUTABLE' variable via CMake command line or
  environment variables

Call Stack (most recent call first):
  cmake/OpenCVDetectPython.cmake:275 (find_python)
  CMakeLists.txt:689 (include)


Could NOT find Python2 (missing: Python2_EXECUTABLE Interpreter) 
Found PythonInterp: C:/Users/DoD_Admin/AppData/Local/Programs/Python/Python37/python.exe (found suitable version "3.7.3", minimum required is "3.2") 
Found PythonLibs: optimized;C:/Users/DoD_Admin/AppData/Local/Programs/Python/Python37/libs/python37.lib;debug;C:/Users/DoD_Admin/AppData/Local/Programs ...
(more)
edit retag flag offensive close merge delete

Comments

2

What do you want exactly ? If you want default build parameters then you can display cout<< getBuildInformation() or in python print(cv.getBuildInformation())

LBerger gravatar imageLBerger ( 2019-04-23 01:50:27 -0600 )edit

Basically I need a simple opencv build but with gstreamer capabilities. I also will need to package it for installation by people that will be using my program. However when I run the PACKAGE Build in Visual Studio it gives me an error and tells me more or less that NSIS cant use absolute paths. I see that the prebuilt does something where everything installs to the opencv directory but I cant figure out how to get mine to do that.

trispade gravatar imagetrispade ( 2019-04-23 07:18:04 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-04-23 04:40:46 -0600

dkurt gravatar image

There is builbot where you can find all the details: https://pullrequest.opencv.org/buildb...

In example, master_winpack-build-win64-vc15.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-04-22 17:33:06 -0600

Seen: 3,645 times

Last updated: Apr 23 '19