Windows/mingw installation problem

asked 2016-01-20 22:47:24 -0500

aag gravatar image

updated 2016-01-20 22:53:33 -0500

It seems that on Windows (mingw), instead of being installed into $(CMAKE_INSTALL_PREFIX)/lib libraries end up in machine+architecture dependent folder, e.g. if CMAKE_INSTALL_PREFIX is "C:/prj/INSTALL", I see:

-- Installing: C:/prj/INSTALL/i386-w64-mingw32/x86/mingw/lib/libopencv_core310.dll.a
-- Installing: C:/prj/INSTALL/i386-w64-mingw32/x86/mingw/bin/libopencv_core310.dll

Additionally, Python2 module instead of being created in $(CMAKE_INSTALL_PREFIX)/lib/Python2.7/site-packages like happens on, say, OSX, ends up being installed into Python's installation folder:

-- Installing: C:/Python27/Lib/site-packages/cv2.pyd

Is there a way to make both behaviors consistently respecting CMAKE_INSTALL_PREFIX across multiple OSs?

edit retag flag offensive close merge delete

Comments

Looks like the latter can be controlled with PYTHON2_PACKAGES_PATH (still doesn't explain the difference in defaults between the two OSs, though). Still looking at the first one.

aag gravatar imageaag ( 2016-01-21 06:00:01 -0500 )edit