Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

bin-macos error "Bad CPU type in e...

Main Forum
gs1
2010-08-25
2013-05-23
  • gs1
    gs1
    2010-08-25

    hello. i downloaded the macos binary of apngasm and tried it out per the instructions included in readme.txt. i got the following output:

         -bash: .../apngasm-2.1-bin-macos/apngasm: Bad CPU type in executable
    

    typing

    file apngasm
    

    returns

    Mach-O 64-bit executable x86_64
    

    thus the problem… i'm using Mac OS X Leopard 10.5.8 (9L31a) on an iMac Core Duo (Summer 2006) which is a 32 bit machine.

    any chance for a 10.5 compatible binary? or, some info on compiling from source w/ mac os x 10.5.8 + Xcode 3.1.4?

    hoping to make some animated PNG files :)  …thanks for all your efforts!

     
  • Max Stepin
    Max Stepin
    2010-08-25

    I'm not very familiar with Macs and Xcode, so guess I made a mistake while building it… I wanted to make *universal* binary.

    Generally compiling with gcc is simple:

    gcc -O2 -o apngasm apngasm.c -lz -lpng

    So try to setup Xcode project with apngasm.c and compile it,
    you would only need to add -lz -lpng for the linker.

    Let me know it that works.