Ok :) How do you work with that or how do you test it? Are there any examples that should work. Because on Windows doing a OSWindow new. opens a window in the upper left corner and after that I lost the possibility to do *any* keyboard input into the pharo main window. Is this different on linux or mac? nicolai 2015-01-26 11:57 GMT+01:00 Esteban Lorenzano <estebanlm@gmail.com>:
Ah, yes⦠I still didn't commit the changes needed. replace this method:
SDL2 class>>findSDL2 "In Linux, try to use the linked version." OSSDL2Driver hasPlugin. "Look for SDL2 using different names." #( 0 "Static" SDL2 'libSDL2-2.0.0.dylib' "Mac" 'libSDL2-2.0.so.0' "Linux 1" 'libSDL2-2.0.so.0.2.1' "Linux 2" 'SDL2.dll' "Windows" ) do: [ :eachName | [ (self checkLibraryName: eachName) ifTrue: [ ^ eachName ] ] ifError: [nil] ]. self error: 'Failed to find SDL2 library.â
Esteban
On 26 Jan 2015, at 10:03, Nicolai Hess <nicolaihess@web.de> wrote:
---------- Forwarded message ---------- From: Nicolai Hess <nicolaihess@web.de> Date: 2015-01-26 10:03 GMT+01:00 Subject: Re: [Pharo-dev] libSDL2 and OSWindow To: Esteban Lorenzano <estebanlm@gmail.com>
2015-01-26 9:39 GMT+01:00 Esteban Lorenzano <estebanlm@gmail.com>:
Using which version of the vm?
the "latest". I load a fresh vm and image yesterday with : get.pharo.org/40+vmLatest. on windows 7 (32Bit) and Ubuntu 14.04 (64 Bit).
With latest it should be working. At least, it worked for me before I left for vacations.
Esteban
On 25 Jan 2015, at 22:52, Nicolai Hess <nicolaihess@web.de> wrote:
What is the current state of the SDL2 / OSWindow integration? There are some *open* bugtracker entries, although SDL and OSWindow *are* in the latest vm+image.
On Ubuntu 14.04 64Bit OSWindow new does not work, it complains it can not find libSDL2, but it is there
On Windows 7 OSWindow new opens a window that is mainly off the screen, only the bottom right corner is visible.
nicolai