Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

编译错误求助undefined reference to 'CAkMidiClipMgr::CAkMidiClipMgr()'

+1 vote
D:/jenkins/ws/wwise_v2018.1/wwise/SDK/source/SoundEngine/AkMusicEngine/Android/../Common/AkMusicRenderer.cpp:519: error: undefined reference to 'CAkMidiClipMgr::StopNoteIfUsingData(AkMediaSlot*, bool)'
D:/jenkins/ws/wwise_v2018.1/wwise/SDK/source/SoundEngine/AkMusicEngine/Android/../Common/AkMatrixSequencer.cpp:523: error: undefined reference to 'CAkMidiClipMgr::CAkMidiClipMgr()'
D:/jenkins/ws/wwise_v2018.1/wwise/SDK/source/SoundEngine/AkMusicEngine/Android/../Common/AkMatrixSequencer.cpp:594: error: undefined reference to 'CAkMidiClipMgr::NextFrame(unsigned int, float)'
D:/jenkins/ws/wwise_v2018.1/wwise/SDK/source/SoundEngine/AkMusicEngine/Android/../Common/AkMatrixSequencer.cpp:534: error: undefined reference to 'CAkMidiClipMgr::~CAkMidiClipMgr()'
D:/jenkins/ws/wwise_v2018.1/wwise/SDK/source/SoundEngine/AkMusicEngine/Android/../Common/AkMusicTrack.cpp:852: error: undefined reference to 'CAkMidiClipCtx::MuteNotification(float, AkMutedMapItem&, bool)'
D:/jenkins/ws/wwise_v2018.1/wwise/SDK/source/SoundEngine/AkMusicEngine/Android/../Common/AkMusicTrack.cpp:864: error: undefined reference to 'CAkMidiClipCtx::MuteNotification(float, AkMutedMapItem&, bool)'
D:/jenkins/ws/wwise_v2018.1/wwise/SDK/source/SoundEngine/AkMusicEngine/Android/../Common/AkSubTrackCtx.cpp:498: error: undefined reference to 'CAkMidiClipMgr::AddClipCtx(CAkMusicCtx*, CAkMusicTrack*, CAkMusicSource*, CAkRegisteredObj*, TransParams&, UserParams&, AkTrackSrc const*, unsigned int, unsigned int, unsigned int, CAkMidiClipCtx*&)'
clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
asked Dec 30, 2018 in General Discussion by (110 points)

1 Answer

0 votes

在链接库时,要写个这个次序:AkMemoryMgr AkStreamMgr AkMusicEngine AkSoundEngine

关键就在于 AkMusicEngine 要在 AkSoundEngine 之前链接。如果写反了,就会报  undefined reference to 'CAkMidiClipMgr' 的一系列错误。

以上处理办法感谢这一篇文章:undefined reference to 'CAkMidiClipMgr::~CAkMidiClipMgr()' https://blog.csdn.net/qq_37405874/article/details/85476384

answered Dec 31, 2020 by Jue G. (190 points)
...