svn compilation on windows 7 - openal and vorbisfile prereqs

All development conversation and discussion takes place here

Moderator: Moderator

Post Reply
Message
Author
Freddybear
Wyrmic
Posts: 201
Joined: Wed Dec 06, 2006 6:58 pm
Location: Mordor, Ohio

svn compilation on windows 7 - openal and vorbisfile prereqs

#1 Post 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" }

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

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

#2 Post by darkgod »

Ah good thanks, saving me the trouble of figuring it out myself ! :)
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply