美文网首页
关于fastzbarlight

关于fastzbarlight

作者: RENO216 | 来源:发表于2017-04-13 21:49 被阅读0次

    出现了和 fastzbarlight build failed on MacOSX 10.11.6中相同的问题,其实第一个回答的人duguyue100说的很好,具体实现方法参见morizotter提出的:

    My way(Mac):
    Install zbar with Homebrew like brew install zbar --without-xshm

    1. Download fastzbarlight from its site.
    2. Move to fastzbarlight directory.
    3. Rewrite setup.py's zbar link like below:
    # extra_link_args=[os.path.join(os.path.dirname(__file__), 'src/fastzbarlight/vendor/zbar-0.10/zbar/.libs/libzbar.a')],
    extra_link_args=[os.path.join(os.path.dirname(__file__), '/usr/local/Cellar/zbar/XXXX/lib/libzbar.a')],# here XXXX is your zbar version
    
    1. Then, python setup.py install
    2. Finally,
    cd ~ 
    pip install -e
    

    succeeds!

    相关文章

      网友评论

          本文标题:关于fastzbarlight

          本文链接:https://www.haomeiwen.com/subject/kcsiattx.html