Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic when running on mac #2

Closed
mgadzhi opened this issue May 28, 2015 · 7 comments
Closed

panic when running on mac #2

mgadzhi opened this issue May 28, 2015 · 7 comments

Comments

@mgadzhi
Copy link

mgadzhi commented May 28, 2015

I still can't run the game on mac os. I use stable rust 1.0.0 and run the project with 'cargo run'.
Accompanied with --verbose it gives me:

thread '

' panicked at 'called Result::unwrap() on an Err value: CompilationError("ERROR: 0:3: 'attribute' : syntax error: syntax error\n")', /Users/rustbuild/src/rust-buildbot/slave/stable-dist-rustc-mac/build/src/libcore/result.rs:729
Process didn't exit successfully: target/debug/magog (exit code: 101)

If I run it with --release, then the next error occurs:

error: could not find rlib for: calx_macros
Could not compile magog.

@rsaarelm
Copy link
Owner

The calx_macros thing should be fixed now, thanks for reporting it.

I'm still in the dark on anything OS X related. I did some blind patching and am now explicitly setting the OpenGL version to 3.2 when creating the display and set the shaders to version 150.

Can you try again with the latest HEAD?

@mgadzhi
Copy link
Author

mgadzhi commented May 29, 2015

Yes, the problem with calx_macros is gone. Now --release gives the same 'panic' error as debug build does.

@rsaarelm
Copy link
Owner

I just realized I can get rid of 'attribute' entirely in the shader code. Made a new commit, can you try again?

@mgadzhi
Copy link
Author

mgadzhi commented May 29, 2015

I tried and the previous error looks fixed. Now it is:

Running target/release/magog
thread '

' panicked at 'called Result::unwrap() on an Err value: CompilationError("ERROR: 0:10: Invalid call of undeclared identifier 'texture2D'\nERROR: 0:14: Use of undeclared identifier 'tex_color'\nERROR: 0:16: Use of undeclared identifier 'gl_FragColor'\nERROR: 0:16: Use of undeclared identifier 'tex_color'\nERROR: 0:16: Use of undeclared identifier 'tex_color'\n")', /Users/rustbuild/src/rust-buildbot/slave/stable-dist-rustc-mac/build/src/libcore/result.rs:729
Process didn't exit successfully: target/release/magog (exit code: 101)

@rsaarelm
Copy link
Owner

We're making progress. The 'texture2D' and 'gl_FragColor' parts were indeed wrong, and my local GL drivers didn't bother to complain. Can you re-try with the latest commit?

@mgadzhi
Copy link
Author

mgadzhi commented May 29, 2015

It worked! Thank you very much for the game and for fixing OS X problems.

@mgadzhi mgadzhi closed this as completed May 29, 2015
@rsaarelm
Copy link
Owner

Great! Thank you for your patience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants