Python and C++ : different compilers ok?
Hi all, I have been looking at opencv (3.0) closely. I haven't decided whether I will have a C++ application or a Python application.
I am wondering what sort of environment C++ developers have? Do you folks mix C++ and Python code? I mean is there any reason for you to pass data structures around from Python to your own C++ extension module? Or perhaps call some simple Python script from my C++ executable?.
In Windows, I plan the following opencv 3 environment:
For C++: Use Visual Studio 2012, and get pre built x64 opencv 3.0 build.
For Python : Get the 64 bit anaconda distribution which has everything for opencv bundled.
(basically they are not from the same compiler )
Would this pose any problems? Are there situations due to which, later I would have to build Python, numpy, opencv everything later from one common compiler?.
Thanks
T
the prebuilt cv2.pyd is a self-consistant binary, which compiler it was built with, does not matter.
but if you have the c++ version from somewhere, and the python binaries from somewhere else, you probably have a version conflict (i even doubt, that conda will install the opencv 3 version)
last but not least - with opencv3, you will pretty soon discover, that you will need the opencv_contrib repo (facerec, SIFT, and whatnot). and in this case, you will have to build both c++ and python version from src.
maybe installing prebuilt stuff is not such a great idea with 3.0