INSTALL
author Sam Lantinga <slouken@libsdl.org>
Tue, 02 Apr 2013 07:57:37 -0700
changeset 7045 4be2c24b7de1
parent 6878 30579e86ac24
permissions -rw-r--r--
Fixed bug 1780 - SDL_RWFromFile() sets an error on Android although a valid SDL_RWops pointer is returned.

Philipp Wiesemann

SDL_RWFromFile() sets an error to be queried with SDL_GetError() on Android although a valid SDL_RWops pointer is returned.

This happens if the fallback implemented in SDL_android.cpp is used to load compressed assets (see README.android in section "Loading assets") and results in a message like "java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed". I think this is confusing and not needed because the loading works as expected.

I attached a patch which changes SDL_android.cpp to not set an error if compressed assets are loaded. In this case also no Exception is queried and no additional string are created.
slouken@0
     1
slouken@0
     2
To compile and install SDL:
slouken@0
     3
slouken@3561
     4
    0.  If you have downloaded this from the website, skip to the next step.
slouken@3561
     5
        If you have checked this out from subversion, you'll need to run
slouken@3561
     6
        ./autogen.sh to build the configure script. 
slouken@3561
     7
slouken@0
     8
    1.  Run './configure; make; make install'
slouken@0
     9
slouken@866
    10
        If you are compiling for Windows using gcc, read the FAQ at:
slouken@866
    11
        http://www.libsdl.org/faq.php?action=listentries&category=4#42
slouken@0
    12
slouken@0
    13
        If you are compiling using Visual C++ on Win32, you should read
slouken@0
    14
        the file VisualC.html
slouken@0
    15
slouken@6878
    16
    2.  Look at the example programs in ./test, and check out the online
slouken@6878
    17
        documentation at http://wiki.libsdl.org/
slouken@0
    18
slouken@0
    19
    3.  Join the SDL developer mailing list by sending E-mail to
slouken@253
    20
    	sdl-request@libsdl.org
slouken@253
    21
        and put "subscribe" in the subject of the message.
slouken@0
    22
slouken@253
    23
        Or alternatively you can use the web interface:
slouken@533
    24
            http://www.libsdl.org/mailing-list.php
slouken@0
    25
slouken@0
    26
That's it!
slouken@0
    27
Sam Lantinga <slouken@libsdl.org>