-
Notifications
You must be signed in to change notification settings - Fork 18
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
Trying to build on GLES platforms fails #14
Comments
I'm sorry, but i don't have a rpi or similar platform to test this
El lun., 10 de dic. de 2018 19:02, Manuel Alfayate Corchete <
[email protected]> escribió:
… @alfrix <https://github.com/alfrix>:
I was trying to get this core to build on non-Xorg, GLES-based platforms
like the Raspberry Pi or any X86 PC with no Xorg server running (RetroArch
is know for running on KMS/DRM+GLES) but it fails:
../../gapi_gl.h:92:24: fatal error: GL/glx.h: No such file or directory
#include <GL/glx.h>
^
compilation terminated.
I am forcing compilation by defining a non-Xorg OS on core.h like this:
#elif __KMSDRM__
#define _OS_KMSDRM 1
#define _GAPI_GL 1
#define _GAPI_GLES 1
#define DYNGEOM_NO_VBO
and also using that OS on gapi_gl.h like this on line 48:
#elif defined(_OS_RPI) || defined(_OS_CLOVER) || defined(_OS_KMSDRM)
Then I added a new platform definition on the libretro platform Makefile,
like this:
else ifeq ($(platform), rpi)
TARGET := $(TARGET_NAME)_libretro.so
fpic := -fPIC
SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined
CXXFLAGS += -D__KMSDRM__
CFLAGS += -D__KMSDRM__
LIBS += -lpthread
GLES = 1
And then it builds on the X-less Pi as intended, but all I get on loading
PSX data is a segfault... Can you please test?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABMIBf6bg4e-KSQngkpYZQGbfWNUHMhcks5u3tnZgaJpZM4ZMQ8T>
.
|
@alfrix : Any GNU/Linux PC will do. |
@alfrix : Trying to build a GLES version with current sources I get this:
It's much longer, but you get the idea. I believe something is wrong with these redefinitions... |
you cannot just turn GLES on linux, you need to extensively modify gapi_gl to add your platform, otherwise it will assume desktop GL each time there is an defined(_OS_LINUX), |
@alfrix : but "my platform" is libretro, as in src/platform/libretro. Is this core supposed to build on something like the Raspberry Pi? |
i have only tested fedora and ubuntu, i have never seen a x86 distro that comes with gles but not gl, |
@alfrix : Desktop GNU/Linux distros are not to be used as a reference when it comes to libretro cores, since LR/RA main point is being able to run the cores in WAY more different ways inside the Linux ecosystem, like SBCs (Pi, etc), consoles (NES/SNES/PSX Classics), etc... I will give it a go, but I need your help. Can I meet you on IRC or any other method for a fluid comunication? |
Most LR/RA devs, including maintainers hangout on the Discord channel |
@alfrix : I don't need general RA/LR or programming advice, but help with the OpenLara core, so I need to contact you. |
i go there regularly, you can PM me if you prefer it, once you join the channel. |
@alfrix : Does xprogger also collaborate in the libretro port? |
@vanfanel I'll help all I can :) |
@XProger : Do you use IRC? What server/channel? |
@vanfanel nope, only discord and telegram |
Can you guys send me a new invite or tell me how to join again? This discord stuff is new to me... |
TombRaider https://discord.gg/3JUqPgV <https://discord.gg/3JUqPgV>
Libretro: https://discord.gg/GZJKWjJ <https://discord.gg/GZJKWjJ>
El sáb., 29 de dic. de 2018 a la(s) 14:39, Manuel Alfayate Corchete (
[email protected]) escribió:
… Can you guys send me a new invite or tell me how to join again? This
discord stuff is new to me...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABMIBVSIv4_eeSIKqN5eFV8WV7F4RfAAks5u96jugaJpZM4ZMQ8T>
.
--
Alfredo Monclus
|
I am writting concise instructions to build OpenLara on RetroArch using GLES instead of Desktop OpenGL. It's very easy and NO Raspberry Pi is needed, any desktop GNU/Linux computer will do, because MESA has GLES implemented for desktop systems too.
You can easily see why it fails. It's the only core not compatible with GLES on Linux, but I am sure it's easy for you to fix it, since the core itself has GLES code already (in fact, this core is supposed to run on the Switch, which only has GLES, isn't it?). |
@alfrix : GLES is broken again (it builds, but does not display anything). It's not your fault. Please merge latest upstream changes to get it working again. |
@alfrix:
I was trying to get this core to build on non-Xorg, GLES-based platforms like the Raspberry Pi or any X86 PC with no Xorg server running (RetroArch is know for running on KMS/DRM+GLES) but it fails:
I am forcing compilation by defining a non-Xorg OS on core.h like this:
and also using that OS on gapi_gl.h like this on line 48:
#elif defined(_OS_RPI) || defined(_OS_CLOVER) || defined(_OS_KMSDRM)
Then I added a new platform definition on the libretro platform Makefile, like this:
And then it builds on the X-less Pi as intended, but all I get on loading PSX data is a segfault... Can you please test?
The text was updated successfully, but these errors were encountered: