Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

View Poll Results: Does Joost run?
Yes, everything works (even if it's slow). 49 30.25%
No, video doesn't work. 16 9.88%
No, sound doesn't work. 14 8.64%
No, fonts don't work. 3 1.85%
No, Something else doesn't work (pleas post) 18 11.11%
No, nothing works. 69 42.59%
Multiple Choice Poll. Voters: 162. You may not vote on this poll

 
Thread Tools Display Modes
Old May 9th, 2007   #1
mikewitt
5 Cups of Ubuntu
 
Join Date: May 2007
Beans: 22
Ubuntu 7.04 Feisty Fawn
Post HOWTO: Joost (with sound)

You need to recompile wine for this to work, and it takes a while. If you're afraid of doing this, you probably want to stop now.

This is for Ubuntu 7.04

First you need to get a few things ready for the install:

first and foremost, download a copy of the most recent Joost program from Joost

open Synaptic, click on "Settings --> Repositories" Click on the "3rd Party Tab" click "Add" at the bottom. In the box that comes up, type this (or copy it):
Code:
deb-src http://wine.budgetdedicated.com/apt feisty main
Click "Ok" and then close the settings window. After the popup that comes up, telling you that you need to hit the "Reload" button, hit the "Reload" button. Close synaptic.

In a console, type:
Code:
sudo apt-get build-dep wine
Now we're going to get the build things. You don't need this step if you've compiled things before:
Code:
sudo apt-get install linux-headers-$(uname -r) build-essential
Answer Y to any prompts that come up. (Thanks to foureight84 for suggesting $(uname -r))

Now get some dependencies:
Code:
sudo apt-get install fakeroot libasound2-dev libaudiofile-dev libesd0-dev libaudio-dev libcapi20-dev liblcms1-dev libcupsys2-dev libsane-dev libhal-dev libdbus-1-dev freeglut3-dev libc6-dev libexpat1-dev libfontconfig1-dev libfreetype6-dev libgcrypt11-dev libglib1.2-dev libglib2.0-dev libgpg-error-dev libice-dev libieee1284-3-dev libjpeg62-dev libldap2-dev libltdl3-dev libmad0-dev libmng-dev libncurses5-dev libogg-dev libopencdk8-dev libpng12-dev libqt3-mt-dev libsm-dev libusb-dev libvorbis-dev libx11-dev libxcursor-dev libxext-dev libxft-dev libxi-dev libxml2-dev libxmu-dev libxrandr-dev libxrender-dev libxslt1-dev libxt-dev libxv-dev render-dev unixodbc-dev x-dev zlib1g-dev xlibs-dev libxxf86dga-dev libxxf86vm-dev libjack0.100.0-dev libicu34-dev libungif4-dev libssl-dev
Now make a working directory:
Code:
mkdir wine-src
cd wine-src
and get the Wine source:
Code:
apt-get source wine
now cd into the directory that was just created by apt:
Code:
cd wine-0.9.39~winehq0~ubuntu~7.04
and run this command to download the patches necessary to run Joost: (I'm hosting these patches, because they're easire to get this way, rather than from the appdb site)
Code:
wget http://witt.michael.googlepages.com/patch2.patch http://witt.michael.googlepages.com/patch3.patch http://witt.michael.googlepages.com/patch4.patch http://witt.michael.googlepages.com/patch5.patch http://witt.michael.googlepages.com/patch6.patch http://witt.michael.googlepages.com/patch7.patch http://witt.michael.googlepages.com/patch8.patch
now we need to patch using the files we downloaded:
Code:
patch -p1 < patch2.patch
patch -p1 < patch3.patch
patch -p1 < patch4.patch
patch -p1 < patch5.patch
patch -p1 < patch6.patch
patch -p1 < patch7.patch
patch -p1 < patch8.patch
and now that we've patched everything (everything should have gone smoothly) type:
Code:
dpkg-buildpackage -rfakeroot -uc -b
This will take a LONG time (an hour or so)

after it's done, assuming no errors,
Code:
cd ..
and install:
Code:
sudo dpkg -i wine_0.9.39~winehq0~ubuntu~7.04-1_i386.deb
after that's done, type:
Code:
winecfg
Make sure that "Windows XP appears in the dropdown on the first page at the bottom. If it doesn't, select it.
Next click on the audio tab. Make sure that only "OSS Driver" is checked. At the bottom, turn DirectSound Hardware Acceleration to "Emulated" and check the checkbox that says "Driver Emulation"
Now go into the graphics tab, and check "Emulate a virtual desktop" and enter a size of 800x600. Uncheck "Allow the window manager to control windows"
Click "Apply" then "Ok"

Now to install joost:
Code:
cd
cd Desktop
wine JoostSetup-FriendsEdition-0.10.4.exe
and follow the prompts

To start Joost type:
Code:
cd ~/.wine/c_drive/"Program Files"/Joost
Then to start joost, type:
Code:
wine xulrunner/tvprunner.exe application.ini
If you don't like all those 'fixme' errors, which mean nothing to most people, run the command like this:
Code:
WINEDEBUG=fixme-all wine xulrunner/tvprunner.exe application.ini
It may take a couple of minutes, but you should eventually see a splash then a login window. Note that if you need to create a username (not an account, but a name associated with an email), you need to do that. When you click OK after doing what it says, you will just see in red letters "true" appear. It will not progress, but this is Ok, joost still got the info. Click Cancel, then type the name you just created.

You should now have Joost up and running. (Troubleshooting section at bottom)


=== METHOD 2 === GIT ===

This is a secondary method, using git to get the latest and greatest wine (which is not dependent upon a repo). We get the latest code (which might be unstable) and patch it. It is also faster when upgrading, as the files that are unchanged do not need to be recompiled.

WARNING: This method uses code snapshots, WHICH MAY BE UNSTABLE. USE AT YOUR OWN RISK.

Step 1:
First, download and install git (note that the version that is in the apt repo for dapper will NOT work; it's too old)
Code:
sudo apt-get install cogito
NOTE: If you try and download the program "git" from the apt repo, it will cause problems. It is not the same git we need.

2:
Make and go into the wine-src folder under home.
Code:
cd
mkdir wine-src
cd wine-src
3:
Use git to fetch the latest wine-source, then go into the directory.
Code:
git clone git://source.winehq.org/git/wine.git wine-git
cd wine-git
The git command will take a while. Just go grab something to eat while you wait.

4:
Use wget to download the patches: (As of 0.9.37 patch1.patch is no longer required, however all of the others are.)
Code:
wget http://witt.michael.googlepages.com/patch2.patch http://witt.michael.googlepages.com/patch3.patch http://witt.michael.googlepages.com/patch4.patch http://witt.michael.googlepages.com/patch5.patch http://witt.michael.googlepages.com/patch6.patch http://witt.michael.googlepages.com/patch7.patch http://witt.michael.googlepages.com/patch8.patch
5:
Apply patches:
Code:
patch -p1 < patch2.patch
patch -p1 < patch3.patch
patch -p1 < patch4.patch
patch -p1 < patch5.patch
patch -p1 < patch6.patch
patch -p1 < patch7.patch
patch -p1 < patch8.patch
6:
Commit patches to our branch.
Code:
git commit -a
Vi(m) will come up (which I hate) and you will need to know a few commands.
All command sequences start with a colon (Shift+. They end when you press enter.
To exit, use "quit" if you've changed something and want to quit without saving, use "quit!"
To save, use the command "write"

For the commits, uncomment the names of all of the first set of files. (they should all end with ".c")

7:
Make wine.
Code:
./configure
make depend && make
This will take a long time.

8:
Uninstall any previous versions of wine
If you used the instructions above, type
Code:
sudo dpkg remove wine
If you used apt to install wine, type
Code:
sudo apt-get remove wine
If you installed from source, cd into that directory, and type
Code:
sudo make uninstall
9:
Install the new version of wine.
Code:
sudo make install
10:
Check that wine was installed correctly
Code:
wine --version
This should show something like 'wine-0.9.37-g8d159b7'

11:
Continue by using the instructions above to install and run Joost.

How to use git to update the source (and save a lot of time recompiling):
1:
Type
Code:
git fetch
git rebase origin
2:
Run make again:
Code:
make depend && make
This shouldn't take long, as most of the files are unchanged.

3:
Reinstall.
Code:
sudo make install
Troubleshooting common problems (FAQ):
Q) Video doesn't work
A) If you have an nVidia card, try installing the latest beta drivers (for an x86: http://www.nvidia.com/object/linux_d...100.14.03.html) (Thanks to georgie for that answer)
For a tutorial:http://ubuntuforums.org/showthread.php?t=296933(Thanks Syosoft)
Also, if you use Beryl, set it to metacity, it will run better.
A2) Make sure that "Virtual Desktop" is checked, with a resoulution of 800x600. In more recent versions, unchecking Virtual Desktop (so NONE of the options are checked) sometimes works (and sometimes doesn't). It will play in fulscreen if it works, but can freeze if it doesn't. If it freezes, just hit Ctrl+Alt+Backspace and it will restart GDM (but you'll loose any work you may have done in the background.

Q) Sound doesn't work:
A) In winecfg, under the audio tab, try selecting different drivers; one should work. Also, make sure that "Hardware Acceleration" is set to Emulation, and not any of the other options. Also try checking the box that says "Emulate Sound driver)

Q) It won't start.
A) Go into a console and type 'wine --version' If it says anything less than 0.9.36 (if you've done it recently it should say 0.9.37) then you haven't installed your new wine, or an older version is taking control. Type "sudo apt-get remove wine" and then cd into your wine directory, and and install using the directions above. Then when you type 'wine --version' it should come up with 0.9.37. If it says that and still won't run, make sure you've patched everything (patches 2-. If it says 'cannot find wine' then just cd into your source directory, and install using the instructions above.

Q) Fonts don't work.
A) Try running this:
Code:
sudo apt-get install msttcorefonts
(Thanks methane)
If that doesn't work, after installing msttcorefonts, run the command:
Code:
cp /usr/share/fonts/truetype/msttcorefonts/* ~/.wine/drive_c/windows/fonts/
(Thanks tetralis)

Q) Should I use sudo when running wine?
A) Never.

Q) What should I do if Joost is using all my CPU?
Quote:
Originally Posted by javaJake View Post
If anyone gets stuck with Joost running with this bug, especially after installation, run "killall -KILL tvprunner.exe" - it's the only way you'll get it to close.

For more information, visit these links:
http://appdb.winehq.org/appview.php?iVersionId=7821
http://bugs.winehq.org/show_bug.cgi?id=1631

So, to sum up, this bug is known about already, but cannot be fixed without dramatic patches.
*** CHANGELOG ***
May 11, 2007: Initaial Revision
May 12, 2007: Added git method, updated to reflect newest version of wine.
May 14, 2007: Added ./configure to git method because of a suggestion. Also added Troubleshooting/FAQ section.
May 16, 2007: Fixed linux-headers section.
May 20, 2007: Added more info to troubleshooting.
May 22, 2007: More info added.
May 24, 2007: Joost has been updated! Brought tutorial up to speed.
May 26, 2007: See message at the top.
June 3, 2007: Changed to reflect Version 0.9.38 of wine.
June 9, 2007: Updated to reflect Joost 0.10.4
June 12, 2007: Added method to get rid of 'fixme' errors.
June 16, 2007: Removed link at top to invites; no more left.
June 18, 2007: Updated to reflect version 0.9.39 of wine in repo.
June 25, 2007: Minor typos corrected; clarified instructions.

Last edited by mikewitt; June 25th, 2007 at 10:59 PM..
mikewitt is offline   Reply With Quote
Old May 9th, 2007   #2
Mets
Gee! These Aren't Roasted!
 
Mets's Avatar
 
Join Date: Jul 2005
Beans: 155
Ubuntu 9.04 Jaunty Jackalope
Re: HOWTO: Joost (with sound)

can't wait to try this (need to upgrade first), looks awesome, thanks for posting
Mets is offline   Reply With Quote
Old May 9th, 2007   #3
gorilla_king
Just Give Me the Beans!
 
Join Date: Jun 2006
Location: Texas, USA
Beans: 59
Ubuntu 7.04 Feisty Fawn
Send a message via AIM to gorilla_king Send a message via Yahoo to gorilla_king
Re: HOWTO: Joost (with sound)

never heard of joost before. sounds cool. i want to try it. would someone mind sending me an invite thrasher.basher@gmail.com
thanks in advance
gorilla_king is offline   Reply With Quote
Old May 10th, 2007   #4
pingpongboss
Gee! These Aren't Roasted!
 
pingpongboss's Avatar
 
Join Date: Feb 2007
Location: USA
Beans: 141
Hardy Heron (Ubuntu Development)
Send a message via AIM to pingpongboss
Re: HOWTO: Joost (with sound)



I keep getting that screen even though I followed your directions on what to set on the Audio page for winecfg.

edit: this is what I get with version 0.9.2

Last edited by pingpongboss; May 10th, 2007 at 01:43 AM..
pingpongboss is offline   Reply With Quote
Old June 8th, 2007   #5
Swizzler121
First Cup of Ubuntu
 
Join Date: Jun 2007
Beans: 2
Re: HOWTO: Joost (with sound)

Quote:
Originally Posted by pingpongboss View Post


I keep getting that screen even though I followed your directions on what to set on the Audio page for winecfg.

edit: this is what I get with version 0.9.2
I'm getting the same error as him, how do i fix it?
Swizzler121 is offline   Reply With Quote
Old June 8th, 2007   #6
freeforall079
First Cup of Ubuntu
 
freeforall079's Avatar
 
Join Date: May 2007
Beans: 11
Xubuntu 7.04 Feisty Fawn
Re: HOWTO: Joost (with sound)

Quote:
Originally Posted by Swizzler121 View Post
I'm getting the same error as him, how do i fix it?
Try Alsa driver instead of OSS in winecfg.
freeforall079 is offline   Reply With Quote
Old June 8th, 2007   #7
Swizzler121
First Cup of Ubuntu
 
Join Date: Jun 2007
Beans: 2
Re: HOWTO: Joost (with sound)

Quote:
Originally Posted by freeforall079 View Post
Try Alsa driver instead of OSS in winecfg.
hmm, tried that, no luck.

this is the errors the terminal puts out:
fixme:font:GetCharacterPlacementW flags 0x00000132 ignored
fixme:font:GetCharacterPlacementW flags 0x00000132 ignored
fixme:font:GetCharacterPlacementW flags 0x00000132 ignored
fixme:font:GetCharacterPlacementW flags 0x00000132 ignored

seems to be something with the fonts, but i'm seeing everything fine, so idk...
Swizzler121 is offline   Reply With Quote
Old June 11th, 2007   #8
bofh80
First Cup of Ubuntu
 
Join Date: Jun 2007
Beans: 5
Cool Re: HOWTO: Joost (with sound)

Hi there Mike thanks for the reply.
Unfortunaltey that produced no output at all, the Joost diaglog came up the same as before, but no errors on the command line at all
Is there a way to increase the debugging value?
Many thanks for your help/#

edit

i tried with winedbg, and it quite quickly just started doing this:

First chance exception: page fault on read access to 0x01b60020 in 32-bit code (0x00f6f01a).
the memory values appear to change everytime, i'm really not that experienced with winedbg.....
-------------
also i should note that everytime i've installed Wine, (from anywhere it seems) i get this msg :
ldconfig: /usr/lib/libphysfs-1.0.so.1 is not a symbolic link

Last edited by bofh80; June 11th, 2007 at 09:37 PM.. Reason: updates
bofh80 is offline   Reply With Quote
Old June 14th, 2007   #9
Mirar
First Cup of Ubuntu
 
Join Date: Jun 2007
Beans: 2
no video streams? hint, please...

Excellent guide, thank you.

I seem to have some issues, though.

The biggest is that Joost doesn't seem to be able to download any video data. I can choose channel and program and everything, but no video ever comes up. Anyone has any idea how to debug that? I don't get much in the way of errors. Maybe someone can show me a netstat over Joost to see if I have all the proper network connections running or give me a hint on how to trace what's going wrong? Or a link to some wine-network-and-sound-testing-software?

The second problem is that I don't get any sounds. Joost never complains about that either (neither OSS nor Alsa gives any complaints; turning off emulation does). But that might follow from the fact I don't get any video either - don't know if it has default sounds that plays anyway...

Joost starts fine within seconds, by the way. No five minute wait. But no video stream, even in hours...

Wine 0.9.38, Joost 10.4.
I would like to try with Joost 10.3, anyone has that somewhere still?

(Also, 10.4 works fine on a windows computer on the same network.)

/Mirar

wine output:
fixme:wave:ALSA_AddCaptureDevice Add support for DSCapture
fixme:iphlpapi:NotifyAddrChange (Handle 0x7cbae958, overlapped 0x7cbae93c): stub
fixme:keyboard:BlockInput (1): stub
fixme:font:GetCharacterPlacementW flags 0x00000132 ignored
[...N times...]
fixme:font:GetCharacterPlacementW flags 0x00000132 ignored
fixme:d3d:IWineD3DDeviceImpl_SetMultithreaded No thread safety in wined3d yet
fixme:d3d:IWineD3DDeviceImpl_GetAvailableTextureMe m (0x174ac00) : stub, simulati
ng 64MB for now, returning 64MB left
fixme:font:GetCharacterPlacementW flags 0x00000132 ignored
[...inf times...]
Mirar is offline   Reply With Quote
Old June 15th, 2007   #10
flawedprefect
5 Cups of Ubuntu
 
Join Date: Mar 2007
Beans: 32
Re: HOWTO: Joost (with sound)

I get a "Runtime Error!

Program C:\Program Files\Joost\xulrunner\tvprunner.exe

R6031
-Attempt to initialize the CRT more than once.
This indicaes a bug in your application

Any thoughts?

THis is when running either of the above commands to initialize Joost.
flawedprefect is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:38 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry