oboe icon indicating copy to clipboard operation
oboe copied to clipboard

How to import iolib/parselib

Open miteshsondhi opened this issue 1 year ago • 1 comments

Hi, First I want thanks google for creating this awesome project. I followed every step and looking in samples for days but after all the steps I am only able to import oboe/Oboe.h but in samples like drumthumbper they use player/SimpleMultiPlayer.h and stream/MemInputStream.h. How can I use iolib/parselib in my project please help.

miteshsondhi avatar May 22 '24 13:05 miteshsondhi

Take a look at the CMakeLists.txt for DrumThumper.

Below are the critical lines.

set (PARSELIB_DIR ../../../../oboe/samples/parselib)
set (IOLIB_DIR ../../../../oboe/samples/iolib)

include(${PARSELIB_DIR}/src/main/cpp/CMakeLists.txt)
include(${IOLIB_DIR}/src/main/cpp/CMakeLists.txt)

include_directories(
        ${PARSELIB_DIR}/src/main/cpp
        ${IOLIB_DIR}/src/main/cpp)

With these lines, you should be able to use player/SimpleMultiPlayer.h and stream/MemInputStream.h

robertwu1 avatar May 23 '24 22:05 robertwu1

Closing since question is answered

robertwu1 avatar Oct 31 '24 22:10 robertwu1