Forums

Full Version: Error when trying to install vdrift on Ubuntu 9.10
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I try to install vdrift from "http://www.playdeb.net/updates/VDrift" by clicking on the "Install this now" button

I'm running Ubuntu 9.10 and I get the following messages:

- After clicking , I get a message box "start application" and I choose "apturl".

- Then I get a dialog telling me that 42 files have been downloaded.

- Then I get a dialog telling "Package 'vdrift' could not be found"

In the wiki I read, I have to install several sdl-packages. I could not find any matching package names in synaptic, so I did not install any of them.

Would be great if anyone could help me.

Best regards,
Diegu
Hi guys,

just downloaded the sources and compiled them.
Runs fine - except sound is awkward.

Judging from other posts, I assume the binaries are not available for ubuntu.

Regards,
Diegu
The playdeb binaries are the only ones I'm aware of, although I haven't ever tried using them (might want to contact the folks there?).

What's awkward about the sound?
joevenzon Wrote:[...]
What's awkward about the sound?

The sound resembles to an old Commodore 64 game and is not at all realistic.

Having read something more, I think I have an installation problem or missing package? Sometimes I do not here any sound at all.

However, when starting, everything seems fine.

See log:
Code:
INFO: Display change was successful: 1680x1050x32 16z fullscreen=0
INFO: Video card information:
      Vendor: NVIDIA Corporation
      Renderer: GeForce 9600 GT/PCI/SSE2/3DNOW!
      Version: 3.0.0 NVIDIA 185.18.36
      Maximum texture size: 8192
      Using GLEW 1.5.1
INFO: Disabling shaders
INFO: Maximum anisotropy: 16
INFO: 0 joysticks found.
INFO: Loading car controls from: /home/diegu/.vdrift/controls.config
INFO: Sound initialization information:
INFO: Obtained audio device:
      Frequency: 44100
      Format: 32784
      Bits per sample: 16
      Channels: 2
      Silence: 0
      Samples: 512
      Size: 2048
      Sound initialization successful

Best regards,
Diegu
...me again (sorry)

Just searched a bit and did the following:
Installed libopenal1 and added a local .openalrc with the following contents:

Code:
(define devices                 '(native alsa sdl arts esd null))
(define alsa-device             "dsp0")
(define speaker-num             2)
;(define sampling-rate          22050)

No change:
Mostly i hear no sound at all.
Sometime sound is crashed.
Once I heard "correct" sound of car for half a lap, then sound got "scrumbled" again.

Any help appreciated.

Best regards,
Diegu
Try playing around with this part of the code in src/game.cpp:
Code:
bool GAME::InitializeSound()
{
    if (sound.Init(512, info_output, error_output))

Change the 512 to a higher value like 1024 or 2048, recompile, and see if that fixes it for you.
Thanks joevenzon!

That helped a lot. Problem fixed, fine sound now!

Thanks again and best regards,
Diegu
diegu Wrote:Hi guys,

just downloaded the sources and compiled them.

where and how?
It looks like you already figured this out, but I'll post the answer here anyway in case it helps someone else:

http://wiki.vdrift.net/Installing_on_Linux