Comments (6)
Solved. Use clang compiler (LLVM) instead of g++.
On Fedora do this as root:
dnf install clang;
Then compile heif like this:
git clone https://github.com/nokiatech/heif.git
cd heif;
CXX=clang++ cmake .;
make
from heif.
On Debian/Ubuntu: apt-get install clang cmake
from heif.
Oh c'mon, changing the compiler when the fix is just inserting a small comment in the code?
I've a pull request to fix this, please consider merging.
from heif.
I have the same problem with you. Have you solved this problem now?
from heif.
I'm on windows and compiling from MinGW toolchain, same problem.
Cmake version 3.9.3
MinGW version MinGW-W64-builds-4.3.0
cd /d D:\***\Documents\heif-master\build2\Srcs\jsonlib && "D:\Program Files\mingw-w64\x86_64-7.1.0-posix-seh-rt_v5-rev1\mingw64\bin\g++.exe" -std=c++11 -Wall -Wextra -Werror -Wno-missing-field-initializers -o CMakeFiles\json.dir\jsoncpp.cpp.obj -c D:\***\Documents\heif-master\Srcs\jsonlib\jsoncpp.cpp D:\***\Documents\heif-master\Srcs\jsonlib\jsoncpp.cpp: In member function 'bool Json::OurReader::readToken(Json::OurReader::Token&)': D:\***\Documents\heif-master\Srcs\jsonlib\jsoncpp.cpp:1444:5: error: this statement may fall through [-Werror=implicit-fallthrough=] if (features_.allowSingleQuotes_) { ^~ D:\***\Documents\heif-master\Srcs\jsonlib\jsoncpp.cpp:1449:3: note: here case '/': ^~~~ cc1plus.exe: all warnings being treated as errors Srcs\jsonlib\CMakeFiles\json.dir\build.make:64: recipe for target 'Srcs/jsonlib/CMakeFiles/json.dir/jsoncpp.cpp.obj' failed mingw32-make[2]: *** [Srcs/jsonlib/CMakeFiles/json.dir/jsoncpp.cpp.obj] Error 1
from heif.
Jsonlib no longer part of code base as of v3.0.
from heif.
Related Issues (20)
- Compile Error: Cygwin Unix Makefile GNU 10.3.0
- 编译代码成功,但是没有生成heifjni.so文件,这是为什么? HOT 2
- How to convert HEIC to HEVC? HOT 2
- Creating heif overlay image
- [Android] no build.sh file
- Failed to compile in AndroidStudio
- C++ 如何实现HEIC转JPEG? HOT 1
- what is the maven repository address of java sdk HOT 1
- How to convert GridImageItem to JPEGImageItem with java
- Crash HOT 2
- Mimetype handling for jpeg
- Different compression quality
- JPEG2000 in Heif
- Can't find HEIF files HOT 1
- Example sequences are not compliant
- can hevc to heic?
- incorrect writing and reading of rref
- test images in non-landscape EXIF orientation
- libheifjni not built on Mac
- use github branch gh-pages,js decode ,produce green border
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.