1

現在、Apportable はサブプロジェクトで C++ クラスを参照できません。

Dexing classes.
Archiving Build/android-armeabi-debug/AAAA/apk/lib/armeabi/libconfig.a
Indexing Build/android-armeabi-debug/AAAA/apk/lib/armeabi/libconfig.a
Linking Build/android-armeabi-debug/AAAA/apk/lib/armeabi/libverde.so
/Users/Eonil/Desktop/Apportable Bug Reporting/2013-06-21/aaaa2/AAAA/AAAA/main.mm:18: error: undefined reference to 'BBBB::bbbb()'
scons: *** [Build/android-armeabi-debug/AAAA/apk/lib/armeabi/libverde.so] Error 1
scons: building terminated because of errors.
Exception AttributeError: "'NoneType' object has no attribute 'pack'" in <bound method ZipFile.__del__ of <zipfile.ZipFile instance at 0x10a1e8b90>> ignored
Erionirr:AAAA Eonil$ 

これには追加の設定が必要だと思いますが、わかりません。具体的には、configuration.jsonファイルのこのセクションにあります。

//Sub projects
"modules": [],

Apportable を作成してサブプロジェクトを正しくリンクするにはどうすればよいですか?

4

1 に答える 1

1

理想的には、xcode ビルド フェーズでターゲットの依存関係を追加し、そのサブプロジェクトをリンクできるようにする必要があります。それ以外の場合、追加したモジュールを手動で指定する場合、レイアウトは次のようになります。

{
    "project": "project_name", 
    "build_cwd": "../some_dir", 
    "target": "the_target_of_the", 
    "project_config": "Release"
},
于 2013-06-20T21:45:22.793 に答える