Giter Site home page Giter Site logo

Comments (6)

jassonjackson avatar jassonjackson commented on June 28, 2024 1

from heif-utility-native-dll.

liuziangexit avatar liuziangexit commented on June 28, 2024

您好,关于这个编译错误,以下链接给出了简单的解决方法
https://github.com/liuziangexit/heif/blob/master/README.md
按照该链接所说的去做,就可以通过编译。
但是这个程序在Linux上运行将会遇到一些问题,因为opencv默认版本的动态库不支持hevc解码,所以运行时将会在read_hevc_bitstream_to_mat_vector函数处出现运行时错误。
解决方法是,您需要自己打开opencv的cmake的“hevc支持”的编译选项,然后重新编译一遍opencv,那是一个复杂的工程。
在您完成编译了支持hevc的opencv后,将opencv的库文件复制到本项目的目录,应该就能运行成功。

from heif-utility-native-dll.

jassonjackson avatar jassonjackson commented on June 28, 2024

还是一样的错误,为啥?是我没改对吗
qq20180131-0

from heif-utility-native-dll.

liuziangexit avatar liuziangexit commented on June 28, 2024

default
您好,我想大概是您没改对。首先您要知道,在Unix上的大部分配置文件里,“#”意味着注释掉这一行,这说明您的修改完全没有起到任何作用。

请尝试像上图中这样进行修改,然后cmake CMakeLists.txt,然后make。
因为有几个月了,所以我不太记得需要怎么修改了。因为现在很晚了,请您暂且按照上图的方式试一下,如果不行的话,我明天晚上去我的centos试一试,然后给您确切答复。

from heif-utility-native-dll.

jassonjackson avatar jassonjackson commented on June 28, 2024

子昂,按您上述的方法改,还是一样的问题,但是我修改成下图之后,这个错误解决了,但是出现了如下错误,我想这就是您说的opencv默认版本的动态库不支持hevc解码这个问题。
2018-02-01 10 12 58

from heif-utility-native-dll.

liuziangexit avatar liuziangexit commented on June 28, 2024

不是不是,您这个是编译错误,是没有opencv的头文件,您需要把opencv头文件添加到编译器include目录。

我说的那个不支持hevc解码的问题是运行时错误,不是编译错误。。。我觉得您还是放弃在Linux上运行这玩意儿的打算吧,确实特别麻烦。Windows上的编译运行会稍微简单一些。。。

from heif-utility-native-dll.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.