Giter Club home page Giter Club logo

Comments (8)

leohahn avatar leohahn commented on May 31, 2024

Did you run brew install ninja? If that does not work, you can modify the Makefile and remove the -GNinja section from the command. It will then use make instead of ninja.

from libpitaya.

leohahn avatar leohahn commented on May 31, 2024

Oops, now that I saw, setup-mac should install ninja. Do you have brew installed? If it does not work just do what I mentioned in the comment above

from libpitaya.

arden avatar arden commented on May 31, 2024

yes, I installed ninja with run " brew install ninja ". now, remove the -GNinja, but still reporting this error。

from libpitaya.

arden avatar arden commented on May 31, 2024

ardendeiMac:libpitaya arden$ ninja
ninja: error: loading 'build.ninja': No such file or directory
ardendeiMac:libpitaya arden$

from libpitaya.

leohahn avatar leohahn commented on May 31, 2024

Ok, now the error is related to the toolchain. It says that there is not a file android.toolchain.cmake in that path. This means you have to point the program to the NDK location you have. Suppose you downloaded and installed the NDK r17b at ~. You would then run the following command to build for android:

make ANDROID_TOOLCHAIN_FILE=~/android-ndk-r17b/build/cmake/android.toolchain.cmake build-android

You can also run the target setup-android-mac, it will download the ndk into the folder temp at the current directory. If you do that, then you will have to change the ANDROID_TOOLCHAIN_FILE variable from the previous command to the newly downloaded ndk into the temp folder.

from libpitaya.

leohahn avatar leohahn commented on May 31, 2024

A complete setup to build for android could be someting like the following:

make setup-android-mac
make ANDROID_TOOLCHAIN_FILE=temp/android-ndk-r17b/build/cmake/android.toolchain.cmake build-android

from libpitaya.

leohahn avatar leohahn commented on May 31, 2024

Looking at the readme now this is an issue on the makefile, I will update it with the correct instructions for android.

from libpitaya.

arden avatar arden commented on May 31, 2024
make setup-android-mac
make ANDROID_TOOLCHAIN_FILE=temp/android-ndk-r17b/build/cmake/android.toolchain.cmake build-android

it's ok.

from libpitaya.

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.