Error while building ES

Post Reply
Moud_Sanchez
Posts: 26
Joined: Tue Nov 20, 2018 1:11 am
languages_spoken: english
ODROIDs: Odroid-Go
Odroid-Go Advance
Has thanked: 6 times
Been thanked: 4 times
Contact:

Error while building ES

Post by Moud_Sanchez »

Hey Guys,

I'm new to the dev world but trying to learn how to compile/build ES so that I can apply my own tweaks. To start I wanted to rebuild crashoverride's fork of ES: https://github.com/OtherCrashOverride/e ... tation-go2

I followed the instructions and installed all the dependencies. But when I attempt to 'make' I get the below error:

Code: Select all

~/build/crash/emulationstation-go2/es-core/src/renderers/Renderer_GL21.cpp: In function ‘void Renderer::createContext()’:
~/build/crash/emulationstation-go2/es-core/src/renderers/Renderer_GL21.cpp:78:37: error: ‘getSDLWindow’ was not declared in this scope; did you mean ‘setupWindow’?
   78 |   sdlContext = SDL_GL_CreateContext(getSDLWindow());
      |                                     ^~~~~~~~~~~~
      |                                     setupWindow
~/build/crash/emulationstation-go2/es-core/src/renderers/Renderer_GL21.cpp: In function ‘void Renderer::swapBuffers()’:
~/build/crash/emulationstation-go2/es-core/src/renderers/Renderer_GL21.cpp:247:21: error: ‘getSDLWindow’ was not declared in this scope; did you mean ‘setupWindow’?
  247 |   SDL_GL_SwapWindow(getSDLWindow());
      |                     ^~~~~~~~~~~~
      |                     setupWindow
make[2]: *** [es-core/CMakeFiles/es-core.dir/build.make:700: es-core/CMakeFiles/es-core.dir/src/renderers/Renderer_GL21.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:223: es-core/CMakeFiles/es-core.dir/all] Error 2
Thanks in advance.

crashoverride
Posts: 5016
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 313 times
Contact:

Re: Error while building ES

Post by crashoverride »

After cloning the repo and initializing the submodules, the following cmake command is used before "make":

Code: Select all

cmake GLES=ON ..

Moud_Sanchez
Posts: 26
Joined: Tue Nov 20, 2018 1:11 am
languages_spoken: english
ODROIDs: Odroid-Go
Odroid-Go Advance
Has thanked: 6 times
Been thanked: 4 times
Contact:

Re: Error while building ES

Post by Moud_Sanchez »

crashoverride wrote:
Fri Apr 17, 2020 9:01 am
After cloning the repo and initializing the submodules
Thanks @crashoverride, did some reading on submodules.

Is pugixml the only submodule or are there others?
When I do a submodule status nothing shows up and says working tree clean.

crashoverride
Posts: 5016
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 313 times
Contact:

Re: Error while building ES

Post by crashoverride »

After cloning the repo ...

Code: Select all

git clone https://github.com/OtherCrashOverride/emulationstation-go2.git
cd emulationstation-go2
The command for the submodules is:

Code: Select all

git submodule update --init
Then a directory for the build is created and the "cmake" command is given followed by "make".

Code: Select all

mkdir build
cd build
cmake GLES=ON ..
make

Moud_Sanchez
Posts: 26
Joined: Tue Nov 20, 2018 1:11 am
languages_spoken: english
ODROIDs: Odroid-Go
Odroid-Go Advance
Has thanked: 6 times
Been thanked: 4 times
Contact:

Re: Error while building ES

Post by Moud_Sanchez »

Thank you @crashoverride.

Also, do I have to manually copy the support library as I don't see a go2 folder.

crashoverride
Posts: 5016
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 313 times
Contact:

Re: Error while building ES

Post by crashoverride »

Moud_Sanchez wrote:
Sat Apr 18, 2020 6:41 am
do I have to manually copy the support library as I don't see a go2 folder.
The libgo2 headers need to be installed. In future releases, a "libgo2-dev" package will be provided but for now, this is done manually:

Code: Select all

git clone https://github.com/OtherCrashOverride/libgo2.git
cd libgo2
sudo mkdir /usr/include/go2
sudo cp src/*.h /usr/include/go2/

Moud_Sanchez
Posts: 26
Joined: Tue Nov 20, 2018 1:11 am
languages_spoken: english
ODROIDs: Odroid-Go
Odroid-Go Advance
Has thanked: 6 times
Been thanked: 4 times
Contact:

Re: Error while building ES

Post by Moud_Sanchez »

@crashoverride, thanks for all your help and guidance - I really do appreciate it but I still get that same error.

I decided to try and build directly on the OGA and got a different error, but figured out I was missing GLES and am able to build now.

I still want to use my Ubuntu VM to build with, so I'll continue to troubleshoot. My guess is that my build environment is missing something.

GldRush98
Posts: 54
Joined: Wed Aug 08, 2018 12:58 am
languages_spoken: English
ODROIDs: ODROID-Go, ODROID-Go Advance Black Edition
Location: Taylorville, IL
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Error while building ES

Post by GldRush98 »

Moud_Sanchez wrote:
Wed Apr 22, 2020 8:51 am
@crashoverride, thanks for all your help and guidance - I really do appreciate it but I still get that same error.

I decided to try and build directly on the OGA and got a different error, but figured out I was missing GLES and am able to build now.

I still want to use my Ubuntu VM to build with, so I'll continue to troubleshoot. My guess is that my build environment is missing something.
Did you figure out how to build in Ubuntu? I'm trying this and am getting the same error as well.

Code: Select all

./emulationstation-go2/es-core/src/renderers/Renderer_GL21.cpp: In function ‘void Renderer::createContext()’:
./emulationstation-go2/es-core/src/renderers/Renderer_GL21.cpp:78:37: error: ‘getSDLWindow’ was not declared in this scope; did you mean ‘setupWindow’?
   78 |   sdlContext = SDL_GL_CreateContext(getSDLWindow());
      |                                     ^~~~~~~~~~~~
      |                                     setupWindow
./emulationstation-go2/es-core/src/renderers/Renderer_GL21.cpp: In function ‘void Renderer::swapBuffers()’:
./emulationstation-go2/es-core/src/renderers/Renderer_GL21.cpp:247:21: error: ‘getSDLWindow’ was not declared in this scope; did you mean ‘setupWindow’?
  247 |   SDL_GL_SwapWindow(getSDLWindow());
      |                     ^~~~~~~~~~~~
      |                     setupWindow
make[2]: *** [es-core/CMakeFiles/es-core.dir/build.make:700: es-core/CMakeFiles/es-core.dir/src/renderers/Renderer_GL21.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:230: es-core/CMakeFiles/es-core.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
I think it has to do with trying to cross compile and the opengl library for arm64 not being available.

I believe this because the "cmake GLES=ON .." gives:

Code: Select all

CMake Warning (dev) at /usr/share/cmake-3.16/Modules/FindOpenGL.cmake:275 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/x86_64-linux-gnu/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/x86_64-linux-gnu/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/x86_64-linux-gnu/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  CMakeLists.txt:54 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Looking for FreeImage...
-- Checking for module 'freeimage'
--   No package 'freeimage' found
-- Found FreeImage: optimized;/usr/lib/x86_64-linux-gnu/libfreeimage.so;debug;/usr/lib/x86_64-linux-gnu/libfreeimage.so
-- VLC library found
-- Configuring done
-- Generating done

GldRush98
Posts: 54
Joined: Wed Aug 08, 2018 12:58 am
languages_spoken: English
ODROIDs: ODROID-Go, ODROID-Go Advance Black Edition
Location: Taylorville, IL
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Error while building ES

Post by GldRush98 »

For anyone who finds this in the future:
I gave up on trying to get this to compile on the desktop. There was some library issue that was way over my head.
I ended installing all the stuff on the device itself and compiled on there which worked fine after I ran down all the dependencies :)
These users thanked the author GldRush98 for the post:
odroid (Mon Jun 29, 2020 10:49 am)

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 1 guest