-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
win64 build process #144
Comments
and get a libzbar-0.dll in /mingw64/bin then build python
then i can use zbar normally in the mingw env |
i am a Python user so that i used setup.py to build zbar.
and a setup.py like below
also add a Macro ZBAR_LITE to zbarmodule.h and add controller like below
add to zbarmodule.c
you only need to do like below
|
success
gcc -v
|
in the setup.py you can use
to make no extra libs of dll for linux config.h is like
which is really different from Windows |
I see no real value simply posting all your exploration history on GitHub. If you only want C/C++ library on msys2/mingw platform, please use prebuilt https://packages.msys2.org/package/mingw-w64-x86_64-zbar . If you want extra bindings of other languages (e.g., Python), please work with existing MSYS2 packagers. (P.S. These are just my personal suggestions. I am neither zbar upstream nor msys2 packager.) |
This is not a problem but my personal process to show how to build a zbar lib can be used in Windows System instead of MSYS2 or any other subsystem.Also if i want to use zbar via python binding . for now , i must install lib zbar first ,and then install zbar-python binding. That is not convinient. So i found a way to build python whl with zbar-python binding and zbar lib all in one lib. So that a python users can just install once to use zbar. Also for python's flexibility , i just want to support the basic functions of zbar---scanning and recognization images to python`s user. |
I'll close it, as this is not really an issue. Also, we have already an actions workflow to build it using Github's infra. The produced patches are both at the Zbar releases page (https://github.com/mchehab/zbar/releases), where the built files will be retained from 90 days (the maximum policy at Github) and at: |
first install MSYS2
then
and get a msys-zbar-0.dll in /usr/bin
then build python
then i can use zbar normally in the MSYS2 env not the win64 env.
So i decide to build it in mingw64 instead of MSYS2 env.
The text was updated successfully, but these errors were encountered: