-
install zbar on windows with include and library files
-
make sure mingw installed and bin directory added to the path
-
in PYTHONPATH\Lib\distutils, create a file distutils.cfg and add two lines:
[build]
compiler=mingw32
-
get
dll
lib
andinclude
file from ftp://sourceware.org/pub/pthreads-win32/dll-latest copy files toPATH_MINGW32/[lib,bin,include]
separately, just need file name likepthreadGC2
and remember to chang the name tolibpthread
-
change or add lines in
setup.py
:extra_compile_args=['-std=c99', '-IPATH_TO\ZBar\include', '-lPATH_TO\ZBar\lib'],
extra_link_args=["PATH_TO\ZBar\lib\libzbar.dll.a"],
remove line
libraries=['zbar'],
-
run
python setup.py install
Last active
July 1, 2023 19:58
-
-
Save Zephor5/aea563808d80f488310869b69661f330 to your computer and use it in GitHub Desktop.
I got a working solution described here: https://medium.com/@ruvi.d/getting-zbarlight-to-work-on-windows-a3dc643dba18
@ruvi-d I created a whl file, then ran pip install zbarlight-3.1.dev0-cp38-cp38-win_amd64.whl
, but when I add import zbarlight
I get an error - ImportError: DLL load failed while importing _zbarlight: The specified module could not be found.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can some one help me to install zbar light in windows ?