How to require the "iconv.boundle" in the Mac OSX
-
Hi,all.
I want to require the "iconv.boundle" in the Mac OSX,but when i require it ,The Sketchup will quit or doesn't work.
the iconv.boundle file in the plugins/lib/
so i require like this:require "lib/iconv"
...but it doesn't work
anybody can help me?
-
Most probable it's because it's not compiled to work with SketchUp Ruby.
(Is it even a match for SketchUp's version? 1.8.x?)One possible cause for the crash could be that it is not compiled into a flat namespace. See my SketchUp Ruby C Extension Hello World project for notes on compiling for SketchUp Ruby:
https://bitbucket.org/thomthom/sketchup-ruby-c-extension/src/5c9eb31c541b/src/Example%20-%20Hello%20World/extconf.rb@unknownuser said:
<span class="syntaxdefault"> </span><span class="syntaxcomment"># Must be compiled into flat namespace. Otherwise SketchUp Bugsplats.<br /></span><span class="syntaxdefault"> CONFIG</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'LDSHARED'</span><span class="syntaxkeyword">]</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> </span><span class="syntaxstring">'cc -dynamic -bundle -undefined suppress -flat_namespace'</span><span class="syntaxdefault"> </span>
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginAdvertisement