-
Notifications
You must be signed in to change notification settings - Fork 16
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
Texplay 4.4 does not compile on Windows - Ruby 1.9.3 #26
Comments
This looks like a case where the code is expecting Ruby 2.1.
|
Commit a3f16c6 by @gilles-leblanc added the functionality that is not compatible with Ruby 1.9.3. I backed out that change and I successfully
This is the same exact error that you get when attempting |
Alright, if I had read more of the repository I would have stumbled upon the README in the vendor folder (https://github.com/banister/texplay/tree/master/ext/texplay/vendor/freeglut). And the instructions are very simple for Windows users.
This works, but this means that for windows users they would need to download this vendor content and then perform these steps. There must be a better way that I am not familiar with on how to package content like this when it has this kind of requirement. |
Alright, excuse my ignorance again, I guess if I knew that rake-compiler added the rake task
Everything is OK if you build a native gem. |
Alright in conclusion, to get everything working on Windows, I needed to back out the changes with commit a3f16c6 by @gilles-leblanc. That functionality is not compatible with Ruby 1.9.3. I imagine that we could IFDEF around that functionality, but I'm not sure the exact course of action. This is an issue because Windows does not have decent support for Ruby 2.0 and no support for Ruby 2.1. |
Eh... So we would loose Ruby 2.0+ compatibility on Linux and Mac in exchange for 1.9.3 on Windows? |
I assume that we can get around this by:
I have not ever done either of those things before so they are guesses. |
Good idea. I haven't either but we should look into it. On Thu, Aug 28, 2014 at 9:29 AM, Franklin Webber [email protected]
|
Alright. I think I can fix it. I'll use Ruby's version.h to figure out the version. |
If you need help let me know.
|
Reference: banister#26 Ruby 1.9.3 does not support `rb_obj_reveal` so ifdef conditionals were added to allow the gem to be compiled.
@gilles-leblanc would you take a look at pull request #28 and tell if that looks about right.
|
Attempted to build this against commit 22ff506. It fails.
The text was updated successfully, but these errors were encountered: