nmfisher / thermion

3D rendering toolkit for Dart and/or Flutter
https://thermion.dev
Apache License 2.0
123 stars 10 forks source link

Build Failed with 0.2.1-dev.9 #73

Open RajatDBazaar opened 3 days ago

RajatDBazaar commented 3 days ago

When running the sample project of camera_manipulation our build got failed, we are stuck in this issue from past two days please help us so that we can able to use this library

Errors

`Launching lib\main.dart on sdk gphone x86 in debug mode...
Running Gradle task 'assembleDebug'...
Unhandled exception:
ProcessException: Full command string: 'C:\Users\rajat\AppData\Local\Android\sdk\ndk\25.2.9519653\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=i686-linux-android22 --sysroot=C:\Users\rajat\AppData\Local\Android\sdk\ndk\25.2.9519653\toolchains\llvm\prebuilt\windows-x86_64\sysroot\ -fPIC -x c++ -l c++_shared -std=c++17 -lfilament -lbackend -lfilameshio -lviewer -lfilamat -lgeometry -lutils -lfilabridge -lgltfio_core -lfilament-iblprefilter -limage -limageio -ltinyexr -lfilaflat -ldracodec -libl -lktxreader -lpng -lz -lstb -luberzlib -lsmol-v -luberarchive -lzstd -lbasis_transcoder -lstdc++ -lGLESv3 -lEGL -lbluevk -ldl -landroid -LC:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\/.dart_tool/thermion_dart/lib/v1.51.2/android/release//x86/ -DDEBUG -IC:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\native\include -IC:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\native\include\filament C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\camutils\Bookmark.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\camutils\FreeFlightManipulator.h C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\camutils\Manipulator.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\camutils\MapManipulator.h C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\camutils\OrbitManipulator.h C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\CustomGeometry.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\FilamentViewer.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\Gizmo.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\GridOverlay.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\HighlightOverlay.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\SceneManager.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\StreamBufferAdapter.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\TCamera.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\TGizmo.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\ThermionDartApi.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\ThermionDartRenderThreadApi.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\TimeIt.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\TView.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\UnprojectTexture.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\include\material\gizmo_material.c C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\include\material\image.c C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\include\material\grid.c C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\include\material\unlit.c --shared -o C:\Users\rajat\Downloads\thermion-master\thermion-master\examples\flutter\camera_manipulation\.dart_tool\native_assets_builder\ed2b7e16d0c7f977aefc5cbc915983b4\out\libthermion_dart.so'.
Exit code: '1'.
For the output of the process check the logger output.
  Command: C:\Users\rajat\AppData\Local\Android\sdk\ndk\25.2.9519653\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=i686-linux-android22 --sysroot=C:\Users\rajat\AppData\Local\Android\sdk\ndk\25.2.9519653\toolchains\llvm\prebuilt\windows-x86_64\sysroot\ -fPIC -x c++ -l c++_shared -std=c++17 -lfilament -lbackend -lfilameshio -lviewer -lfilamat -lgeometry -lutils -lfilabridge -lgltfio_core -lfilament-iblprefilter -limage -limageio -ltinyexr -lfilaflat -ldracodec -libl -lktxreader -lpng -lz -lstb -luberzlib -lsmol-v -luberarchive -lzstd -lbasis_transcoder -lstdc++ -lGLESv3 -lEGL -lbluevk -ldl -landroid -LC:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\/.dart_tool/thermion_dart/lib/v1.51.2/android/release//x86/ -DDEBUG -IC:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\native\include -IC:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\native\include\filament C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\camutils\Bookmark.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\camutils\FreeFlightManipulator.h C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\camutils\Manipulator.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\camutils\MapManipulator.h C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\camutils\OrbitManipulator.h C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\CustomGeometry.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\FilamentViewer.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\Gizmo.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\GridOverlay.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\HighlightOverlay.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\SceneManager.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\StreamBufferAdapter.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\TCamera.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\TGizmo.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\ThermionDartApi.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\ThermionDartRenderThreadApi.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\TimeIt.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\TView.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\UnprojectTexture.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\include\material\gizmo_material.c C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\include\material\image.c C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\include\material\grid.c C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\include\material\unlit.c --shared -o C:\Users\rajat\Downloads\thermion-master\thermion-master\examples\flutter\camera_manipulation\.dart_tool\native_assets_builder\ed2b7e16d0c7f977aefc5cbc915983b4\out\libthermion_dart.so
#0      runProcess (package:native_toolchain_c/src/utils/run_process.dart:94:5)
<asynchronous suspension>
#1      RunCBuilder._compile (package:native_toolchain_c/src/cbuilder/run_cbuilder.dart:190:5)
<asynchronous suspension>
#2      RunCBuilder.runClangLike (package:native_toolchain_c/src/cbuilder/run_cbuilder.dart:171:7)
<asynchronous suspension>
#3      RunCBuilder.run (package:native_toolchain_c/src/cbuilder/run_cbuilder.dart:110:7)
<asynchronous suspension>
#4      CBuilder.run (package:native_toolchain_c/src/cbuilder/cbuilder.dart:256:7)
<asynchronous suspension>
#5      main.<anonymous closure> (file:///c:/users/rajat/appdata/local/pub/cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.12/hook/build.dart:186:5)
<asynchronous suspension>
#6      build (package:native_assets_cli/src/api/build.dart:94:3)
<asynchronous suspension>
#7      main (file:///c:/users/rajat/appdata/local/pub/cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.12/hook/build.dart:8:3)
<asynchronous suspension>
Building native assets for package:thermion_dart failed.
file:///C:/Users/rajat/AppData/Local/Pub/Cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.12/hook/build.dart returned with exit code: 255.
To reproduce run:
C:\src\flutter\bin\dart --packages=C:\Users\rajat\Downloads\thermion-master\thermion-master\examples\flutter\camera_manipulation\.dart_tool\package_config.json C:\Users\rajat\Downloads\thermion-master\thermion-master\examples\flutter\camera_manipulation\.dart_tool\native_assets_builder\ed2b7e16d0c7f977aefc5cbc915983b4\hook.dill --config=C:\Users\rajat\Downloads\thermion-master\thermion-master\examples\flutter\camera_manipulation\.dart_tool\native_assets_builder\ed2b7e16d0c7f977aefc5cbc915983b4\config.json
stderr:
Unhandled exception:
ProcessException: Full command string: 'C:\Users\rajat\AppData\Local\Android\sdk\ndk\25.2.9519653\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=i686-linux-android22 --sysroot=C:\Users\rajat\AppData\Local\Android\sdk\ndk\25.2.9519653\toolchains\llvm\prebuilt\windows-x86_64\sysroot\ -fPIC -x c++ -l c++_shared -std=c++17 -lfilament -lbackend -lfilameshio -lviewer -lfilamat -lgeometry -lutils -lfilabridge -lgltfio_core -lfilament-iblprefilter -limage -limageio -ltinyexr -lfilaflat -ldracodec -libl -lktxreader -lpng -lz -lstb -luberzlib -lsmol-v -luberarchive -lzstd -lbasis_transcoder -lstdc++ -lGLESv3 -lEGL -lbluevk -ldl -landroid -LC:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\/.dart_tool/thermion_dart/lib/v1.51.2/android/release//x86/ -DDEBUG -IC:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\native\include -IC:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\native\include\filament C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\camutils\Bookmark.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\camutils\FreeFlightManipulator.h C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\camutils\Manipulator.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\camutils\MapManipulator.h C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\camutils\OrbitManipulator.h C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\CustomGeometry.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\FilamentViewer.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\Gizmo.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\GridOverlay.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\HighlightOverlay.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\SceneManager.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\StreamBufferAdapter.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\TCamera.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\TGizmo.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\ThermionDartApi.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\ThermionDartRenderThreadApi.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\TimeIt.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\TView.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\UnprojectTexture.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\include\material\gizmo_material.c C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\include\material\image.c C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\include\material\grid.c C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\include\material\unlit.c --shared -o C:\Users\rajat\Downloads\thermion-master\thermion-master\examples\flutter\camera_manipulation\.dart_tool\native_assets_builder\ed2b7e16d0c7f977aefc5cbc915983b4\out\libthermion_dart.so'.
Exit code: '1'.
For the output of the process check the logger output.
  Command: C:\Users\rajat\AppData\Local\Android\sdk\ndk\25.2.9519653\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=i686-linux-android22 --sysroot=C:\Users\rajat\AppData\Local\Android\sdk\ndk\25.2.9519653\toolchains\llvm\prebuilt\windows-x86_64\sysroot\ -fPIC -x c++ -l c++_shared -std=c++17 -lfilament -lbackend -lfilameshio -lviewer -lfilamat -lgeometry -lutils -lfilabridge -lgltfio_core -lfilament-iblprefilter -limage -limageio -ltinyexr -lfilaflat -ldracodec -libl -lktxreader -lpng -lz -lstb -luberzlib -lsmol-v -luberarchive -lzstd -lbasis_transcoder -lstdc++ -lGLESv3 -lEGL -lbluevk -ldl -landroid -LC:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\/.dart_tool/thermion_dart/lib/v1.51.2/android/release//x86/ -DDEBUG -IC:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\native\include -IC:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\native\include\filament C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\camutils\Bookmark.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\camutils\FreeFlightManipulator.h C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\camutils\Manipulator.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\camutils\MapManipulator.h C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\camutils\OrbitManipulator.h C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\CustomGeometry.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\FilamentViewer.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\Gizmo.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\GridOverlay.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\HighlightOverlay.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\SceneManager.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\StreamBufferAdapter.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\TCamera.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\TGizmo.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\ThermionDartApi.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\ThermionDartRenderThreadApi.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\TimeIt.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\TView.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\src\UnprojectTexture.cpp C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\include\material\gizmo_material.c C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\include\material\image.c C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\include\material\grid.c C:\Users\rajat\AppData\Local\Pub\Cache\hosted\pub.dev\thermion_dart-0.2.1-dev.0.0.12\\native\include\material\unlit.c --shared -o C:\Users\rajat\Downloads\thermion-master\thermion-master\examples\flutter\camera_manipulation\.dart_tool\native_assets_builder\ed2b7e16d0c7f977aefc5cbc915983b4\out\libthermion_dart.so
#0      runProcess (package:native_toolchain_c/src/utils/run_process.dart:94:5)
<asynchronous suspension>
#1      RunCBuilder._compile (package:native_toolchain_c/src/cbuilder/run_cbuilder.dart:190:5)
<asynchronous suspension>
#2      RunCBuilder.runClangLike (package:native_toolchain_c/src/cbuilder/run_cbuilder.dart:171:7)
<asynchronous suspension>
#3      RunCBuilder.run (package:native_toolchain_c/src/cbuilder/run_cbuilder.dart:110:7)
<asynchronous suspension>
#4      CBuilder.run (package:native_toolchain_c/src/cbuilder/cbuilder.dart:256:7)
<asynchronous suspension>
#5      main.<anonymous closure> (file:///c:/users/rajat/appdata/local/pub/cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.12/hook/build.dart:186:5)
<asynchronous suspension>
#6      build (package:native_assets_cli/src/api/build.dart:94:3)
<asynchronous suspension>
#7      main (file:///c:/users/rajat/appdata/local/pub/cache/hosted/pub.dev/thermion_dart-0.2.1-dev.0.0.12/hook/build.dart:8:3)
<asynchronous suspension>

stdout:

Target native_assets failed: Error: Building native assets failed. See the logs for more details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 25s
Error: Gradle task assembleDebug failed with exit code 1
`

Flutter Doctor

`C:\Users\rajat\Downloads\thermion-master\thermion-master\examples\flutter\camera_manipulation>flutter doctor -v 
[√] Flutter (Channel master, 3.27.0-1.0.pre.255, on Microsoft Windows [Version 10.0.22631.4391], locale en-IN)
    • Flutter version 3.27.0-1.0.pre.255 on channel master at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5a11904383 (17 hours ago), 2024-10-26 08:44:53 -0700
    • Engine revision c9b8ac96f6
    • Dart version 3.7.0 (build 3.7.0-69.0.dev)
    • DevTools version 2.40.1

[√] Windows Version (11 Home Single Language 64-bit, 23H2, 2009)

[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at C:\Users\rajat\AppData\Local\Android\sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: C:\Program Files\Android\Android Studio1\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[!] Visual Studio - develop Windows apps (Visual Studio Build Tools 2019 16.11.16)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
    • Visual Studio Build Tools 2019 version 16.11.32602.291
    X The current Visual Studio installation is incomplete.
      Please use Visual Studio Installer to complete the installation or reinstall Visual Studio.

[√] Android Studio (version 2024.2)
    • Android Studio at C:\Program Files\Android\Android Studio1
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11)

[√] IntelliJ IDEA Community Edition (version 2021.3)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2021.3.3
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart

[√] VS Code (version 1.94.2)
    • VS Code at C:\Users\rajat\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.98.0

[√] Connected device (4 available)
    • sdk gphone x86 (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • Windows (desktop)       • windows       • windows-x64    • Microsoft Windows [Version 10.0.22631.4391]
    • Chrome (web)            • chrome        • web-javascript • Google Chrome 130.0.6723.70
    • Edge (web)              • edge          • web-javascript • Microsoft Edge 129.0.2792.65

[√] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.`
RajatDBazaar commented 3 days ago

When using this library in a new project, add it to pubspac.yaml file we got this error

name: test_
description: "A new Flutter project."
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: "none" # Remove this line if you wish to publish to pub.dev

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.0.0+1

environment:
  sdk: ^3.7.0-69.0.dev

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^1.0.8
  vector_math: ^2.1.4
  win32: 5.5.1
  web: 1.0.0
  thermion_flutter: ^0.2.1-dev.11

dev_dependencies:
  flutter_test:
    sdk: flutter

  # The "flutter_lints" package below contains a set of recommended lints to
  # encourage good coding practices. The lint set provided by the package is
  # activated in the `analysis_options.yaml` file located at the root of your
  # package. See that file for information about deactivating specific lint
  # rules and activating additional ones.
  flutter_lints: ^5.0.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter packages.
flutter:
  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true
  # To add assets to your application, add an assets section, like this:
  assets:
    - assets/
  #   - images/a_dot_ham.jpeg
  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.dev/to/resolution-aware-images
  # For details regarding adding assets from package dependencies, see
  # https://flutter.dev/to/asset-from-package
  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  # fonts:
  #   - family: Schyler
  #     fonts:
  #       - asset: fonts/Schyler-Regular.ttf
  #       - asset: fonts/Schyler-Italic.ttf
  #         style: italic
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.dev/to/font-from-package

exception

ArgumentError: Invalid argument(s): Illegal character in path

#0      _Uri._checkWindowsPathReservedCharacters (dart:core/uri.dart:1841:11)
#1      _Uri._makeWindowsFileUrl (dart:core/uri.dart:1935:7)
#2      new _Uri.file (dart:core/uri.dart:1808:11)
#3      NativeAssetsBuildRunner._compileHookForPackageCached.<anonymous closure> (package:native_assets_builder/src/build_runner/build_runner.dart:689:27)
#4      MappedListIterable.elementAt (dart:_internal/iterable.dart:435:31)
#5      ListIterator.moveNext (dart:_internal/iterable.dart:364:26)
#6      new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:189:27)
#7      new _GrowableList.of (dart:core-patch/growable_array.dart:150:28)
#8      new List.of (dart:core-patch/array_patch.dart:39:18)
#9      ListIterable.toList (dart:_internal/iterable.dart:224:7)
#10     NativeAssetsBuildRunner._compileHookForPackageCached (package:native_assets_builder/src/build_runner/build_runner.dart:690:12)
<asynchronous suspension>
#11     NativeAssetsBuildRunner._runDryRun (package:native_assets_builder/src/build_runner/build_runner.dart:420:11)
<asynchronous suspension>
#12     _runDartDryRunBuild (package:flutter_tools/src/isolated/native_assets/native_assets.dart:783:41)
<asynchronous suspension>
#13     runFlutterSpecificDartDryRunOnPlatforms (package:flutter_tools/src/isolated/native_assets/native_assets.dart:160:36)
<asynchronous suspension>
#14     HotRunner.run (package:flutter_tools/src/run_hot.dart:372:26)
<asynchronous suspension>
#15     AppDomain.launch.<anonymous closure> (package:flutter_tools/src/commands/daemon.dart:809:9)
<asynchronous suspension>
#16     AppDomain.launch (package:flutter_tools/src/commands/daemon.dart:807:5)
<asynchronous suspension>
#17     RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:758:15)
<asynchronous suspension>
#18     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1450:27)
<asynchronous suspension>
#19     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#20     CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#21     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:421:9)
<asynchronous suspension>
#22     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#23     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:364:5)
<asynchronous suspension>
#24     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:131:9)
<asynchronous suspension>
#25     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#26     main (package:flutter_tools/executable.dart:94:3)
<asynchronous suspension>

flutter doctor

[✓] Flutter (Channel master, 3.27.0-1.0.pre.255, on Microsoft Windows [Version 10.0.22631.4391], locale en-IN)
    • Flutter version 3.27.0-1.0.pre.255 on channel master at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5a11904383 (18 hours ago), 2024-10-26 08:44:53 -0700
    • Engine revision c9b8ac96f6
    • Dart version 3.7.0 (build 3.7.0-69.0.dev)
    • DevTools version 2.40.1

[✓] Windows Version (11 Home Single Language 64-bit, 23H2, 2009)

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at C:\Users\rajat\AppData\Local\Android\sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: C:\Program Files\Android\Android Studio1\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[!] Visual Studio - develop Windows apps (Visual Studio Build Tools 2019 16.11.16)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
    • Visual Studio Build Tools 2019 version 16.11.32602.291
    ✗ The current Visual Studio installation is incomplete.
      Please use Visual Studio Installer to complete the installation or reinstall Visual Studio.

[✓] Android Studio (version 2024.2)
    • Android Studio at C:\Program Files\Android\Android Studio1
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11)

[✓] IntelliJ IDEA Community Edition (version 2021.3)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2021.3.3
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.94.2)
    • VS Code at C:\Users\rajat\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.98.0

[✓] Connected device (4 available)
    • sdk gphone x86 (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • Windows (desktop)       • windows       • windows-x64    • Microsoft Windows [Version 10.0.22631.4391]
    • Chrome (web)            • chrome        • web-javascript • Google Chrome 130.0.6723.70
    • Edge (web)              • edge          • web-javascript • Microsoft Edge 129.0.2792.65

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.
nmfisher commented 3 days ago

Is this building for Android on Windows?

RajatDBazaar commented 2 days ago

Yes!