Giter VIP home page Giter VIP logo

Comments (4)

dturner avatar dturner commented on September 7, 2024

Thanks for letting us know. I'm presuming from your path that you're on a Windows machine. I've tested on a Mac running OSX 10.13.2 and was unable to replicate.

It could be that the part of the CMakeLists.txt which automatically clones the Oboe library is failing on Windows:

### INCLUDE OBOE LIBRARY ###

# Set the path to the Oboe library directory (may not exist yet)
set (OBOE_RELATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../lib-oboe)

# Get the absolute path to the Oboe library directory
get_filename_component(OBOE_DIR
                       ${OBOE_RELATIVE_PATH}
                       ABSOLUTE)

# If the Oboe library directory doesn't exist, clone it from github
if ((NOT EXISTS ${OBOE_DIR}) OR
    (NOT EXISTS ${OBOE_DIR}/CMakeLists.txt))
    execute_process(COMMAND git clone
                            https://github.com/google/oboe.git
                            ${OBOE_DIR}
                    WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/..)
endif()

# Add the Oboe library as a subproject. Since Oboe is an out-of-tree source library we must also
# specify a binary directory
add_subdirectory(${OBOE_DIR} ./oboe)

Adding Gerry who might know of a fix.

Whilst we investigate a fix you can work around this problem by cloning oboe manually by doing:

cd C:/projects/android-audio-high-performance/oboe/
git clone https://github.com/google/oboe.git lib-oboe

from android-audio-high-performance.

ggfan avatar ggfan commented on September 7, 2024

@jmalsoftware, may you add more details, things like the steps you are using ( from clone to build project )?
tried twice on Windows 10: it builds and runs fine. But my windows machine is very slow, hope that is not the reason to make it pass.

Please update and I will take one more look. thanks.
my steps:

  • make sure there is no directory of android-audio-high-performance
  • clone https://github.com/googlesamples/android-audio-high-performance.git
  • Open Android Studio 3.0.1 ( this is the version needed, but cmake error should not be caused by this )
  • File > New > Import Project... navigate and select file "oboe\build.gradle" of the repo on your local disk
  • select "OK" and then build the project.

assuming you have SDK/NDK all downloaded, and using Android Studio's CMake ( not the standalong CMake )

from android-audio-high-performance.

ggfan avatar ggfan commented on September 7, 2024

@jamlsoftware, just ping to see if you get chance to try it out again; kindly update us here. thx

from android-audio-high-performance.

ggfan avatar ggfan commented on September 7, 2024

closing this one as I could not see it. please re-open it if you still see the problem. Thx

from android-audio-high-performance.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.