SketchUp and Rubies on Linux (yes, it works)
-
@adamb said:
Your retyping stuff making it works makes me think it could be line-endings perhaps. You could check by finding a script that doesn't work and a version of the same that does and compare them. (eg: od -x file1.rb) to see whether it is just things that work end each line unix-style with 0x0d,0x0a (CR,LF) whereas Windows typically just has 0x0a.
(Kinda cool it works at all though!)
AdamAdam, I think that is it...let me play with it for a while and see if I can make a script that is working not work. Thanks!
Jon, settings for SU 6 Pro on Linux, as they have worked for me:
(WINE 1.0-rc1 under Ubuntu 8.04)
Post install, you have to let SketchUp run (and crash) at least once so that the registry keys all are written. Then make the changes, as below, with WINE's regedit program:
[HKEY_CURRENT_USER\Software\Google\SketchUp6\GLConfig\Display]
"FIRST_TIME"=dword:00000000
"HW_OK"=dword:00000001[HKEY_CURRENT_USER\Software\Google\SketchUp6\Google SketchUp TOTD]
"HelpPage"="0"
"ShowOnStartUp"="false"[HKEY_CURRENT_USER\Software\Google\SketchUp6\SnappyInstructor]
"Show"="0"Layout will not function at all...it doesn't even write keys so that I can tweak it.
Incidentally, I have had these SU settings work on two relatively modern workstations with NVIDIA video cards (and I let Ubuntu find and install the latest Proprietary drivers). On a slightly older notebook computer with an ATI card, this did not work, no matter how I tweaked the settings. But I think that is ATI's fault, for some reason.
Here are my current OpenGL details as SU (on Ubuntu 8.04 and WINE) interprets them:
Vender: NVIDIA Corporation
Renderer: GeForce 8800 Ultra/PCI/SSE2
GL Version: 2.1.2 NVIDIA 169.12
GLU Version: 1.3Feel free to bring this up on any other forum.
--Lewis
-
Lewis,
Thanks for posting this, solved my question!
-
I was at the AIA convention in Boston today and spoke about this topic to the usual Google suspects. They assured me that it must have been changes to WINE that makes it possible to reliably run SU on Linux, because they knew nothing about any changes to SU that would have allowed it. I'll add my list of tweaks to the registry and the plugins to the WINE page for SU tonight or tomorrow. I suggested to the Googlers that they put together a binary package of SketchUp with the registry tweaks, translator, and WINE itself to make it easier for the non-technical to set this up, rather the way Google does with Picasa for Linux (which comes with the appropriate WINE libraries). They didn't seem too excited about the prospect, but said they would "bring it up" with HQ.
There are a lot of 3D modelers available in Linux...either FOSS (and therefore either cryptic like Blender or perpetually-in-development like Ayam, unfortunately) or hopelessly expensive (like Maya). But suddenly the ability to run dependable old SketchUp opens up completely new possibilities...the Ubuntu distro suddenly becomes (almost) a valid professional option to me, given that I have a number of other Windows graphics programs (Photoshop, Dreamweaver, etc.) or capable Linux apps (Cinelerra, Blender, Inkscape, etc.) also available on my Ubuntu workstations now. I can tell both Mr. Gates and Mr. Jobs to take a hike, if I can get past losing Rhino 4 (licensing manager hates WINE!).
Anyway...
A certain not-to-be-named Googler asked me at the convention, "Did you try the 7.0 beta with WINE yet?"
I replied, "What 7.0 beta?"
He quickly backtracked. "Oh, I forgot...we haven't let that one out yet."
-
@lewiswadsworth said:
Anyway...
A certain not-to-be-named Googler asked me at the convention, "Did you try the 7.0 beta with WINE yet?"
I replied, "What 7.0 beta?"
He quickly backtracked. "Oh, I forgot...we haven't let that one out yet."
....I never backtrack, I only add range to my attack. he he he
-
hurry up!
-
WINE Review has some more notes on SU on Linux and other OS, like FreeBSD.
http://wine-review.blogspot.com/2007/12/google-sketchup-6-on-linux-and-freebsd.html
(And yes, I posted a comment telling them to look at this thread...so we might see a bit of traffic.)
-
thanks for the useful tricks, now sketchup on my ubuntu-8.04 works at 95%
The only one feature blocking the program is jpg export that's very important for my job
Have someone experienced the same and found the solution?thank you
Mick -
@michelinux said:
thanks for the useful tricks, now sketchup on my ubuntu-8.04 works at 95%
The only one feature blocking the program is jpg export that's very important for my job
Have someone experienced the same and found the solution?thank you
MickSorry, that one works on the two Ubuntu boxes I have set up. However, SU6 has always had some weird graphics export problems...the other day I had a 3500x3500 pixel image fail, inexplicably, on a Windows box until I changed the export resolution to 3499x3499.
Did you try the export with another image format, like PNG? Also, see what happens if you turn off antialiasing under options when you export a 2D graphic file.
If you really want to test the file, post it to me and I'll try an export using SU on Wine on my Ubuntu workstation.
-
Just to make sure it works and no update has broken the functionality recently, I just switched over to Linux and did some JPG exports. In fact, for some reason, the export process seemed much faster than it did using the same file on XP. And this is a fairly elaborate model, with shadows and antialiasing turned on, at 3000 pixels in its longest direction (resized here with GIMP).
Mick, you might want to check and see if your current Ubuntu installation can view or create JPG files using any application (try GIMP). I've never had to look for a library for viewing or writing JPGs on Linux, but it is a non-Open-Source format so perhaps you managed to not install it or delete it.
-
While making these JPG tests, I decided to let Ubuntu update the NVidia GLX driver for my computer, and in fact most elements of graphic performance improved after a restart. Except in one area: when unselecting an object, or when closing a group/component open for editing, actually seeing the change on the screen is delayed until one moves the camera or starts another operation.
That's surprisingly annoying with a complex model full of nested components, and I don't think it was happening prior to the latest batch of updates!
-
sure, with gimp and other sw I can manage jpg without any problem.
Fortunately, thanks to you, I can export in png perfectly
can you paste the output of the command:aptitude search jpeg
compliments for your work
see you
Mick -
@michelinux said:
sure, with gimp and other sw I can manage jpg without any problem.
Fortunately, thanks to you, I can export in png perfectly
can you paste the output of the command:aptitude search jpeg
compliments for your work
see you
MickHere you go:
@unknownuser said:
p avifile-mjpeg-plugin - MJPEG video plugin for libavifile
p cl-jpeg - A JPEG library for Common Lisp
p jpeginfo - Prints information and tests integrity of
p jpegoptim - utility to optimize jpeg files
p jpegpixi - Remove hot spots from JPEG images with min
p libclan2c2a-jpeg - JPEG module for ClanLib game SDK
v libjpeg-dbg -
v libjpeg-dev -
p libjpeg-progs - Programs for manipulating JPEG files
i libjpeg62 - The Independent JPEG Group's JPEG runtime
p libjpeg62-dbg - Development files for the IJG JPEG library
p libjpeg62-dev - Development files for the IJG JPEG library
p libmjpegtools-dev - MJPEG video capture/editting/playback MPEG
i A libmjpegtools0c2a - MJPEG video capture/editting/playback MPEG
v libplayerjpeg-dev -
p libplayerjpeg2 - Networked server for robots and sensors -
p libplayerjpeg2-dev - Networked server for robots and sensors -
i A mjpegtools - MJPEG video capture/editting/playback MPEG
p ov51x-jpeg-source - Source for the ov51x-jpeg driver
p recoverjpeg - Recover jpeg pictures from a filesystem imI hope that helps, Mick.
-
I have the same packages installed, maybe it happens bacause I have a 64bit version
Thanks anyway, today I've tried to modify export resolution with png format, after that the program makes error exporting in png, even re-turning on use view dimension...
See you
Mick -
@michelinux said:
I have the same packages installed, maybe it happens bacause I have a 64bit version
Thanks anyway, today I've tried to modify export resolution with png format, after that the program makes error exporting in png, even re-turning on use view dimension...
See you
MickUsually SketchUp starts having problems with export resolutions greater than 4000 pixels in any direction, independent of platform, unless antialiasing is turned off, under Options in the export dialog. You might see if that helps; otherwise you're probably right about the 64-bit version being the issue, although I can't imagine why that would be such an issue.
Quite a few people on this link have been able to run SU on various other distros than SU; if you have the time and partition space, why not test one out, or for that matter make a partition for booting Ubuntu 32-bit? At least that would be one way of isolating the problem.
If I can find the time, I'll download the Ubuntu 64-bit and see if the problem is there for me. Might be a few days, though, until I have that much spare time.
Just out of curiosity, Mick, do you generally see much performance improvement with Ubuntu 64-bit, outside of the SU problem? What applications show the most difference, if you do?
-
If you have a 64bit CPU (Intel or AMD, ubuntu 64 is for both) you can experience clear performance improvement from system boot speed to every application, particularly with applications that require a lot of RAM. Moreover it has been resolved the problem with non-64bit applications like adobe flash player and openoffice.
The space, but the time in order to test a system does not lack me, but I can test it to my friend's pc.
ciao
Mick -
@lewiswadsworth said:
By the way, I'm told that if someone contacts Google SketchUp's support team with a question about SU on Linux now, they are directed to look at this thread!
Wow, seems like our pro licence money is hard at work.
-
@unknownuser said:
@lewiswadsworth said:
By the way, I'm told that if someone contacts Google SketchUp's support team with a question about SU on Linux now, they are directed to look at this thread!
Wow, seems like our pro licence money is hard at work.
No, they're just being nice. First they tell you that they simple don't have the resources to make SU available on major Linux distros, but if you insist on trying...
Actually, everything here works on the free SU as well. In fact, that is easier to install because it doesn't insist on a pointless download of .NET to run Layout (which doesn't work on Linux, because .NET has never been ported to Linux by Microsoft).
-
I have told various linux 3d purists on other forums about our thread here. Not one has shown any interest, they have all dismissed SU. They all seem to be loyal to Blender, wings 3d or k-3d. I hadn't heard of k-3d before, link below
http://www.k-3d.org/wiki/Main_PageI was surprised they weren't more interested, or at least a little enthusiastic, with the exception of Blender, Sketchup seems to be streets ahead of any native linux 3d app.
-
I have heard of k-3d, and keep it on my machines. It'll will be great and fully functional for professional design purposes, at this rate, in about 13.5 years, by which time of course we will be absorbed by the Singularity (so who'll give a damn about 3D modeling then, anyway?).
By Linux purists, do you mean Stallman-type Open-Source advocates? The kind of people who insist upon using the awful version of Ubuntu (or worse, Debian) without any proprietary software at all? That's a religious stance they hold, and it's about as useful. And I have as about as much use for those who hold it as I do for any fundamentalists.
I actually don't care as much about Linux as I do about the interfaces of the various desktop managers, which are of course available on a variety of "engines" that matter very little to non-coders as long as they keep the interfaces running and apps cooking along. I've read of people getting SketchUp to run on BSD and OpenSolaris...more power to them.
Has anyone had more luck with SU-on-Wine-on-Linux on any particular desktop manager than with others? I have personally only tried it on plain-Jane GNOME, and it seems to be fine.
-
Thanks...that is very interesting. I downloaded a copy of Ubuntu 64 and I'll install it on a Core Duo computer sometime in a day or so and try this myself. Let us know about whether your SU 2D export problem persists on your friend's computer.
I've been working on a fairly large SU project recently (the one pictured above), and I have noticed that with increasing model complexity the general performance (modeling, screen redrawing, etc.) does seem to get worse faster on SU on Wine on Ubuntu 8.04LTS 32bit than it does on XP SP3 on the same hardware. But 2D and 3D exports seem to finish much, much faster on Ubuntu than they do on XP.
By the way, I'm told that if someone contacts Google SketchUp's support team with a question about SU on Linux now, they are directed to look at this thread!
Advertisement