The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Multiple file drop in OSX
swdev


Joined: 22 Jun 2015
Posts: 4
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
Multiple file drop in OSX
Ryan C. Gordon
Guest

Quote:
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

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Multiple file drop in OSX
swdev


Joined: 22 Jun 2015
Posts: 4
Hi Ryan,

Great! Will check this out.

Many thanks,

Eko

Sent from my iPhone

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


Quote:
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

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

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Multiple file drop in OSX
swdev


Joined: 22 Jun 2015
Posts: 4
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.2Cool (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 (C) 2014 Free Software Foundation, Inc.


Any suggestion for successful compilation in Lion 10.7.5?


Thank you in advance!
Eko
lethosor


Joined: 05 Jul 2015
Posts: 1
What compiler are you using under OS X 10.9 and 10.10?
Anyway, using the "-mmacosx-version-min=10.6" compiler flag when compiling SDL ought to work for your purposes - this is what the "build-scripts/gcc-fat.sh" script does when compiling for x64.