filament icon indicating copy to clipboard operation
filament copied to clipboard

NoCmake3.19

Open toby018 opened this issue 5 years ago • 3 comments

Describe the bug I have done some searching and found that I should install CMake in SDK manager but the 3.19+ version does not show here as shown in the picture below.

NoCmake3.19

Is there anything that has to be done in order to have CMake 3.19?

Edit:

The android studio current version is 4.2.2 This happen when I want to try google/filament samples in android

To Reproduce Steps to reproduce the behavior:

  1. ...

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Logs If applicable, copy logs from your console here. Please do not use screenshots of logs, copy them as text.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • GPU: [e.g. NVIDIA GTX 1080]
  • Backend: [OpenGL/Vulkan]

Smartphone (please complete the following information):

  • Device: [e.g. Pixel 2]
  • OS: [e.g. Android Pie 9.0]

Additional context Add any other context about the problem here.

toby018 avatar Aug 20 '21 02:08 toby018

You need to install CMake separately. On macOS the easiest way is to use HomeBrew.

romainguy avatar Aug 20 '21 02:08 romainguy

What ninja version should I install when I get below wrong log?


  • What went wrong: Execution failed for task ':filament-android:buildCMakeDebug'.

Build command failed. Error while executing process C:\Users\ttt\AppData\Local\Android\Sdk\cmake\3.21.1\bin\ninja.exe with arguments {-C D:\codebase\3rd\filament_toby\android\filament-android.cxx\Debug\3l3v166c\arm64-v8a filament-jni} ninja: Entering directory `D:\codebase\3rd\filament_toby\android\filament-android.cxx\Debug\3l3v166c\arm64-v8a'

ninja: warning: bad deps log signature or version; starting over ninja: error: 'D:/codebase/3rd/filament_toby/out/android-release/filament/lib/arm64-v8a/libfilament.a', needed by '../../../../build/intermediates/cxx/Debug/3l3v166c/obj/arm64-v8a/libfilament-jni.so', missing and no known rule to make it

toby018 avatar Aug 20 '21 03:08 toby018

You first need to build filament itself by following the instructions in BUILDING.md.

romainguy avatar Aug 20 '21 03:08 romainguy