gdx2d icon indicating copy to clipboard operation
gdx2d copied to clipboard

Broken on MacOS

Open pmudry opened this issue 8 years ago • 8 comments

Shaders complain that version 130 is not supported. I had the impression it had been fixed before...

pmudry avatar Apr 15 '16 21:04 pmudry

Was fixed in 540cbd699f661f5f7df06b73adc540cdc75e196e However the student was probably not using the latest code but the release one.

pmudry avatar Apr 22 '16 09:04 pmudry

This is how the demo selector looks like: screen shot 2016-04-22 at 14 11 34

Tested on the Pierre's Mac OS X El Capitan (10.11.4)

metc avatar Apr 22 '16 12:04 metc

The Swing layout has been fixed in dda41a04fe40057f21cf7be394053db9be77537f, but the canvas is still not working on Mac :(

metc avatar Apr 22 '16 14:04 metc

No idea what to do as I don't have any Mac to test. This is probably hard to fix.

pmudry avatar Apr 28 '16 11:04 pmudry

Swing seems to not be very platform independent :( This was the first layout issue. For the second, it will be hard to solve it, yes. The OpenGL canvas is not display on Mac (tested on OS X 10.11.3 latest).

metc avatar Apr 28 '16 12:04 metc

I think we should set this issue for a next milestone. A Mac guy should help us to solve this. I tried a quick fix but I did not get better results.

Currently, a Mac user can launch every demo individually, but not using the demo selector.

metc avatar Apr 28 '16 20:04 metc

I agree. The problem being mac specific, we can't solve it without a Mac.

On Thu, 28 Apr 2016 at 22:02 Christopher [email protected] wrote:

I think we should set this issue for a next milestone. A Mac guy should help us to solve this. I tried a quick fix but I did not get better results.

Currently, a Mac user can launch every demo individually, but not using the demo selector.

— You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHub https://github.com/hevs-isi/gdx2d/issues/118#issuecomment-215545129

pmudry avatar Apr 28 '16 20:04 pmudry

Just providing some information,might help.

Im a mac user,cant run the demo too. When I use JDK8 (oracle jdk) ,the window looks like below.The canvas was misplaced,and only display grey. qq20170102-0 2x

As we know,apple only provide java up to java6,so any later jdk was provided by oracle.And oracle jdk removed all heavyweight components(even awt turned into lightweight),so anything rely on heavyweight component wont work under oracle jdk on mac(like LwjglAWTCanvas).

So I change the project to apple jdk6(which still have heavyweight components),thinking this may solve the problem.But after I run,I get this:

qq20170102-1 2x

The canvas was not misplaced,but still shows nothing.Which makes me really confused. The console shows the following info when using jdk6:

2017-01-02 08:33:43.665 java[17091:87589438] 08:33:43.664 WARNING:  140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.
[gdx2d]: gdx2d-core v1.2.1, libgdx v1.5.6 | mui, chn, mei, pim (c) 2012-2016
[gdx2d]: Fragment shader 'res/lib/circle_aa.fp' loaded.
[gdx2d]: Vertex shader 'res/lib/default.vs' loaded.
[gdx2d]: Shader message - WARNING: Output of vertex shader 'v_color' not read by fragment shader
WARNING: Output of vertex shader 'vTexCoord' not read by fragment shader
WARNING: Output of vertex shader 'vSurfacePosition' not read by fragment shader

The console shows the following info when using jdk8:

2017-01-02 08:38:05.907 java[17127:87627414] 08:38:05.907 WARNING:  140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.
[gdx2d]: gdx2d-core v1.2.1, libgdx v1.5.6 | mui, chn, mei, pim (c) 2012-2016
[gdx2d]: Fragment shader 'res/lib/circle_aa.fp' loaded.
[gdx2d]: Vertex shader 'res/lib/default.vs' loaded.
[gdx2d]: Shader message - WARNING: Output of vertex shader 'v_color' not read by fragment shader
WARNING: Output of vertex shader 'vTexCoord' not read by fragment shader
WARNING: Output of vertex shader 'vSurfacePosition' not read by fragment shader

acely avatar Jan 02 '17 00:01 acely