[Bf-committers] CMake link problem

Diego Hernan Borghetti bdiego at gmail.com
Wed Jul 25 15:55:18 CEST 2007


On Wed, 25 Jul 2007, Hans Lambermont wrote:

> Hi all,
>
> This must be easy to fix :
>
> [100%] Building C object source/creator/CMakeFiles/blender.dir/dna.o
> Linking C executable ../../bin/blender
> lib/libbf_soundsystem.a(SND_OpenALDevice.o)(.text+0xbef): In function `SND_OpenALDevice::LoadSample(STR_String const&, void*, int)':
> : undefined reference to `alutLoadWAVMemory'
>
> And the same for:
> : undefined reference to `alutLoadWAVFile'
> : undefined reference to `alutUnloadWAV'
> *** Error code 1
>
> Anyone ?
>
> System: CMake, FreeBSD 6.2-RELEASE, svn-blender/2-44-stable
>
> -- Hans
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>

Some Linux distributions have the openal and alut in two diferent 
librarys and have this problem, a simple fix is edit the user-config.py 
(or linux-*.py) and set in the BF_OPENAL_LIB = 'openal alut' (for scons) 
but i don't build with CMake.

Have cmake an option like this ?

-- 
 			Diego


More information about the Bf-committers mailing list