Getting Scrivener running under LInux with wine

User avatar
garpu
Posts: 1999
Joined: Mon Oct 25, 2010 9:38 pm
Platform: Linux

Tue Oct 26, 2010 3:59 am Post

I think I got it working. Here's what I did:

Install cabextract (from your distro's package manager or source)

1.) upgrade wine to 1.3.4 or 1.3.5 (1.3.5 is what i got it working on)
2.) use winetricks to install vcrun2008, vcrun6, and quartz.
3.) obtain a QtSvg4.dll and put it into ~/.wine/drive_c/windows/system32 (or wherever this is found on your distro). These are freely obtained from the QT open source windows SDK.

4.) If your pdf rendering is bad in imported files, use winetricks to install Quicktime 7. (thanks to darkhorse!)

Install Scrivener.

Enjoy. :D
Last edited by garpu on Thu Oct 28, 2010 5:34 pm, edited 4 times in total.
Slackware-current 64-bit, XFCE

User avatar
AmberV
Posts: 23324
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Santiago de Compostela, Galiza
Contact:

Tue Oct 26, 2010 4:01 am Post

Awesome! Thanks for posting these tricks. :)
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles

User avatar
garpu
Posts: 1999
Joined: Mon Oct 25, 2010 9:38 pm
Platform: Linux

Tue Oct 26, 2010 4:49 am Post

Used it for a good 40 minutes, and no crashes...
Slackware-current 64-bit, XFCE

User avatar
AmberV
Posts: 23324
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Santiago de Compostela, Galiza
Contact:

Tue Oct 26, 2010 5:20 am Post

Great to hear, I've bookmarked the thread so I can forward anyone to it that asks via e-mail.
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles

da
darkhorse
Posts: 78
Joined: Tue Oct 26, 2010 3:26 am
Platform: Windows

Tue Oct 26, 2010 8:35 am Post

(I posted this in the Bug Hunt forum on the Linux thread, but thought I'd add it here in case Linux users check this part of the forum first.)

After a lot of experimenting, I made a discovery I'd like to share with fellow Linux users:

Install the dotnet20 package with winetricks and suddenly you CAN use File-->Import-->Files to add images and documents to your project. Imported .rtf files come complete with formatting. Imported images don't have to be inserted into a document, and appear correctly in the research folder (they appear on an index card in corkboard mode).

Unfortunately, .pdf files don't seem to import correctly. Neither do .mp3 files. But we're making progress here adding access to some more usability to Scrivener under Wine, and that's exciting. :D

Also, at this point copying from an .rtf in AbiWord and using "paste" in Scrivener doesn't work...but using "paste and match style" DOES work to paste. It doesn't do a whole lot of "match style", but hey. We can always format the text once it's there. :wink:
Ubuntu 10.04 i386 / Gnome
No matter how ephemeral it is, a novel is something, while despair is nothing.
--Mario Vargas Llosa

ca
catalinux
Posts: 49
Joined: Tue Oct 26, 2010 12:10 pm
Platform: Linux

Tue Oct 26, 2010 1:08 pm Post

I can confirm, (only) after installing (from winetricks) vcrun2008, vcrun6 and quartz, Scrivener installs and runs. (my distro is aptosid xfce 64bit)

Not using QtSvg4.dll, but indeed I got an errormessage:

Code: Select all

err:module:import_dll Library QtSvg4.dll (which is needed by L"Z:\\home\\user\\Scrivener\\imageformats\\qsvg4.dll") not found


No need to install winetricks, just run the last script from http://winezeug.googlecode.com/svn/trunk/winetricks with no parameters to manually select what you want to install, or with parameters

./winetricks vcrun2008 vcrun6 quartz

Additionally you will need cabextract.

The File - Import - Files option runs well for .txt, images and .rtf (small size .rtf, I got a crush for large .rtf file) without installing dotnet20.
aptosid xfce/scrotwm amd64

User avatar
garpu
Posts: 1999
Joined: Mon Oct 25, 2010 9:38 pm
Platform: Linux

Tue Oct 26, 2010 1:25 pm Post

catalinux wrote:Additionally you will need cabextract.


Yes, thanks, I edited my first post. (A step I forgot.)

The File - Import - Files option runs well for .txt, images and .rtf (small size .rtf, I got a crush for large .rtf file) without installing dotnet20.


I was able to import a large (over 50,000 word document) rtf, although some of the formatting was broken. (For instance any "***" in the text made the text following disappear until another chapter started. When I installed dotnet20 via winetricks, that problem was solved.
Slackware-current 64-bit, XFCE

ca
catalinux
Posts: 49
Joined: Tue Oct 26, 2010 12:10 pm
Platform: Linux

Tue Oct 26, 2010 2:17 pm Post

garpu wrote:3.) obtain a QtSvg4.dll and put it into ~/.wine/drive_c/windows/system32 (or wherever this is found on your distro).


trying to register QtSvg4.dll

Code: Select all

regsvr32 QtSvg4.dll


gives this error:

Code: Select all

err:module:import_dll Library QtGui4.dll (which is needed by L"C:\\windows\\system32\\qtsvg4.dll") not found
err:module:import_dll Library QtCore4.dll (which is needed by L"C:\\windows\\system32\\qtsvg4.dll") not found
Failed to load DLL qtsvg4.dll


It appears it works by just copying it in /system32 ;)
aptosid xfce/scrotwm amd64

da
darkhorse
Posts: 78
Joined: Tue Oct 26, 2010 3:26 am
Platform: Windows

Wed Oct 27, 2010 1:29 am Post

Linux users, if you have a crash when you go to File-->Page Setup, check that you have CUPS pdf installed. The cups-pdf package solved the crash for me on Ubuntu 10.04 & Wine 1.3.5. :)
Ubuntu 10.04 i386 / Gnome
No matter how ephemeral it is, a novel is something, while despair is nothing.
--Mario Vargas Llosa

ca
catalinux
Posts: 49
Joined: Tue Oct 26, 2010 12:10 pm
Platform: Linux

Wed Oct 27, 2010 8:06 am Post

darkhorse wrote:Linux users, if you have a crash when you go to File-->Page Setup, check that you have CUPS pdf installed. The cups-pdf package solved the crash for me on Ubuntu 10.04 & Wine 1.3.5. :)


Thanks! Installing cups-pdf solved the crash

User avatar
garpu
Posts: 1999
Joined: Mon Oct 25, 2010 9:38 pm
Platform: Linux

Wed Oct 27, 2010 12:49 pm Post

Edit: nevermind, I'm a complete idiot, who hasn't had her coffee yet. The Scrivener.exe file uploaded should be replacing the one in the Scrivener folder. I mistook it for a complete installer.
Last edited by garpu on Wed Oct 27, 2010 2:01 pm, edited 1 time in total.

da
darkhorse
Posts: 78
Joined: Tue Oct 26, 2010 3:26 am
Platform: Windows

Wed Oct 27, 2010 2:11 pm Post

catalinux wrote:
Thanks! Installing cups-pdf solved the crash


Great! We're making good progress with getting Scrivener to work nicely on Linux. I think it's amazing just how well it works, especially considering it's an early beta. :D
Ubuntu 10.04 i386 / Gnome
No matter how ephemeral it is, a novel is something, while despair is nothing.
--Mario Vargas Llosa

ga
garygibsonsfwriter
Posts: 24
Joined: Fri Nov 23, 2007 10:44 pm
Location: Glasgow
Contact:

Wed Oct 27, 2010 5:00 pm Post

I got it running just fine on Lucid Lynx, but haven't had the chance to test it and see if it crashes or not. I should add that although I did download and use winetricks, I didn't need to download or install the additional .dll files. Winetricks did the, er, trick.

Ja
Jaype
Posts: 55
Joined: Sat Oct 03, 2009 8:40 pm
Platform: Mac + Windows
Location: Truro, Cornwall, UK

Wed Oct 27, 2010 9:49 pm Post

Good stuff - if only getting the Mac version to Windows was as easy. *sigh*
Confession: I am the Scrivener team's 'half-a-person".

da
darkhorse
Posts: 78
Joined: Tue Oct 26, 2010 3:26 am
Platform: Windows

Thu Oct 28, 2010 9:23 am Post

Jaype wrote:Good stuff - if only getting the Mac version to Windows was as easy. *sigh*


I think you and Lee and all of L&L are doing a fabulous job! :D
Ubuntu 10.04 i386 / Gnome
No matter how ephemeral it is, a novel is something, while despair is nothing.
--Mario Vargas Llosa