トップページ > 記事閲覧
xcode バージョン15.2 lib_iOS.a シンボル未定義によるエラー 解決方法を教えて頂けると幸いです。
名前:レオン 日時: 2024/02/09 23:56

macを使ってxcodeバージョン15.2でDxLibを利用しようと設定していたのですが、エラーが解決しなくて困っています。 具体的には”_png_do_expand_palette_rgb8_neon”、”_png_do_expand_palette_rgba8_neon”、”_png_init_filter_functions_neon”、”_png_riffle_palette_neon”というシンボルが定義されていないため、リンクできないみたいです。 lib_iOS.aというライブラリ?フレームワーク?にはこれらのシンボルが含まれていないのかもしれないというのは分かったのですが含まれているのかどうかを調べる方法と含まれていないとしてどのフレームワークを改めて追加したら良いのか分からない為お手上げ状態です。 解決方法や何か手掛かりになることなど教えて頂けると幸いです。 よろしくお願いします。
メンテ

Page: 1 | 2 |

Re: xcode バージョン15.2 lib_iOS.a シンボル未定義によるエラー 解決方法を教えて頂けると幸いです。 ( No.1 )
名前:管理人 日時:2024/02/10 22:24

私の手元では xcodeバージョン 15.2 で正常にビルド、実行できましたので DXライブラリiOS版が最新環境に対応できていないということは無さそうです png関係のようですので、使い方ページの <Xcode 14.3.1 の iOSアプリ開発でのDXライブラリの使い方> https://dxlib.xsrv.jp/use/dxuse_xcode14_3_1_iOS.html 『3.DXライブラリを使用するためのプロジェクトの設定を行う』の中の 『D 次に同じく『Build Settings』の『Linking』の中の『Other Linker Flags』に以下の内容を入力します。』の リンクライブラリ設定の -lpng_iOS が正しく行われているか確認してみてください m(_ _)m
メンテ
Re: xcode バージョン15.2 lib_iOS.a シンボル未定義によるエラー 解決方法を教えて頂けると幸いです。 ( No.2 )
名前:レオン 日時:2024/02/15 18:56

1. 『3.DXライブラリを使用するためのプロジェクトの設定を行う』の中の 『D 次に同じく『Build Settings』の『Linking』の中の『Other Linker Flags』に以下の内容を入力します。』の リンクライブラリ設定の -lpng_iOS は正しく行われていると思います。 Other Linker FlagsのDebugとReleaseにそれぞれ -lDxLib_iOS -lDxUseCLib_iOS -lpng_iOS -lzlib_iOS -ljpeg_iOS -lbullet_iOS -logg_iOS -lvorbis_iOS -ltheora_iOS -ltiff_iOS -lopus_iOS と入力しています。 2. また、Seach PathsのHeader Search Paths、Library Seach Pathsの両方のdebugに /Users/iguchishouju/Downloads/DxLib_iOS/プロジェクトに追加すべきファイル_iOS用/Debug-iphonesimulatorを入力し、 両方のReleaseに/Users/iguchishouju/Downloads/DxLib_iOS/プロジェクトに追加すべきファイル_iOS用/Release-iphonesimulatorを入力しています。 これで正しいでしょうか? 3. poductをrunさせるとbuild faledと表示されエラーが二つ出ます。 一つはUndefined symbols: 二つ目はLinker command failed with exit code 1 (use -v to see invocation)です。 エラーの具体的な内容はこうです。 Ld /Users/iguchishouju/Library/Developer/Xcode/DerivedData/game-efwnxmqygesuhicusljgkfiljjly/Build/ Products/Debug-iphonesimulator/game.app/game normal (in target 'game' from project 'game') cd /Volumes/I-O\ DATA/xcode/game /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -Xlinker -reproducible -target arm64-apple-ios17.2-simulator -isysroot /Applications/Xcode.app/Contents/Developer /Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk -O0 -L/Users/iguchishouju/Library /Developer/Xcode/DerivedData/game-efwnxmqygesuhicusljgkfiljjly/Build/Intermediates.noindex/EagerLinkingTBDs /Debug-iphonesimulator -L/Users/iguchishouju/Library/Developer/Xcode/DerivedData/game-efwnxmqygesuhicusljgkfiljjly/Build /Products/Debug-iphonesimulator -L/Users/iguchishouju/Downloads/DxLib_iOS/プロジェクトに追加すべきファイル_iOS用/Debug-iphonesimulator -F /Users/iguchishouju/Library/Developer/Xcode/DerivedData/game-efwnxmqygesuhicusljgkfiljjly/Build/Intermediates.noindex/EagerLinkingTBDs /Debug-iphonesimulator -F/Users/iguchishouju/Library/Developer/Xcode/DerivedData/game-efwnxmqygesuhicusljgkfiljjly/Build/Products /Debug-iphonesimulator -filelist /Users/iguchishouju/Library/Developer/Xcode/DerivedData/game-efwnxmqygesuhicusljgkfiljjly/Build /Intermediates.noindex/game.build/Debug-iphonesimulator/game.build/Objects-normal/arm64/game.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/iguchishouju/Library/Developer/Xcode/DerivedData /game-efwnxmqygesuhicusljgkfiljjly/Build/Intermediates.noindex/game.build/Debug-iphonesimulator/game.build/Objects-normal/arm64 /game_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -lDxLib_iOS -lDxUseCLib_iOS -lpng_iOS -lzlib_iOS -ljpeg_iOS -lbullet_iOS -logg_iOS -lvorbis_iOS -ltheora_iOS -ltiff_iOS -lopus_iOS -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/iguchishouju/Library/Developer/Xcode/DerivedData /game-efwnxmqygesuhicusljgkfiljjly/Build/Intermediates.noindex/game.build/Debug-iphonesimulator/game.build /game.app-Simulated.xcent -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __ents_der -Xlinker /Users/iguchishouju/Library/Developer /Xcode/DerivedData/game-efwnxmqygesuhicusljgkfiljjly/Build/Intermediates.noindex/game.build/Debug-iphonesimulator/game.build /game.app-Simulated.xcent.der -framework UIKit -framework QuartzCore -framework OpenGLES -framework OpenAL -framework MessageUI -framework GLKit -framework GameController -framework Foundation -framework CoreText -framework CoreMotion -framework CoreGraphics -framework AudioToolbox -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/iguchishouju/Library/Developer/Xcode /DerivedData/game-efwnxmqygesuhicusljgkfiljjly/Build/Intermediates.noindex/game.build/Debug-iphonesimulator/game.build/Objects-normal/arm64 /game_dependency_info.dat -o /Users/iguchishouju/Library/Developer/Xcode/DerivedData/game-efwnxmqygesuhicusljgkfiljjly/Build/Products /Debug-iphonesimulator/game.app/game ld: Undefined symbols: _png_do_expand_palette_rgb8_neon, referenced from: _png_do_read_transformations in libpng_iOS.a[arm64][11](pngrtran.o) _png_do_expand_palette_rgba8_neon, referenced from: _png_do_read_transformations in libpng_iOS.a[arm64][11](pngrtran.o) _png_init_filter_functions_neon, referenced from: _png_read_filter_row in libpng_iOS.a[arm64][6](pngrutil.o) _png_riffle_palette_neon, referenced from: _png_do_read_transformations in libpng_iOS.a[arm64][11](pngrtran.o) clang: error: linker command failed with exit code 1 (use -v to see invocation) 何か分かりましたら教えて頂けると幸いです。 よろしくお願いします。
メンテ

Page: 1 | 2 |

題名
名前
コメント
パスワード (記事メンテ時に使用)

   クッキー保存