Multiple file drop in OSX

Hi,

I am working with Kivy that uses SDL2. In Windows, it can accept multiple
file dropped to the window (I got list of files dropped). But in OSX, even
if I dropped multiple files, it only detect single file

Any suggestion on how to solve this issue?

Thanks,
Eko

I am working with Kivy that uses SDL2. In Windows, it can accept
multiple file dropped to the window (I got list of files dropped). But
in OSX, even if I dropped multiple files, it only detect single file

Any suggestion on how to solve this issue?

I just pushed a fix for this.

 https://hg.libsdl.org/SDL/rev/63c4d6f1f85f

–ryan.

Hi Ryan,

Great! Will check this out.

Many thanks,

EkoSent from my iPhone

On Jul 5, 2015, at 1:12 AM, Ryan C. Gordon wrote:

I am working with Kivy that uses SDL2. In Windows, it can accept
multiple file dropped to the window (I got list of files dropped). But
in OSX, even if I dropped multiple files, it only detect single file

Any suggestion on how to solve this issue?

I just pushed a fix for this.

https://hg.libsdl.org/SDL/rev/63c4d6f1f85f

–ryan.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Hi,

I have just compiled SDL with this latest fix in Yosemite and Maverick, and
it works great! But surely, the binary only usable upward. Many thanks for
this!

But, as I try to compile this in Lion 10.7.5 , I got this error:

In file included from /Users/scram/code/SDL/src/dynapi/SDL_dynapi.c:31:
include/SDL_syswm.h:218:65: error: missing binary operator before token "("
make: *** [build/SDL_dynapi.lo] Error 1

Previously it failed when it use OSX gcc:
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix

It also failed when I try to use newer gcc coming from brew:
gcc-4.9 (Homebrew gcc 4.9.2_1) 4.9.2
Copyright © 2014 Free Software Foundation, Inc.

Any suggestion for successful compilation in Lion 10.7.5?

Thank you in advance!
Eko

Hi,

Just want to let you know that I found the solution for this.
Use clang instead of gcc

alias gcc=clang
alias g++=clang

That’ should do it!

I’ve found the solution from a bugzilla report: can’t found the link now

Thanks,
Eko