Issue #139 duplicate

SDL.h not found even thought it exists

Erik Allik avatarErik Allik created an issue

I have:

/usr/local/include$ ls SDL
SDL.h           SDL_cdrom.h     SDL_error.h     SDL_keyboard.h  SDL_mouse.h     SDL_platform.h  SDL_syswm.h     SDL_version.h
SDL_active.h    SDL_config.h    SDL_events.h    SDL_keysym.h    SDL_mutex.h     SDL_quit.h      SDL_thread.h    SDL_video.h
SDL_audio.h     SDL_cpuinfo.h   SDL_getenv.h    SDL_loadso.h    SDL_name.h      SDL_rwops.h     SDL_timer.h     begin_code.h
SDL_byteorder.h SDL_endian.h    SDL_joystick.h  SDL_main.h      SDL_opengl.h    SDL_stdinc.h    SDL_types.h     close_code.h

but when I execute

pip install pygame

I get:

src/pygame.h:106:10: fatal error: 'SDL.h' file not found

#include <SDL.h>

         ^

1 error generated.

error: command '/usr/bin/clang' failed with exit status 1

Maybe the include should instead be #include <SDL/SDL.h>?

Comments (11)

  1. Edu Rodríguez Castillo

    Same thing here, I'm on OS X Mountain Lion

    Darwin xxx 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64

    Solved temporarly with:

    $ ln -s /usr/local/include/SDL/* /usr/local/include/

    But after that, it fails with:

    src/scale_mmx64.c:499:27: error: invalid instruction mnemonic 'movsxl'

    More info:

    $ which python /Users/xxx/.virtualenvs/xxx/bin/python

    (xxx)[08:22:18] edu@somachigun-2:/usr/local/include $ which pip /Users/xxx/.virtualenvs/xxx/bin/pip

    $ python --version Python 2.7.2

    Hope this will help you.

  2. Thomas Koch

    same issue on Mac OS ML 10.8.3 - with virtualenv and without virtualenv the dependencies were installed via $ sudo brew install sdl sdl_image sdl_mixer sdl_ttf portmidi header files are in /usr/local/include/SDL any known workarounds?

  3. speciousfool

    Reproduced the bug on my computer with 10.8.3:

    In file included from src/scale_mmx.c:33:
    
    src/scale_mmx64.c:499:27: error: invalid instruction mnemonic 'movsxl'
    
        asm __volatile__( " /* MMX code for inner loop of X bilinear filter */ "
    
                          ^
    
    <inline asm>:1:191: note: instantiated into assembly here
    

    I'd be curious of a fix is found.

  4. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.