mechanicmarx / gamekit

Automatically exported from code.google.com/p/gamekit
0 stars 0 forks source link

OpenAL sound is not working in XCode4 #165

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
----------------------------------------------------
1. Default CMake Build including AppOgreKit (ensure OpenAL is included in 
options) 
2. Build in XCode 4 (need to include the fix from my previous issue)
3. Run AppOgreKit

What is the expected output? What do you see instead?
----------------------------------------------------
I expect the standard sounds to play, I get nothing. This is a minor 
improvement as a few days ago (maybe a week) it was crashing

What version of the product are you using? On what operating system?
----------------------------------------------------
Latest version (as of this issue log), using XCode4 to build on Mac OSX 10.6

Original issue reported on code.google.com by BenT.Sol...@gmail.com on 1 Apr 2011 at 7:30

GoogleCodeExporter commented 8 years ago
It seems, pthread or ogg codec has a issue with XCode4.

Original comment by harkon...@gmail.com on 1 Apr 2011 at 3:07

GoogleCodeExporter commented 8 years ago
Change c/c++ compiler version llvm-gcc 4.2(xcode4 default) to gcc 4.2 in the 
project option,
then OpenAL sound will be working.

I'm looking for how to set gcc (not llvm) as default compiler on Apple platform.

Original comment by harkon...@gmail.com on 2 Apr 2011 at 6:39

GoogleCodeExporter commented 8 years ago
Works now (at least as much as it did before switching to XCode 4). 

If this is going to be a necessity, we need to get CMake to do it by default I 
think. Not sure how though as my limited research indicates it isn't possible 
to switch compilers via CMake settings.

Original comment by BenT.Sol...@gmail.com on 2 Apr 2011 at 12:16

GoogleCodeExporter commented 8 years ago
If XCode4 used for build, set gcc-4.2 as default compiler.  

http://code.google.com/p/gamekit/source/detail?r=877

Original comment by harkon...@gmail.com on 4 Apr 2011 at 2:25

GoogleCodeExporter commented 8 years ago
Works as expected. Thanks.

Given the above, I think this issue can be closed (at least in the short-term). 
At some point, I expect Apple to phase out the use of GCC; after all, they made 
LLVM the default after a year(?) of it being an option. However, we can examine 
the consequences of their decision then. :)

Original comment by BenT.Sol...@gmail.com on 4 Apr 2011 at 5:23

GoogleCodeExporter commented 8 years ago
Okay, let's close XCode4 related issues.

Original comment by harkon...@gmail.com on 4 Apr 2011 at 6:12