Thursday, February 20, 2020

building Windows binaries on the cloud - AppVeyor instead of Azure

Instead of relying on a virtual machine which will expire in 60 days, explored other solutions like an Azure free trial (one year) virtual machine. I wanted to try a build with VS2015, since the OpenCV build which I have used and is known to be working was built with an older VS than the current VS2019. Also the current VS2019 had other build issues. But when I tried an Azure VM with a VS2015 image, I got the platform image not found error as in this page,
https://medium.com/@rafique82.ai/azure-virtual-machine-visual-studio-platform-image-not-found-4234fe058317

Instead of trying to troubleshoot this, since this is available only for a year, thought of CI tools like Travis, but for Windows. Googling found that AppVeyor was more stable for Windows CI.

Googling the docs and support forums, finally got a project using QHY camera SDK and OpenCV to build - the appveyor.yml gives the detailed syntax.
https://github.com/hn-88/ViewportSavercWin64/blob/master/appveyor.yml.

I also needed to tweak the paths in the project file, in this case set using a property page qhy.props, to match the values set in the yml file. 

No comments:

Post a Comment