Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

+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)
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

by Jue G. (280 points)
...