Closed CanadianJeff closed 8 years ago
What does apt policy libpng-dev
return?
Also I would suggest using pastebin to paste such large blocks of text... or some other kind of online text sharing platform.
Hi there, I got an error while compiling snes9x-gtk stable 1.54 from source here : https://github.com/snes9xgit/snes9x/releases
src/filter_xbrz.cpp: In function ‘void xBRZ(uint8*, uint32, uint8*, uint32, int, int, int)’:
src/filter_xbrz.cpp:258:87: error: ‘xbrz::ColorFormat’ is not a class or namespace
alingFactor, &renderBuffer[0], &xbrzBuffer[0], width, height, xbrz::ColorFormat
^
Makefile:1570 : la recette pour la cible « src/snes9x_gtk-filter_xbrz.o » a échouée
make[1]: *** [src/snes9x_gtk-filter_xbrz.o] Erreur 1
make[1] : on quitte le répertoire « /home/linux/Documents/Compile/snes9x-1.54/gtk »
Makefile:2472 : la recette pour la cible « all-recursive » a échouée
make: *** [all-recursive] Erreur 1
This error appears on both 32-bits and 64-bits whatever I configure gtk2 or gtk3
Note that the Unix version no-gui compiles flawlessly
What version of gcc are you using? xBRZ now requires C++11, so you'll have to use something that supports it.
The png error is someone working on Ubuntu trying to cover their bases and breaking things. Gentoo did something similar a while back.
Better than pastebin:
Encryption ensures that the contents have not been altered from the original. Plus their website loads faster :)
Other issue with pastebin is the amount of malicious content being dumped there (until it is eventually removed) resulting in the risk of legitimate content also being removed if it looks like source code. There have been some instances of this in the past so I always try to recommend alternatives to pastebin when possible.
@jcdenton2k Thanks for the tip, will certainly use it from now on!
What version of gcc are you using? xBRZ now requires C++11, so you'll have to use something that supports it.
I'm using gcc/g++ 5.3.1, the default one on Ubuntu Xenial
Maybe I missed something To compile I did those following commands :
snes9x-1.54/gtk$ ./autogen.sh
then
snes9x-1.54/gtk$ ./configure --with-gtk3
then
snes9x-1.54/gtk$ make
then got the error during the making process
Edit : Successfully compiled without xBRZ using --without-xbrz argument on configuration step Too bad, actually can't compile with xBRZ
Yes, looks like the new xBRZ is hideously non-compliant, and only builds on gcc 6, not gcc 5 nor clang 3.8. I'll have to redo the process of un-C++11ing it.
Scratch that, the std flag wasn't taking. Fixing it in git.
Fixed with a macro. I wasn't seeing an error, because I'm using gcc 6, and it has C++11 by default (doh). You'll still need C++11 if you want xBRZ, but it shouldn't fail if your compiler has support.
Thanks Bearoso, it works like a charm :)