MyRecorder and 64-bit Intel

  • Using the code from Apple's MyRecorder example, I had to switch my architecture to 32-bit Intel in order to get it to work. Why can't I get it to work for 64-bit Intel?

    BACKGROUND:

    I was following the example in Apple's "QTKit Application Tutorial", but it kept crashing on me.

    I downloaded Apple's example project MyRecorder, and it worked.

    I copied the source code from MyRecorder into my project (with the exception of the class name), but my code still crashed.

    Comparing the build settings for the original MyRecorder project and my version, I noticed the demo was 32-bit Intel and mine was 64-bit Intel. When I changed mine to 32-bit Intel, my code worked.

    Does QTKit only work on 32-bit architectures? Am I using the wrong framework?

    I am using Lion 10.7.4 and Xcode 4.3.2 on a 2 x 2.4 GHz Quad-Core Intel Xeon

    Confused...

    Todd
  • On 6/9/12, Todd Heberlein <todd_heberlein...> wrote:
    > Using the code from Apple's MyRecorder example, I had to switch my
    > architecture to 32-bit Intel in order to get it to work. Why can't I get it
    > to work for 64-bit Intel?
    >
    >
    > BACKGROUND:
    >
    > I was following the example in Apple's "QTKit Application Tutorial", but it
    > kept crashing on me.
    >
    > I downloaded Apple's example project MyRecorder, and it worked.
    >
    > I copied the source code from MyRecorder into my project (with the exception
    > of the class name), but my code still crashed.
    >
    > Comparing the build settings for the original MyRecorder project and my
    > version, I noticed the demo was 32-bit Intel and mine was 64-bit Intel. When
    > I changed mine to 32-bit Intel, my code worked.
    >
    > Does QTKit only work on 32-bit architectures? Am I using the wrong
    > framework?
    >
    >
    > I am using Lion 10.7.4 and Xcode 4.3.2 on a 2 x 2.4 GHz Quad-Core Intel
    > Xeon
    >
    >
    > Confused...
    >

    First, you should file a bug report with Apple.

    Second, QTKit does work in 64-bit, but with some caveats. There are
    some holes in the API caused by some functions never being ported to
    64-bit. But usually you get compiler errors for that. So I'm not sure
    what kind of problem you are hitting. If you installed any Quicktime
    plugins, make sure they were 64-bit too or remove them all.

    Third, the writing is on the wall for QTKit. Its days seemed numbered
    and it looks like you should be using AVFoundation for new code.

    -Eric
    --
    Beginning iPhone Games Development
    http://playcontrol.net/iphonegamebook/
previous month june 2012 next month
MTWTFSS
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30  
Go to today