Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
3

OpenStudio and SketchUp Plugin + Linux (Wine)

asked 2014-11-01 08:28:12 -0500

giuw gravatar image

updated 2016-10-20 19:59:48 -0500

Hello, I am trying to make the OpenStudio SketchUp Plugin work under Linux (Xubuntu) with Wine. I have installed SketchUp Make 2014 for Windows with Wine (in Xubuntu) and with some tricks found on WineHQ about it I made SketchUp work. After that, I have installed the OpenStudio Suite for Windows, again with Wine, but I can't see any Plugin in SketchUp. In the OpenStudio/Ruby directory (Wine under Linux, again) there is a folder which contains the SketchUp plugin ruby files, which are supposed to work fine in a "pure Windows" OS, but here with Wine the plugin cannot be loaded. In fact I get the error "Error loading OpenStudio SketchUp Plug-in: cannot load such file -- pathname", which in the end derives from the file "Startup.rb" in the last lines:

UI.messagebox("Error loading OpenStudio SketchUp Plug-In:\n  #{e.message}", MB_OK)

The point is: does anybody get this plugin for SketchUp work with Linux (Wine)? Thank you!

edit retag flag offensive close merge delete

Comments

I haven't heard of anyone getting this to work for either the legacy plug-in or the plug-in included with the new application suite. I don't think that it would be impossible but I don't know how hard it would be.

macumber gravatar imagemacumber ( 2014-11-02 22:50:33 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2014-11-09 12:53:45 -0500

Xiao Shi Zi gravatar image

updated 2014-11-09 12:58:14 -0500

As you're running on linux, you had to add the parameter /disablerubyapp, needed to run SketchUp version 2014 & 2015, is also the reason why plugins don't work. Even dos2unix all the *.rb files didn't satisfy neither. Also installing under wine the new ruby versions 2.0 & 2.4 didn't solve. Got also an exit out of SU2015 by simple pas over the file-menu. As far as now best version to run on linux is the 2013. There you'll have the possibility to run ruby scripts. Having a problem with an error concerning shell32. dll

Greetings Xiao Shi Zi.

edit flag offensive delete link more
1

answered 2014-11-02 00:11:09 -0500

TomB gravatar image

I got stuck at the making SketchUp stage (on Ubuntu 12.04).

I suggest a thorough check of the dependencies - is Ruby installed and working ? and the filepaths - can you open the addons scripts at the locations where the error message occurs ? It is a safe assumption that the Windows installation procedure has left some windows style filepath and locations. I would look for those and if you find any, edit them to point to where they actually are.

edit flag offensive delete link more

Comments

Thanks, Probably it's "just" a matter of windows-style paths, different from wine-style paths, but indeed it's a huge work since there are a lot of rb scripts in this plugin.. I'll try and check whether it's reasonable to change them all (and the result is not guaranteed...).

giuw gravatar imagegiuw ( 2014-11-02 03:55:31 -0500 )edit

I have followed the flow of the code:

1) wine/drive_c/users/Public/Application Data/.../SketchUp/Plugins/OpenStudio/Startup.rb require 'OpenStudio/OpenStudio-config.rb'

2) wine/drive_c/users/Public/Application Data/.../SketchUp/Plugins/OpenStudio/OpenStudio-config.rb require 'C:\Program Files (x86)\OpenStudio 1.5.0\Ruby\openstudio.rb'

3) C:\Program Files (x86)\OpenStudio 1.5.0\Ruby\openstudio.rb at the beginning of this file the following command won't work: require "pathname"

Stuck here.

giuw gravatar imagegiuw ( 2014-11-02 06:36:51 -0500 )edit

I have went on changing the relative paths with absolute paths until the "openssl.so" (which can't be modified by text editing of course) gives the error: "Verify that ruby can access the OpenSSL libraries".

Can't really go on now.

giuw gravatar imagegiuw ( 2014-11-02 07:22:55 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

 

Question Tools

1 follower

Stats

Asked: 2014-11-01 08:28:12 -0500

Seen: 927 times

Last updated: Nov 09 '14