undefined reference to slCreateEngine

早过忘川 提交于 2019-12-25 08:06:20

问题


I want to play sound through opensl. Connected library Linker-> Input-> Library Dependencies - OpenSLES. The linker produces an error - undefined reference to slCreateEngine.


回答1:


check your target_link_libraries method inside CmakeLists.txt if it has all the necessary libraries included..

target_link_libraries( # Specifies the target library.
        native-lib
        android
        log
        OpenSLES)


来源:https://stackoverflow.com/questions/40849737/undefined-reference-to-slcreateengine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!