[Openal] Header files placement

Yaniv Pe'er jniv at netvision.net.il
Tue Aug 15 07:33:03 PDT 2006


Here's my recommendation,

I'm not sure exactly of the reasons they did it this way (I remember some
folks discussing it a while ago) but to fix this I just use system variables
for all my SDKs locations. It makes life easier if I happen to switch
machines or having to work from another computer with the files on a
different machine.

For example:
%SDKS_HOME% = c:\SDKS
%OPENAL_HOME% = %SDKS_HOME%\OpenAL\include
...

Then use "%OPENAL_HOME% ", etc... For the include directories in Visual
Studio (or any other compiler/editor) In Linux you would simply give the
variable a "/AL" at the end.


If you're working with Linux/Mac you don't have to change your source files,
you simply change the system variables. I think its good practice for any
kind of project regardless of which SDK you use.

You could probably play around with it in some other ways. I like this
method because it doesn't force me to change the SDK directories.


Yaniv Pe'er
Programmer, Artist, Game Developer
[[ http://www.GroteskAndMonstrous.com ]]

-----Original Message-----
From: openal-bounces at opensource.creative.com
[mailto:openal-bounces at opensource.creative.com] On Behalf Of Anders Backman
Sent: Tuesday, August 15, 2006 12:13 PM
To: 'OpenAL Mailing List'
Subject: [Openal] Header files placement


Cant help myself, but I have to start this thread (again).

Could someone come with strong arguments why OpenAL wont use <AL/al.h> under
windows instead of <al.h> or "al.h"

The SDK installation assumes that this is the case, why?

Makes life a mess to do cross-platform compilation, which is the main reason
for using OpenAL in the first place, right?

/Anders

________________________________________________________________
 Anders Backman               Email:    andersb at cs.umu.se
 HPC2N/VRlab                  Phone:    +46 (0)90-786 9936
 Umea university              Cellular: +46 (0)70-392 64 67
 S-901 87 UMEA SWEDEN         Fax:      +46 90-786 6126
                               http://www.cs.umu.se/~andersb

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.10.10/418 - Release Date: 2006-08-14
 

_______________________________________________
Openal mailing list
Openal at opensource.creative.com
http://opensource.creative.com/mailman/listinfo/openal


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.10.10/418 - Release Date: 14/08/2006


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.10.10/418 - Release Date: 14/08/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.10.10/418 - Release Date: 14/08/2006
 



More information about the Openal mailing list