I have recently switched from windows to Ubuntu Studio
I am having issues trying to get and sound to work in Blender
I pretty sure I have 2 sound cards - which might be the cause (one built in and a Realtek Audio sound card)
has anyone overcome this problem
I had no problem with sound in Windows (I don’t want to back )
Hello
sound works with other apps?
If yes it’s probably a missing library?
Start Blender from a console…any error messages?
Anyway try to install open AL (libopenal?) and SDL (libsdl?)
Bye
Assuming that your audio is working correctly in Ubuntu (startup sounds, video etc.) I find that building Blender from SVN (with Scons) takes care of the audio problem, at least with Feisty.
Hang in there! making the switch to Linux takes some effort, but in the long run it’s a great move.
yep, sound works with other apps - (although I can’t have 2 apps using the sound card at once)
no error messages when I start from terminal - says looking for python - Got it!
I install openal from the repo’s - I think I got the right one - is there a way to check?
I didn’t install SDL because I already have a version on my system - I don’t know if this is the right version either. When I checked to install another one it said it was going to uninstall the one I already have
try this one:
start blender from the console with the -g noaudio option like this:
blender -g noaudio
this disables the sound in the game engine, thus, liberating the “mixer” for the blender audio window…I hope
Bye
to successfully compile the blender build you need several libraries installed… in your case is it the sdl development library , just try to find it in Synaptic (do a search for sdl or libsdl and have a look for the suffix “dev”… I am under windows at the moment so I can’t look for myself) and install it. After doing that, you should again ty to compile blender a look for the next error
And just another hint: Every compilation error is a little hint for everyone trying to compile blender. What I mean is that if blender complains of missing some xyz-stuff, look for xyz and xyz-dev packages in your distro… don’t worry, it’s not as complicated as it seems
When you’re a nervous man you could also have a look at blender3d.org and search for a compilation howto-there will be a list of needed packages for a successfull build - but you still have to find and install the appropriate packages for your distro (Ubuntu studio)
Linking program ==> 'blender'
/home/waylow/build/linux2/lib/libbf_soundsystem.a(SND_OpenALDevice.o): In function `SND_OpenALDevice::LoadSample(STR_String const&, void*, int)':
SND_OpenALDevice.cpp:(.text+0xe42): undefined reference to `alutLoadWAVMemory'
SND_OpenALDevice.cpp:(.text+0xed2): undefined reference to `alutUnloadWAV'
SND_OpenALDevice.cpp:(.text+0xf05): undefined reference to `alutLoadWAVFile'
I have OpenAL installed from the synaptic (I installed every version on there)
I also tried to install OpenAL form the source
and I still have the same error
These are the current packages of openal I have installed
waylow@ulappy486:~$ apt-cache search "openal"
libalut-dev - OpenAL Utility Toolkit development files
libalut0 - OpenAL Utility Toolkit
libcoin40c2 - high-level 3D graphics kit with Open Inventor and VRML97 support - runtime
libghc6-alut-dev - Haskell ALUT binding for GHC
libghc6-openal-dev - Haskell OpenAL binding for GHC
libopenal-dev - OpenAL is a portable library for 3D spatialized audio
libopenal0a - OpenAL is a portable library for 3D spatialized audio
libopenalpp-cvs-dev - Object Oriented version of OpenAL
libopenalpp-cvs1 - Object Oriented version of OpenAL
libosgal-cvs-dev - OpenSceneGraph adapter for OpenAL
libosgal-cvs1 - OpenSceneGraph adapter for OpenAL
openalpp-cvs-doc - Object Oriented version of OpenAL
osgal-cvs-doc - OpenSceneGraph adapter for OpenAL
python-openal - port for Python of the OpenAL library
I think I have the right version of openal it is complaining about
Just came around here and saw that you are progressing Well done! But now back to your initial problem, the sound:
First:
I’ve got 2 questions about that…did you install (or is it already installed) the libsdl**-all (that’s for playing sound with all the different sound architectures [like alsa,oss,arts and so on] on sdl) ?
Second:
If everything is installed, did you try to export your SDL_Audiodriver and start blender with the noaudio option?
Example (move to the dir where blender is located and copy and paste it to the console):
export SDL_AUDIODRIVER=alsa && blender -g noaudio
If this works you would probably like to insert the export SDL_AUDIODRIVER=alsa to your /etc/environment to have it set everytime you start?!
Hi again,
the XLib-error is not important…blender is ignoring it by the way
The other thing is easy:
With the export command written to the environment file you tell Ubuntu to export the SDLAudioDriver=alsa everytime you start your PC. You don’t tell it to start blender with the “-g noaudio” command. To fix the behaviour of typing “blender -g noaudio” everytime you start it, you have to do a right click on the applications menu of your Ubuntustudio and edit the blender starter (just check the “run in terminal” option too because you will notify possible errors and status messages easier).
And a short tip: Please don’t try to close the terminal that appears after you clicked on your blender menu entry (after applying all the proposed changes) - it will cause blender to close too :rolleyes:. Right after the start it doesn’t matter but if you are working on a project for a longer time in one session (without saving) then it will matter
Happy Blending and have fun with a very cool operating system, Tom (on Edgy)