Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Compiling CocosDenshion
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
allenfjordan  
View profile  
 More options Jun 3 2009, 1:40 am
From: allenfjordan <allen.jor...@gmail.com>
Date: Tue, 2 Jun 2009 22:40:24 -0700 (PDT)
Local: Wed, Jun 3 2009 1:40 am
Subject: Compiling CocosDenshion
Hello folks.  I have a dumb question on compiling CocosDenshion
(latest code checked out from subversion just a few minutes ago... not
sure if there is a more stable version available).  This is the first
time I've tried doing this, but I can't seem to get past some linker
errors.  I tried Fraggle's trick from
http://fraggle.squarespace.com/blog/2009/5/11/iphone-sdk-gotchas-1.html
, but no luck.  Here are the linker errors:

  "_AudioSessionSetProperty", referenced from:
      -[CDAudioManager audioSessionResumed] in CDAudioManager.o
      -[CDAudioManager
init:channelGroupDefinitions:channelGroupTotal:] in CDAudioManager.o
      -[CDSoundEngine audioSessionResumed] in CocosDenshion.o
      -[CDSoundEngine init:channelGroupTotal:audioSessionCategory:] in
CocosDenshion.o
  "_ExtAudioFileSetProperty", referenced from:
      MyGetOpenALAudioData(__CFURL const*, int*, int*, int*)in
CocosDenshion.o
  "_AudioSessionGetProperty", referenced from:
      -[CDAudioManager
init:channelGroupDefinitions:channelGroupTotal:] in CDAudioManager.o
  "_AudioSessionSetActive", referenced from:
      -[CDAudioManager audioSessionResumed] in CDAudioManager.o
      -[CDAudioManager audioSessionInterrupted] in CDAudioManager.o
      -[CDSoundEngine audioSessionResumed] in CocosDenshion.o
      -[CDSoundEngine audioSessionInterrupted] in CocosDenshion.o
  "_ExtAudioFileGetProperty", referenced from:
      MyGetOpenALAudioData(__CFURL const*, int*, int*, int*)in
CocosDenshion.o
      MyGetOpenALAudioData(__CFURL const*, int*, int*, int*)in
CocosDenshion.o
  ".objc_class_name_AVAudioPlayer", referenced from:
      literal-pointer@__OBJC@__cls_refs@AVAudioPlayer in
CDAudioManager.o
  "_AudioSessionInitialize", referenced from:
      -[CDAudioManager
init:channelGroupDefinitions:channelGroupTotal:] in CDAudioManager.o
      -[CDSoundEngine init:channelGroupTotal:audioSessionCategory:] in
CocosDenshion.o
  "_ExtAudioFileRead", referenced from:
      MyGetOpenALAudioData(__CFURL const*, int*, int*, int*)in
CocosDenshion.o
  "_ExtAudioFileOpenURL", referenced from:
      MyGetOpenALAudioData(__CFURL const*, int*, int*, int*)in
CocosDenshion.o
  "_ExtAudioFileDispose", referenced from:
      MyGetOpenALAudioData(__CFURL const*, int*, int*, int*)in
CocosDenshion.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

Maybe the iPhone library for OpenAL is in a different spot, and I'm
not setting up the "Framework Search Paths" property correctly (right
now, I have it at $SDKROOT/System/Library/Frameworks with recursive
checked, where $SDKROOT seems to resolve to iphoneos2.2.1).  Any help
would be appreciated.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
allenfjordan  
View profile  
 More options Jun 3 2009, 1:59 am
From: allenfjordan <allen.jor...@gmail.com>
Date: Tue, 2 Jun 2009 22:59:51 -0700 (PDT)
Local: Wed, Jun 3 2009 1:59 am
Subject: Re: Compiling CocosDenshion
I forgot to mention that I'm using iPhone SDK 3.0 beta 5.  Not sure if
there are differences in the libraries that need to be linked in.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Oldmeadow  
View profile  
 More options Jun 3 2009, 2:07 am
From: Steve Oldmeadow <st...@smoco.com>
Date: Tue, 2 Jun 2009 23:07:30 -0700 (PDT)
Local: Wed, Jun 3 2009 2:07 am
Subject: Re: Compiling CocosDenshion
Are you trying to build the demo that comes with cocos2d or have you
added the files to your own project?

It looks like you have a problem with the AudioToolbox or CoreAudio
framework as well as AVFoundation, not OpenAL.

The code in svn has been tested in SDK 3.0 beta 5.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ryan E  
View profile  
 More options Jun 3 2009, 9:20 am
From: Ryan E <rge...@gmail.com>
Date: Wed, 3 Jun 2009 06:20:34 -0700 (PDT)
Local: Wed, Jun 3 2009 9:20 am
Subject: Re: Compiling CocosDenshion
I believe I had the same linking errors you had until I added the
required frameworks, Steve mentioned all the ones in his reply. One
thing you may notice is that some of the frameworks may not show up in
the framework list when you try to add them (i couldn't find
AVFoundation in the frameworks folder).  I had to manually find the
required frameworks from finder and add from a different location.
I'm not really sure why my 2.2.1 install was missing several
frameworks.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
allenfjordan  
View profile  
 More options Jun 3 2009, 11:05 am
From: allenfjordan <allen.jor...@gmail.com>
Date: Wed, 3 Jun 2009 08:05:22 -0700 (PDT)
Local: Wed, Jun 3 2009 11:05 am
Subject: Re: Compiling CocosDenshion
I copied the denshion library sources into my project, without the
demo folder.  After reading your post, I included the frameworks for
AudioToolbox, CoreAudio, and AVFoundation along with OpenAL, but no
luck.  I'm still getting linker errors, this time prefixed with _al.
All the frameworks were imported directly by finding them in the
iphoneos3.0 SDK folder.  I'm at work now... I'll post more details
when I get home.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Oldmeadow  
View profile  
 More options Jun 3 2009, 9:52 pm
From: Steve Oldmeadow <st...@smoco.com>
Date: Wed, 3 Jun 2009 18:52:07 -0700 (PDT)
Local: Wed, Jun 3 2009 9:52 pm
Subject: Re: Compiling CocosDenshion
On Jun 3, 11:05 pm, allenfjordan <allen.jor...@gmail.com> wrote:

> I copied the denshion library sources into my project, without the
> demo folder.  

Can you please try building the CocosDenshion demo project that is
shipped with cocos2d.  Then we can determine whether it is a problem
with your project or your environment.

If it is your environment then it would be useful to know if you have
problems with any other OpenAL apps like oalTouch or the Aeterius
sound engine.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
allenfjordan  
View profile  
 More options Jun 3 2009, 10:21 pm
From: allenfjordan <allen.jor...@gmail.com>
Date: Wed, 3 Jun 2009 19:21:33 -0700 (PDT)
Local: Wed, Jun 3 2009 10:21 pm
Subject: Re: Compiling CocosDenshion
I finally managed to build the library without any linker errors.  I'm
not sure exactly what fixed it, but here are the main steps I took:

1.  Under the general options, I changed "Base SDK for All
Configurations" to iPhone Device 3.0
2.  Under the build options, set to "All Configurations", I changed
"Framework Search Paths" by adding "$SDKROOT/System/Library/
Frameworks/"
3.  Now that the frameworks were being properly referenced from the
iphoneos3.0 platform directory, I added the following frameworks to my
project (through the "Link Binary With Libraries" section under
Targets):
    a.  OpenAL
    b.  CoreAudio
    c.  AVFoundation
    d.  AudioToolbox
4.  I was still getting linker errors until I deleted existing
frameworks that I had accidentally copied to my main project directory
through earlier escapades.

Now my project compiles cleanly.  Thanks for all the help... I'll try
compiling the CocosDenshion demo later, just to see if it works.

- Allen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
allenfjordan  
View profile  
 More options Jun 4 2009, 12:07 am
From: allenfjordan <allen.jor...@gmail.com>
Date: Wed, 3 Jun 2009 21:07:02 -0700 (PDT)
Local: Thurs, Jun 4 2009 12:07 am
Subject: Re: Compiling CocosDenshion
I tried playing a simple sound effect in my game, and it seems to work
perfectly :) .  One very small annoyance is the loading time when
initializing CDAudioManager (seems to be about 1 second on my iPod
Touch 2nd gen, longer on the simulator), but I'll try to do this when
the game is first starting rather than when loading the main game
after menu selection.  Thanks for making this great engine, Steve.
Hopefully I can put it to good use.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »