I downloaded SDL 1.3 and tested it together with OpenGL ES on my android 2.2 device. It works fine but I don’t get the outputs from the printf calls. I tried the commands below as mentioned at the android developer page but neither DDMS in Eclipse nor adb logcat reports the strings that the program writes using printf. I made sure to filter for the stdout tag.
$ adb shell stop
$ adb shell setprop log.redirect-stdio true
$ adb shell start
What am I missing or doing wrong?
Another way of doing this is having a file
/data/local.prop, containing just the linelog.redirect-stdio=true. Maybe this works better? Also, note that stdout is buffered, so it could be that your output is still sitting in the buffer, waiting to be flushed. You can callfflushmanually to check this.