[Openal-devel] OpenAL Soft 1.6.372 released!

Ludwig Nussel ludwig.nussel at suse.de
Sun Nov 23 11:33:45 PST 2008


Chris Robinson wrote:
> On Sunday 23 November 2008 08:29:58 am Ludwig Nussel wrote:
> > Is that special flag actually needed? I was able to cross compile
> > previous openal-soft versions just fine already AFAICT[1]. I use the
> > following toolchain file:
> 
> I'm not sure how this is supposed to work. CMake will only look for a 
> CMakeLists.txt in the directory path its given, so I tried putting it in a 
> seperate directory to include the previous one, but it expects the source 
> files to be relative from the new sub-directory and won't find them.

In the .spec file for the openal-soft-win32-1.5.304 package I have
the following call (%SOURCE99 is the toolchain file):

cd CMakeConf
cmake \
    -D CMAKE_TOOLCHAIN_FILE=%SOURCE99 \
    -D CMAKE_INSTALL_PREFIX=/opt/cross/i386-mingw32msvc \
    -D CMAKE_C_FLAGS:STRING="$RPM_OPT_FLAGS" \
    ..

Which results in calls like this:

[ 23%] Building C object CMakeFiles/openal32.dir/OpenAL32/alExtension.obj
/opt/cross/bin/i386-mingw32msvc-gcc  -DAL_BUILD_LIBRARY -Dopenal32_EXPORTS -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -O2 -g -O2 -funroll-loops -D_DEBUG -I/usr/src/packages/BUILD/openal-soft-1.5.304/OpenAL32/Include -I/usr/src/packages/BUILD/openal-soft-1.5.304/include -I/usr/src/packages/BUILD/openal-soft-1.5.304/CMakeConf   -Wall -Wextra -o CMakeFiles/openal32.dir/OpenAL32/alExtension.obj   -c /usr/src/packages/BUILD/openal-soft-1.5.304/OpenAL32/alExtension.c

cu
Ludwig

-- 
 (o_   Ludwig Nussel
 //\   SUSE LINUX Products GmbH, Development
 V_/_  http://www.suse.de/







More information about the Openal-devel mailing list