SFML community forums

Help => General => Topic started by: l0calh05t on July 27, 2009, 09:35:00 pm

Title: Build problem (libsndfile related)
Post by: l0calh05t on July 27, 2009, 09:35:00 pm
I decided to try to build the sfml2 branch on my linux vm, but I'm having trouble with the build, because the identifiers

SF_FORMAT_OGG
SF_FORMAT_VORBIS
SF_FORMAT_WVE
SF_FORMAT_MPC2K
SF_FORMAT_RF64

are not declared (in SoundFile.cpp)

libsndfile1-dev is installed, but none of these identifiers appear in sndfile.h
Title: Build problem (libsndfile related)
Post by: Laurent on July 27, 2009, 09:46:48 pm
You must have at least version 1.0.18.
Title: Build problem (libsndfile related)
Post by: l0calh05t on July 27, 2009, 09:50:33 pm
And I have 1.0.17-4ubuntu1... are there any ubuntu 9.04 repositories with a more current version?
Title: Build problem (libsndfile related)
Post by: l0calh05t on July 27, 2009, 10:41:11 pm
found one: https://launchpad.net/~mscore-ubuntu/+archive/ppa
Title: Build problem (libsndfile related)
Post by: K-Bal on September 10, 2009, 10:55:05 am
Laurent, could you add a note in the download section on this? ;)
Title: Build problem (libsndfile related)
Post by: Laurent on September 10, 2009, 11:01:12 am
It will be added as soon as I create a section for SFML 2 on the website.
Title: Build problem (libsndfile related)
Post by: Tank on September 10, 2009, 11:58:10 am
A section for SFML2? Sounds like progress. ;) What will be published?
Title: Build problem (libsndfile related)
Post by: Laurent on September 10, 2009, 12:00:44 pm
The same stuff as for other versions: documentation and tutorials.
Title: Build problem (libsndfile related)
Post by: K-Bal on September 25, 2009, 06:20:53 pm
Is 1.0.18. still a working version? I get the error message "File contains data in an unimplemented format" when loading .ogg.

Ubuntu 9.04 x64
Title: Build problem (libsndfile related)
Post by: Laurent on September 25, 2009, 08:03:24 pm
Is your OGG valid? Did you try the OGG file provided with the samples in the SFML SDK?
Title: Build problem (libsndfile related)
Post by: Tank on September 25, 2009, 08:32:00 pm
On my Debian GNU/Linux box the 1.0.18 version of libsndfile works perfect. So it's probably an installation/packaging issue.
Title: Build problem (libsndfile related)
Post by: K-Bal on September 26, 2009, 10:46:45 pm
I've tested it:

- wav works;
- .oggs from the samples don't work, neither do any I've tested.
Title: Build problem (libsndfile related)
Post by: Laurent on September 27, 2009, 11:21:25 am
You can try 1.0.20 if it's available for you.

Also make sure that you have ogg/vorbis libraries installed; I'm not sure but libsndfile may use them dynamically, and thus fail to load ogg files it they're not installed.
Title: Build problem (libsndfile related)
Post by: K-Bal on September 28, 2009, 06:13:06 pm
Sound works with 1.0.20.

However, I get those:

Quote

An internal OpenAL call failed in SoundBuffer.cpp (73) : AL_INVALID_OPERATION, the specified operation is not allowed in the current state
An internal OpenAL call failed in SoundBuffer.cpp (73) : AL_INVALID_OPERATION, the specified operation is not allowed in the current state
AL lib: alSource.c:2291: alcDestroyContext(): 28 Source(s) NOT deleted
AL lib: alBuffer.c:1097: exit() 4 Buffer(s) NOT deleted
Title: Build problem (libsndfile related)
Post by: Laurent on September 28, 2009, 06:28:07 pm
Do you destroy a SoundBuffer before the Sound(s) that uses it?