Closed OBKF closed 9 years ago
Can you double-check that you have libsdl2-image-dev installed, please.
Here is a screen-shut of synaptic package manager:
Can you please try:
python setup.py install -v
? That won't fix the problem, but will give more build output, which I can try to use to debug the problem.
Also, please try sdl2-config --cflags output.
Hi, first i followed this tutorial http://lazyfoo.net/SDL_tutorials/lesson03/linux/cli/index.php
and the program worked just fine no compilation errors, by that i assume that the lib is correctly
installed, but i have to do #include "SDL/SDL_image.h"
instead of #include "SDL_image.h"
,
because i am using Linux.
Also sdl2-config --cflags output
gave me this :
kaybo@BOST:~$ sdl2-config --cflags output
-I/usr/local/include/SDL2 -D_REENTRANT
Usage: /usr/local/bin/sdl2-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs] [--static-libs]
1- This is the result of python setup.py install -v
inside the same folder from the first build :
kaybo@BOST:~/Downloads/pygame_sdl2-master$ sudo python setup.py install -v
[sudo] password for kaybo:
running install
running build
running build_py
running build_ext
building 'pygame_sdl2.image' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I. -Isrc -I/usr/local/include/SDL2 -I/usr/include/python2.7 -c gen/pygame_sdl2.image.c -o build/temp.linux-x86_64-2.7/gen/pygame_sdl2.image.o -D_REENTRANT -Wl,-rpath,/usr/local/lib
gen/pygame_sdl2.image.c:259:23: fatal error: SDL_image.h: No such file or directory
#include "SDL_image.h"
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
2- This is the result of python setup.py install -v
inside a fresh folder (FULL LOG) :
kaybo@BOST:~/Desktop/pygame_sdl2$ sudo python setup.py install -v
[sudo] password for kaybo:
pygame_sdl2.rwobject is out of date.
pygame_sdl2.surface is out of date.
pygame_sdl2.display is out of date.
pygame_sdl2.event is out of date.
pygame_sdl2.locals is out of date.
pygame_sdl2.key is out of date.
pygame_sdl2.mouse is out of date.
pygame_sdl2.joystick is out of date.
pygame_sdl2.pygame_time is out of date.
pygame_sdl2.image is out of date.
pygame_sdl2.transform is out of date.
pygame_sdl2.gfxdraw is out of date.
pygame_sdl2.draw is out of date.
pygame_sdl2.font is out of date.
pygame_sdl2.mixer is out of date.
pygame_sdl2.mixer_music is out of date.
warning: src/pygame_sdl2/mixer_music.pyx:58:0: Overriding cdef method with def method.
pygame_sdl2.scrap is out of date.
pygame_sdl2.render is out of date.
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/pygame_sdl2
copying src/pygame_sdl2/__init__.py -> build/lib.linux-x86_64-2.7/pygame_sdl2
copying src/pygame_sdl2/compat.py -> build/lib.linux-x86_64-2.7/pygame_sdl2
creating build/lib.linux-x86_64-2.7/pygame_sdl2/threads
copying src/pygame_sdl2/threads/__init__.py -> build/lib.linux-x86_64-2.7/pygame_sdl2/threads
copying src/pygame_sdl2/threads/Py25Queue.py -> build/lib.linux-x86_64-2.7/pygame_sdl2/threads
copying src/pygame_sdl2/sprite.py -> build/lib.linux-x86_64-2.7/pygame_sdl2
copying src/pygame_sdl2/sysfont.py -> build/lib.linux-x86_64-2.7/pygame_sdl2
copying src/pygame_sdl2/time.py -> build/lib.linux-x86_64-2.7/pygame_sdl2
copying src/pygame_sdl2/version.py -> build/lib.linux-x86_64-2.7/pygame_sdl2
running build_ext
building 'pygame_sdl2.error' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/gen
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I. -Isrc -I/usr/local/include/SDL2 -I/usr/include/python2.7 -c gen/pygame_sdl2.error.c -o build/temp.linux-x86_64-2.7/gen/pygame_sdl2.error.o -D_REENTRANT -Wl,-rpath,/usr/local/lib
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/gen/pygame_sdl2.error.o -L/usr/local/lib -lSDL2 -lpthread -o build/lib.linux-x86_64-2.7/pygame_sdl2/error.so
building 'pygame_sdl2.color' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I. -Isrc -I/usr/local/include/SDL2 -I/usr/include/python2.7 -c gen/pygame_sdl2.color.c -o build/temp.linux-x86_64-2.7/gen/pygame_sdl2.color.o -D_REENTRANT -Wl,-rpath,/usr/local/lib
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/gen/pygame_sdl2.color.o -L/usr/local/lib -lSDL2 -lpthread -o build/lib.linux-x86_64-2.7/pygame_sdl2/color.so
building 'pygame_sdl2.controller' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I. -Isrc -I/usr/local/include/SDL2 -I/usr/include/python2.7 -c gen/pygame_sdl2.controller.c -o build/temp.linux-x86_64-2.7/gen/pygame_sdl2.controller.o -D_REENTRANT -Wl,-rpath,/usr/local/lib
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/gen/pygame_sdl2.controller.o -L/usr/local/lib -lSDL2 -lpthread -o build/lib.linux-x86_64-2.7/pygame_sdl2/controller.so
building 'pygame_sdl2.rect' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I. -Isrc -I/usr/local/include/SDL2 -I/usr/include/python2.7 -c gen/pygame_sdl2.rect.c -o build/temp.linux-x86_64-2.7/gen/pygame_sdl2.rect.o -D_REENTRANT -Wl,-rpath,/usr/local/lib
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/gen/pygame_sdl2.rect.o -L/usr/local/lib -lSDL2 -lpthread -o build/lib.linux-x86_64-2.7/pygame_sdl2/rect.so
building 'pygame_sdl2.rwobject' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I. -Isrc -I/usr/local/include/SDL2 -I/usr/include/python2.7 -c gen/pygame_sdl2.rwobject.c -o build/temp.linux-x86_64-2.7/gen/pygame_sdl2.rwobject.o -D_REENTRANT -Wl,-rpath,/usr/local/lib
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/gen/pygame_sdl2.rwobject.o -L/usr/local/lib -lSDL2 -lpthread -o build/lib.linux-x86_64-2.7/pygame_sdl2/rwobject.so
building 'pygame_sdl2.surface' extension
creating build/temp.linux-x86_64-2.7/src
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I. -Isrc -I/usr/local/include/SDL2 -I/usr/include/python2.7 -c gen/pygame_sdl2.surface.c -o build/temp.linux-x86_64-2.7/gen/pygame_sdl2.surface.o -D_REENTRANT -Wl,-rpath,/usr/local/lib
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I. -Isrc -I/usr/local/include/SDL2 -I/usr/include/python2.7 -c src/alphablit.c -o build/temp.linux-x86_64-2.7/src/alphablit.o -D_REENTRANT -Wl,-rpath,/usr/local/lib
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/gen/pygame_sdl2.surface.o build/temp.linux-x86_64-2.7/src/alphablit.o -L/usr/local/lib -lSDL2 -lpthread -o build/lib.linux-x86_64-2.7/pygame_sdl2/surface.so
building 'pygame_sdl2.display' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I. -Isrc -I/usr/local/include/SDL2 -I/usr/include/python2.7 -c gen/pygame_sdl2.display.c -o build/temp.linux-x86_64-2.7/gen/pygame_sdl2.display.o -D_REENTRANT -Wl,-rpath,/usr/local/lib
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/gen/pygame_sdl2.display.o -L/usr/local/lib -lSDL2 -lpthread -o build/lib.linux-x86_64-2.7/pygame_sdl2/display.so
building 'pygame_sdl2.event' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I. -Isrc -I/usr/local/include/SDL2 -I/usr/include/python2.7 -c gen/pygame_sdl2.event.c -o build/temp.linux-x86_64-2.7/gen/pygame_sdl2.event.o -D_REENTRANT -Wl,-rpath,/usr/local/lib
gen/pygame_sdl2.event.c:3202:18: warning: ‘__pyx_f_11pygame_sdl2_5event_make_mousewheel_event_sdl2’ defined but not used [-Wunused-function]
static PyObject *__pyx_f_11pygame_sdl2_5event_make_mousewheel_event_sdl2(SDL_MouseWheelEvent *__pyx_v_e) {
^
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/gen/pygame_sdl2.event.o -L/usr/local/lib -lSDL2 -lpthread -o build/lib.linux-x86_64-2.7/pygame_sdl2/event.so
building 'pygame_sdl2.locals' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I. -Isrc -I/usr/local/include/SDL2 -I/usr/include/python2.7 -c gen/pygame_sdl2.locals.c -o build/temp.linux-x86_64-2.7/gen/pygame_sdl2.locals.o -D_REENTRANT -Wl,-rpath,/usr/local/lib
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/gen/pygame_sdl2.locals.o -L/usr/local/lib -lSDL2 -lpthread -o build/lib.linux-x86_64-2.7/pygame_sdl2/locals.so
building 'pygame_sdl2.key' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I. -Isrc -I/usr/local/include/SDL2 -I/usr/include/python2.7 -c gen/pygame_sdl2.key.c -o build/temp.linux-x86_64-2.7/gen/pygame_sdl2.key.o -D_REENTRANT -Wl,-rpath,/usr/local/lib
gen/pygame_sdl2.key.c: In function ‘__pyx_pf_11pygame_sdl2_3key_13KeyboardState_4__init__’:
gen/pygame_sdl2.key.c:1008:17: warning: assignment discards ‘const’ qualifier from pointer target type
__pyx_v_state = SDL_GetKeyboardState((&__pyx_v_self->numkeys));
^
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/gen/pygame_sdl2.key.o -L/usr/local/lib -lSDL2 -lpthread -o build/lib.linux-x86_64-2.7/pygame_sdl2/key.so
building 'pygame_sdl2.mouse' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I. -Isrc -I/usr/local/include/SDL2 -I/usr/include/python2.7 -c gen/pygame_sdl2.mouse.c -o build/temp.linux-x86_64-2.7/gen/pygame_sdl2.mouse.o -D_REENTRANT -Wl,-rpath,/usr/local/lib
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/gen/pygame_sdl2.mouse.o -L/usr/local/lib -lSDL2 -lpthread -o build/lib.linux-x86_64-2.7/pygame_sdl2/mouse.so
building 'pygame_sdl2.joystick' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I. -Isrc -I/usr/local/include/SDL2 -I/usr/include/python2.7 -c gen/pygame_sdl2.joystick.c -o build/temp.linux-x86_64-2.7/gen/pygame_sdl2.joystick.o -D_REENTRANT -Wl,-rpath,/usr/local/lib
gen/pygame_sdl2.joystick.c: In function ‘__pyx_pf_11pygame_sdl2_8joystick_8Joystick_12get_name’:
gen/pygame_sdl2.joystick.c:1613:14: warning: assignment discards ‘const’ qualifier from pointer target type
__pyx_v_rv = SDL_JoystickName(__pyx_v_self->joystick);
^
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/gen/pygame_sdl2.joystick.o -L/usr/local/lib -lSDL2 -lpthread -o build/lib.linux-x86_64-2.7/pygame_sdl2/joystick.so
building 'pygame_sdl2.pygame_time' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I. -Isrc -I/usr/local/include/SDL2 -I/usr/include/python2.7 -c gen/pygame_sdl2.pygame_time.c -o build/temp.linux-x86_64-2.7/gen/pygame_sdl2.pygame_time.o -D_REENTRANT -Wl,-rpath,/usr/local/lib
gen/pygame_sdl2.pygame_time.c: In function ‘__pyx_f_11pygame_sdl2_11pygame_time_timer_callback’:
gen/pygame_sdl2.pygame_time.c:1387:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
__pyx_v_e.type = ((int)__pyx_v_param);
^
gen/pygame_sdl2.pygame_time.c: In function ‘__pyx_pf_11pygame_sdl2_11pygame_time_10set_timer’:
gen/pygame_sdl2.pygame_time.c:1603:122: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
__pyx_v_timer_id = SDL_AddTimer(__pyx_t_4, ((SDL_TimerCallback)__pyx_f_11pygame_sdl2_11pygame_time_timer_callback), ((void *)((int)__pyx_t_2)));
^
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/gen/pygame_sdl2.pygame_time.o -L/usr/local/lib -lSDL2 -lpthread -o build/lib.linux-x86_64-2.7/pygame_sdl2/pygame_time.so
building 'pygame_sdl2.image' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I. -Isrc -I/usr/local/include/SDL2 -I/usr/include/python2.7 -c gen/pygame_sdl2.image.c -o build/temp.linux-x86_64-2.7/gen/pygame_sdl2.image.o -D_REENTRANT -Wl,-rpath,/usr/local/lib
gen/pygame_sdl2.image.c:259:23: fatal error: SDL_image.h: No such file or directory
#include "SDL_image.h"
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Correction that Tut was for SDL not SDL2, so i followed this http://lazyfoo.net/tutorials/SDL/06_extension_libraries_and_loading_other_image_formats/index2.php and it worked (after changing the path to the image).
It looks like you have an install of SDL2 in /usr/local, as well as the one in /usr. I suspect that is what's causing problems. You might want to rename /usr/local/bin/sdl2-config to something else.
Something like what? I don't want to brick something(i m not that familiar with Linux).
mv /usr/local/bin/sdl2-config /usr/local/bin/sdl2-config.old . This needs to be run as root.
Thank you now it works.
I have installed all the libs in my Ubuntu 15.04 and i got this: