libretro / parallel-n64

Optimized/rewritten Nintendo 64 emulator made specifically for Libretro. Originally based on Mupen64 Plus.
327 stars 128 forks source link

Can't build using the make command on Raspbian #355

Open zacharyvincze opened 8 years ago

zacharyvincze commented 8 years ago

For some reason, I can't build using the make command when trying to build the emulator. I instead get the following error.

g++ -std=gnu++98 -MMD -O2 -DNDEBUG  -D__LIBRETRO__ -DM64P_PLUGIN_API -DM64P_CORE_PROTOTYPES -D_ENDUSER_RELEASE -DSINC_LOWER_QUALITY  -I./glide2gl/src/Glitch64/inc -I./mupen64plus-core/src -I./mupen64plus-core/src/api -I./mupen64plus-core/src/plugin/audio_libretro -I./libretro-common/include -I./libretro  -fPIC    -DENABLE_3POINT -DENABLE_TEXTURE_SAMPLING -DHAVE_OPENGL  -c gles2rice/src/DeviceBuilder.cpp -o gles2rice/src/DeviceBuilder.o
In file included from ./libretro-common/include/glsm/glsm.h:30:0,
                 from ./libretro-common/include/glsm/glsmsym.h:26,
                 from gles2rice/src/osal_opengl.h:31,
                 from gles2rice/src/DeviceBuilder.cpp:21:
./libretro-common/include/glsym/rglgen_headers.h:64:19: fatal error: GL/gl.h: No such file or directory
compilation terminated.
Makefile:395: recipe for target 'gles2rice/src/DeviceBuilder.o' failed
make: *** [gles2rice/src/DeviceBuilder.o] Error 1

I'm not really an expert when it comes to this stuff. So let me know if I'm doing something wrong when building the emulator. I'm using a Raspberry Pi 2 running the Raspbian operating system.

Looking at the error, it seems there is a problem with the DeviceBuilder.o file. But like I said, I'm not really an expert when it comes to this kind of stuff. Looking at the error even more, it looks like there's a problem with the installation with one of the plugins (gles2rice). So if there's a way to build it without this plugin, that'd be great.

loganmc10 commented 8 years ago

You need to set the platform

platform=rpi2 make

zacharyvincze commented 8 years ago

@loganmc10 Nah, I get the same error. I don't think it has anything to do with the platform, it seems it's one of the plugins that doesn't want to install for some reason.

Alcaro commented 8 years ago

Looks like you forgot installing the GL headers. Should be package mesa-common-dev.

zacharyvincze commented 8 years ago

@Alcaro Thanks, the package mesa-common-dev helped me with the installation a bit more. However, I'm now getting the following error.

Makefile:392: recipe for target 'mupen64plus-core/src/r4300/pure_interp.o' failed
make: *** [mupen64plus-core/src/r4300/pure_interp.o] Error 1

Any other headers I'm missing?

loganmc10 commented 8 years ago

Don't install anything to do with Mesa. The Raspberry Pi uses GLES libraries located in /opt/vc/lib and /opt/vc/include.

zacharyvincze commented 8 years ago

@loganmc10 Ok, then how do I do the installation?

loganmc10 commented 8 years ago

Try platform=rpi2 make clean platform=rpi2 make

The platform line is essential for it to work