cannot find -lzbar when trying to run "python.exe .\setup.py bdist_wheel" on zbarlight

44 Views Asked by At

I followed this: https://ruvi-d.medium.com/getting-zbarlight-to-work-on-windows-a3dc643dba18 I got an error - "I get "ValueError("Unknown MS Compiler version %s " % msc_ver)" so I changed "elif msc_ver == '1900':" to "elif msc_ver == '1916':" in the cygwinccompiler.py file. Now the error I get is ...AppData\Local\Programs\Python\Python38 -LC:\zbarlight\venv\PCbuild\amd64 -lzbar -lpython38 -lvcruntime140 -o build\lib.win-amd64-3.8\zbarlight\_zbarlight.cp38-win_amd64.pyd C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lzbar collect2.exe: error: ld returned 1 exit status

0

There are 0 best solutions below