Comments (6)
from heif-utility-native-dll.
您好,关于这个编译错误,以下链接给出了简单的解决方法
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.
from heif-utility-native-dll.
您好,我想大概是您没改对。首先您要知道,在Unix上的大部分配置文件里,“#”意味着注释掉这一行,这说明您的修改完全没有起到任何作用。
请尝试像上图中这样进行修改,然后cmake CMakeLists.txt,然后make。
因为有几个月了,所以我不太记得需要怎么修改了。因为现在很晚了,请您暂且按照上图的方式试一下,如果不行的话,我明天晚上去我的centos试一试,然后给您确切答复。
from heif-utility-native-dll.
子昂,按您上述的方法改,还是一样的问题,但是我修改成下图之后,这个错误解决了,但是出现了如下错误,我想这就是您说的opencv默认版本的动态库不支持hevc解码这个问题。
from heif-utility-native-dll.
不是不是,您这个是编译错误,是没有opencv的头文件,您需要把opencv头文件添加到编译器include目录。
我说的那个不支持hevc解码的问题是运行时错误,不是编译错误。。。我觉得您还是放弃在Linux上运行这玩意儿的打算吧,确实特别麻烦。Windows上的编译运行会稍微简单一些。。。
from heif-utility-native-dll.
Related Issues (11)
- 请求帮助 HOT 8
- Nokia HEIF does not open HOT 1
- How to save from JPG/JPEG/PNG to HEIC format HOT 3
- 非apple heif 文件不能使用
- 能写一个jpg 转化为heif的程序吗?谢谢了 HOT 1
- 大神,能提供一个jpg转heif 在线的,要求实时处理的这种思路吗? HOT 1
- 求助 liuziangexit/heif example.cpp 程序运行出错 HOT 10
- 此程序能在linux编译和运行不 HOT 2
- 在linux上编译通过,生成可执行文件,下一步怎么执行,怎么将.heic格式的图片转换jpeg HOT 2
- Image Collection in a HEIC File? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heif-utility-native-dll.