Ask Your Question
0

Cross Compile OpenCV program for Windows

asked 2015-04-11 15:20:59 -0600

Hello, I wrote a program in Linux that heavily depends on OpenCV, but some collaborators of mine wish to use it with Windows. How can I cross compile it so that it can run on Windows? Do my collaborators need to install the Windows version of OpenCV, or are all of the necessary files included with the .exe that I'd be sending? Also, parts of my program's core depend on OpenCV being built with ffmpeg support (it needs to open and analyze some mjpeg streams). Would the required files for that be included, or do they need to install additional software?

Thanks for your assistance,
Thomas

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-04-13 06:02:19 -0600

Adi gravatar image

updated 2015-04-13 06:03:24 -0600

If you use OpenCV with static linking, your resulting .exe should have all the necessary functions. This is true for all OpenCV modules, except the FFMPEG module which due to licensing issues uses an external DLL that you will need to ship with your exe if you intend to use it.

edit flag offensive delete link more

Comments

Keep in mind that building your application statically will also require you to statically link any other dependencies there might be. Therefore you should first trial run this on a clean windows system before shipping it to your client. Keep in mind that getting this process sorted out could take quite some time.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-04-13 06:09:41 -0600 )edit
1

Good point.

Adi gravatar imageAdi ( 2015-04-13 08:06:02 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-04-11 15:20:59 -0600

Seen: 827 times

Last updated: Apr 13 '15