Comments (4)
Ruby 2.2 was compiled for VS2010. If you want to build with newer VS version you need to edit out that file. You might also have to manually define some macros to account for compiler differences. You can see example of what I did for TT_Lib: https://bitbucket.org/thomthom/tt-library-2/src/89d1078a79202daa482c71f3648aac0e6bf0bcb6/cext/tt_lib2/tt_lib2/src/ruby/framework.h?at=Version_2.10&fileviewer=file-view-default
from ruby-c-extension-examples.
I think there is a misunderstanding. Please just try to grab this repository, load SketchUp Ruby C Extension Examples.sln in Visual Studio 2015 (because that is what the workspace is set up for I guess) and try to build SUEX_HelloWorld in the Release (2.0)|Win32 config.
It will fail because of missing modifications in ThirdParty\include\ruby\2.0\win32\i386-mswin32_100\ruby\config.h. The modifications that are needed to compile have been applied to C:\Users\timm\Documents\Laubwerk\ruby-c-extension-examples\ThirdParty\include\ruby\2.0\win32_x64\x64-mswin64_100\ruby\config.h, so the Release (2.0)|x64 configuration compiles fine. After applying similar modifications to the former config.h, Win32 also compiles. However, it would be great for the example project to already contain them.
from ruby-c-extension-examples.
Ah, gotcha. Yea, we probably forgot to test the 32bit builds.
You mentioned you got it working, is that something you can send us a Pull Request for?
from ruby-c-extension-examples.
Totally, will do.
from ruby-c-extension-examples.
Related Issues (18)
- The Sketchup&&LayOut 2017 SDK BUG HOT 8
- Newbie problem - creating corresponding rbz? HOT 10
- use SDK_Mac_17-0-18898 and ruby-c-extension-examples BUG HOT 3
- What did you use to build Ruby 2.2.4 on Windows? HOT 2
- SUEX_UsingSWIG - Include directory points to Ruby 2.0 instead of 2.2 in Release (2.2) x64 / Win32 HOT 2
- Can GetRubyInterface() be aliased? HOT 7
- Add some examples with substance. HOT 7
- Review bundled .framework
- Linking errors when building bundles on Xcode HOT 6
- Does this project still work in SUP2021? HOT 3
- Ruby file names... HOT 6
- Extension which uses Z depth/Z channel HOT 1
- Update swig
- swig warning at extension startup
- Update SLAPI How-To HOT 2
- Build failed for Release (2.0) x64 platform HOT 8
- Ruby 2.2 mac has a huge number of files not existing in 2.0 or 1.8 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-c-extension-examples.