4

OS X 10.7.1 で Xcode 4.2 で libpng を使用すると問題が発生します。

プログラムの起動に失敗し、次のエラーが表示されます:

dyld: Library not loaded: /usr/X11/lib/libpng15.15.dylib

と:

Reason: Incompatible library version: glsl_test requires version 20.0.0 or later, 
but libpng15.15.dylib provides version 17.0.0

リンクされたライブラリに追加/usr/X11/libpng.dylibするだけなので、この「バージョン 20」の要件はどこから来るのでしょうか? Xcode が利用可能なバージョンを必要としないのはなぜですか? バージョン 17 を使用してもよいことをプログラムに伝えるにはどうすればよいですか?

4

1 に答える 1

0

Without knowing much about the intricacies of Xcode, it sounds like something else in your program requires a later version of the libpng library. This could even be something that is implicitly included by the build environment.

I'd double-check that you have a build environment that is compatible with your intended target. I'd also double-check that you're specifying the inclusion of the library using appropriate syntax (e.g., using -lpng vs. an explicit "/usr/X11/libpng.dylib").

于 2012-02-06T17:55:20.057 に答える