LoginSignup
1
0

More than 5 years have passed since last update.

ofxAssimpModelLoaderで発生するEXC_BAD_ACCESSを解決する

Posted at

土器の3DモデルをVJに使ってみようと思い立ち、試しにofxAssimpModelLoaderのexampleをやったらエラーが出たのでgoogle先生に聞いた

xcode 8.1 (8B62)
openframeworks 0.9.0

EXC_BAD_ACCESSらしい

exampleのプログラムに問題があるわけでは無く
addonの一部でエラーを吐いているらしい

ofxAssimpModelLoader.cpp#41

// loads scene from file
    scene = shared_ptr<const aiScene>(aiImportFileExWithProperties(file.getAbsolutePath().c_str(), flags, NULL, store.get()), aiReleaseImport);

ここでエラーが発生する

デフォルトのaddonなので根本的に何か間違っているのだろうと思い
google先生に聞いたところここに飛ばされ
ofxAssimpModelLoader trouble
最終的にはhttps://github.com/openframeworks/openFrameworks/tree/0.9.3/addons/ofxAssimpModelLoader/libs/assimp/lib/osx
にたどり着いた

解決方法

どうもaddons/ofxAssimpModelLoader/libs/assimp/lib/osxにあるassimp.aがよくなかったらしく、上記のページの手直しされたassimp.aとすでにあるassimp.aを入れ替えることで解決した

ただ0.9.0で成功したものの、0.9.7では相変わらずエラーを吐く
よくわからない

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0