libretro / blastem

Upstream tracking repo of BlastEm, the fast and accurate Genesis emulator, with libretro specific changes
https://www.retrodev.com/blastem/
GNU General Public License v3.0
53 stars 25 forks source link

Does not compile with NOGL #33

Closed vit1251 closed 3 years ago

vit1251 commented 3 years ago

Does not compile with NOGL marker.

kivutar commented 3 years ago

Try to empty LIBS or to pass NOGL=1 to $(MAKE) in Makefile.libretro

vit1251 commented 3 years ago

Make with

# NOGL=1 make

And receive next error output:

render_sdl.c: In function ‘render_get_framebuffer’:
render_sdl.c:1423:21: error: ‘tex_width’ undeclared (first use in this function); did you mean ‘main_width’?
     buffer = calloc(tex_width*(tex_height + 1), sizeof(uint32_t));
                     ^~~~~~~~~
                     main_width
render_sdl.c:1423:21: note: each undeclared identifier is reported only once for each function it appears in
render_sdl.c:1423:32: error: ‘tex_height’ undeclared (first use in this function); did you mean ‘main_height’?
     buffer = calloc(tex_width*(tex_height + 1), sizeof(uint32_t));
                                ^~~~~~~~~~
                                main_height
make: *** [Makefile:363: render_sdl.o] Error 1
kivutar commented 3 years ago

If you're compiling render_sdl.c, you're not compiling the libretro core.

Please build with:

make -f Makefile.libretro
vit1251 commented 3 years ago

I understood what was the matter. I am compiling a version for standalone use, i.e. w/o libretro project. I apologize for my mistake. I'll try to find the author of the origianal BlastEm project.