fstark / macflim

MacFlim flim player source code and utilities
MIT License
93 stars 4 forks source link

Compile Error #38

Closed kenfager closed 1 year ago

kenfager commented 1 year ago

Hello!

I've been meaning to try this since being wowed by it at Midwest Gaming Classic. I've downloaded the repository to my PiSCSI device and followed the installs for dependencies. When I try to make the file I'm getting an error.

pi@piscsi:~/macflim/src $ make
c++  -std=c++2a -c -O3 -I liblzg/src/include flimmaker.cpp -o flimmaker.o
In file included from flimcompressor.hpp:5,
                 from flimencoder.hpp:6,
                 from flimmaker.cpp:37:
framebuffer.hpp:7:10: fatal error: bit: No such file or directory
 #include <bit>
          ^~~~~
compilation terminated.
make: *** [Makefile:26: flimmaker.o] Error 1

Any guidance for someone who doesn't know C++ would be most appreciated.

-ken

fstark commented 1 year ago

Thx for the report, let's debug that.

This is strange as \<bit> is a standard C++20 include.

However, I don't think I use the functions anymore, and removing the include from my version didn't break anything.

Can you remove the line #include from line 7 of ruler.hpp and tell me how it goes?

(but your C++ dev environment is wrong somewhere, so we may have other issues later)

fstark commented 1 year ago

Looking at another comment, it seems you standard library may be slightly outdated:

https://github.com/yuzu-emu/yuzu/issues/4780

Anyway, let me know if removing it works.

fstark commented 1 year ago

(removed the include in the latest commit, this issue should be fixed)