Page 1 of 1

svn compilation on windows 7 - openal and vorbisfile prereqs

Posted: Sat Jun 18, 2011 7:12 pm
by Freddybear
Not exactly sure what svn level these showed up, but at svn 3768 for sure, you'll need to install OpenAL and ogg/vorbis support in MinGW to compile t-engine.

libogg and libvorbis are available here: http://xiph.org/downloads/
unpack them and run the usual ./configure --prefix=/usr/local; make; make install steps.
libogg first, then libvorbis.

OpenAL is available from: http://connect.creativelabs.com/openal/ ... -1.13.tbz2
You'll need CMAKE to compile openal.
cmake -G "MSYS Makefiles", then make and make install.
I didn't set the /usr/local prefix for cmake so I had to manually copy the include, lib and dll files to my MSYS directories.

finally, you'll need to edit the premake script for te4core. Here is a diff for that:

Code: Select all

Index: build/te4core.lua
===================================================================
--- build/te4core.lua	(revision 3678)
+++ build/te4core.lua	(working copy)
@@ -44,7 +44,7 @@
         	links { "IOKit" }
 
 	configuration "windows"
-		links { "mingw32", "SDLmain", "SDL", "SDL_ttf", "SDL_image", "openal", "OPENGL32", "GLU32", "wsock32" }
+		links { "mingw32", "SDLmain", "SDL", "SDL_ttf", "SDL_image", "Openal32.dll", "OPENGL32", "GLU32", "wsock32", "vorbisfile" }
 		defines { [[TENGINE_HOME_PATH='"T-Engine"']], 'SELFEXE_WINDOWS'  }
 		prebuildcommands { "windres ../src/windows/icon.rc -O coff -o ../src/windows/icon.res" }
 		linkoptions { "../src/windows/icon.res" }

Re: svn compilation on windows 7 - openal and vorbisfile pre

Posted: Sat Jun 18, 2011 10:09 pm
by darkgod
Ah good thanks, saving me the trouble of figuring it out myself ! :)