Posts for PseudoPrecise


Joined: 1/24/2017
Posts: 2
Thanks True, but I did have all of the proper headers. Turns out there was some name changes. "PIX_FMT_RGBA" should be "AV_PIX_FMT_RGBA" and "PIX_FMT_BGR24" should be "AV_PIX_FMT_BGR24" for these files in lsnes/src/platform/wxwidgets: mainwindow.cpp editor-movie.cpp editor-tasinput.cpp
Post subject: Error Compliling lsnes (wxwidgets, ubuntu)
Joined: 1/24/2017
Posts: 2
I've managed to resolve a few errors so far in compiling lsenes, but this is one I'm stuck on. I have libwxbase3.0-dev and libwxgtk3.0-dev installed via apt, but when I run make from the lsnes directory I end up getting the following error:
make -C wxwidgets
make[3]: Entering directory '/home/promethean/Games/SNES/lsnes/src/platform/wxwidgets'
g++ -c -o mainwindow.o mainwindow.cpp -I../../../include -std=gnu++0x -pthread -g -DBOOST_THREADS -DUSE_BOOST_REGEX -DUSE_LIBGCRYPT_SHA256 -I/usr/include/lua5.2  -DWITH_OPUS_CODEC -I/usr/include/opus -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -I/usr/local/include -Wall
mainwindow.cpp: In member function ‘void wxwin_mainwindow::panel::on_paint(wxPaintEvent&)’:
mainwindow.cpp:975:5: error: ‘PIX_FMT_RGBA’ was not declared in this scope
     PIX_FMT_RGBA, tw, th, PIX_FMT_BGR24, scaling_flags, NULL, NULL, NULL);
     ^
mainwindow.cpp:975:27: error: ‘PIX_FMT_BGR24’ was not declared in this scope
     PIX_FMT_RGBA, tw, th, PIX_FMT_BGR24, scaling_flags, NULL, NULL, NULL);
                           ^
Makefile:24: recipe for target 'mainwindow.o' failed
make[3]: *** [mainwindow.o] Error 1
make[3]: Leaving directory '/home/promethean/Games/SNES/lsnes/src/platform/wxwidgets'
Makefile:24: recipe for target 'wxwidgets/__all__.files' failed
make[2]: *** [wxwidgets/__all__.files] Error 2
make[2]: Leaving directory '/home/promethean/Games/SNES/lsnes/src/platform'
Makefile:59: recipe for target 'platform/__all__.files' failed
make[1]: *** [platform/__all__.files] Error 2
make[1]: Leaving directory '/home/promethean/Games/SNES/lsnes/src'
Makefile:83: recipe for target 'src/__all_files__' failed
make: *** [src/__all_files__] Error 2
Hopefully someone has an idea of what to try because I'm all out at the moment.