stratagus icon indicating copy to clipboard operation
stratagus copied to clipboard

Does not build with vorbis disabled, but theora enabled

Open AMDmi3 opened this issue 3 years ago • 0 comments

With -DWITH_OGGVORBIS=false -DWITH_THEORA=true:

/usr/local/libexec/ccache/c++ -DHAVE_GETOPT -DHAVE_STRCASESTR -DHAVE_STRNLEN -DPIXMAPS=\"/usr/local/share/pixmaps\" -DUSE_BSD -DUSE_BZ2LIB -DUSE_MNG -DUSE_THEORA -DUSE_ZLIB -I/wrkdirs/usr/ports/games/stratagus/work/stratagus-3.2.0/src/include -I/wrkdirs/usr/ports/games/stratagus/work/stratagus-3.2.0/src/guichan/include -I/wrkdirs/usr/ports/games/stratagus/work/stratagus-3.2.0/src/guichan/include/guichan -I/wrkdirs/usr/ports/games/stratagus/work/stratagus-3.2.0/src/third_party -I/wrkdirs/usr/ports/games/stratagus/work/.build -I/usr/local/include/lua51 -I/usr/local/include/SDL2 -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -Wno-register -fsigned-char -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -Wno-register -fopenmp=libomp -std=gnu++17 -MD -MT CMakeFiles/stratagus.dir/tolua.cpp.o -MF CMakeFiles/stratagus.dir/tolua.cpp.o.d -o CMakeFiles/stratagus.dir/tolua.cpp.o -c /wrkdirs/usr/ports/games/stratagus/work/.build/tolua.cpp
/wrkdirs/usr/ports/games/stratagus/work/.build/tolua.cpp:397:2: error: unknown type name 'Movie'
 Movie* self = (Movie*) tolua_tousertype(tolua_S,1,0);
 ^
/wrkdirs/usr/ports/games/stratagus/work/.build/tolua.cpp:397:17: error: use of undeclared identifier 'Movie'
 Movie* self = (Movie*) tolua_tousertype(tolua_S,1,0);
                ^
/wrkdirs/usr/ports/games/stratagus/work/.build/tolua.cpp:397:23: error: expected expression
 Movie* self = (Movie*) tolua_tousertype(tolua_S,1,0);
                      ^
...

There's a stub class Movie in movie.h, which is apparently there to avoid this problem, but it's wrapped in #ifndef USE_THEORA and is not used in this specific case.

AMDmi3 avatar Apr 18 '22 12:04 AMDmi3