I want to play sound through opensl. Connected library Linker-> Input-> Library Dependencies - OpenSLES. The linker produces an error - undefined reference to slCreateEngine.
Asked
Active
Viewed 921 times
2
-
1Did you add OpenSLES to target_link_libraries in CMakeLists.txt ? – mcemilg Nov 29 '16 at 07:22
-
What relation has CMakeLists.txt to Visual Studio? – Александр Патейчук Nov 29 '16 at 10:22
-
1You should also have a path to the lib specified. What do you have in Additional Library Directories? – Dave Dec 23 '16 at 16:03
1 Answers
4
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)

Sumit Patra
- 41
- 5