Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build ZBar for 64bit WIndows

The ZBar library is distributed with a 32bit binary lib file and dll. I need to use ZBar in a 64bit Windows application. It seems that the only way to get 64bit version of ZBar is to build it yourself.

According to this faq, the only way to build ZBar is by using MinGW. I also found this patch for patching ZBar in order to produce a 64bit build.

Of course I can try to follow these suggestions and try to build ZBar, but since I have never built ZBar before, and I don't know MinGW at all (I am a VC++ user), I was wandering if anyone has built a 64bit version of ZBar for Windows successfully. Maybe there is even someone that can share the binaries with the rest of us. Any suggestion is welcome!

Thanks.

like image 577
Dani van der Meer Avatar asked Jan 22 '15 08:01

Dani van der Meer


1 Answers

Since there were no answers I assume that there is no available 64 build. I therefore decided to do it myself. Since I don't know MinGW and the link from the zbar faq seems to be broken, I decided to build using VS2013.

The code for the VS2013 project and the adapted ZBar code can be found in https://github.com/dani4/ZBarWin64. I also added the built libraries themselves. See the README for details.

I am new to github so possibly my choice to change a fork of ZBar wasn't the right one, and I should have created a new repository. Anyway I think that the library can be used in this form as well.

like image 116
Dani van der Meer Avatar answered Sep 28 '22 18:09

Dani van der Meer