Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not build with vorbis disabled, but theora enabled #396

Closed
AMDmi3 opened this issue Apr 18, 2022 · 0 comments
Closed

Does not build with vorbis disabled, but theora enabled #396

AMDmi3 opened this issue Apr 18, 2022 · 0 comments

Comments

@AMDmi3
Copy link
Contributor

AMDmi3 commented Apr 18, 2022

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 AMDmi3 changed the title Does not build with vorbis disabled Does not build with vorbis disabled, but theora enabled Apr 18, 2022
@timfel timfel closed this as completed in 1329ecc Dec 20, 2022
andreas-volz pushed a commit to andreas-volz/stratagus that referenced this issue Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant