Page 1 of 1

make problem: desktop version

Posted: Mon Jun 14, 2021 3:01 am
by bazza
I have SDL and SDL2 installed and libraries are in the system over Arch-linux:

Code: Select all

.../src/monster-mash/src/mywindow.h:18:10: error fatal: SDL.h: No existe el fichero o el directorio
18 | #include <SDL.h>

Re: make problem: desktop version

Posted: Mon Jun 14, 2021 3:38 am
by bazza
Add this to Cmake and Make:

Code: Select all

set(SDL2_INCLUDE_DIR /usr/include/SDL2/)
set(SDL2_LIBRARY /usr/lib/cmake/SDL2/ )
But...

Code: Select all

./monstermash       
GL version: 4.6.0 NVIDIA 465.31
X Error of failed request:  GLXBadDrawable
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  5 (X_GLXMakeCurrent)
  Serial number of failed request:  285
  Current serial number in output stream:  285