Coder Social home page Coder Social logo

Comments (6)

avibrazil avatar avibrazil commented on July 18, 2024 3

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.

mabushey avatar mabushey commented on July 18, 2024 2

On Debian/Ubuntu: apt-get install clang cmake

from heif.

teknoraver avatar teknoraver commented on July 18, 2024 1

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.

Sunting78 avatar Sunting78 commented on July 18, 2024

I have the same problem with you. Have you solved this problem now?

from heif.

kokokranc avatar kokokranc commented on July 18, 2024

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.

nokiatech avatar nokiatech commented on July 18, 2024

Jsonlib no longer part of code base as of v3.0.

from heif.

Related Issues (20)

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.