Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error bulding #15

Open
PrestigeDevop opened this issue Mar 31, 2023 · 1 comment
Open

error bulding #15

PrestigeDevop opened this issue Mar 31, 2023 · 1 comment

Comments

@PrestigeDevop
Copy link

PrestigeDevop commented Mar 31, 2023

Uno version 2.7.0 (build 1121) Windows 10 x64 1546b01
Copyright © 2018-2023 Fuse Open

Configuring  3.28 s
Compiling syntax tree  1.92 s
Generating assemblies
Uno 2.7.0 (build 1121) Windows 10 x64 1546b01
Copyright (C) 2018-2023 Fuse Open

Configuring> 2.70 s

  CustomSlider -> F:\fuseXexample\custom-slider\build\dotnet\preview\CustomSlider.dll

Build completed in 7.95 seconds
  3.25 s
Compiling syntax tree  2.50 s
Generating code and data  6.06 s
Building android-emu app (debug)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:configureCMakeRelease[x86_64]'.
> [CXX1405] error when building with cmake using F:\fuseXexample\custom-slider\build\android-emu\debug\app\src\main\CMakeLists.txt: Build command failed.
  Error while executing process C:\Users\hi\AppData\Local\Android\sdk\cmake\3.18.1\bin\cmake.exe with arguments {-HF:\fuseXexample\custom-slider\build\android-emu\debug\app\src\main -DCMAKE_SYSTEM_NAME=Android -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_SYSTEM_VERSION=16 -DANDROID_ABI=x86_64 -DCMAKE_ANDROID_ARCH_ABI=x86_64 -DANDROID_NDK=C:\Users\hi\AppData\Local\Android\sdk\ndk\21.4.7075529 -DCMAKE_ANDROID_NDK=C:\Users\hi\AppData\Local\Android\sdk\ndk\21.4.7075529 -DCMAKE_TOOLCHAIN_FILE=C:\Users\hi\AppData\Local\Android\sdk\ndk\21.4.7075529\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=C:\Users\hi\AppData\Local\Android\sdk\cmake\3.18.1\bin\ninja.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=F:\fuseXexample\custom-slider\build\android-emu\debug\app\build\intermediates\cxx\Release\5791h74l\obj\x86_64 -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=F:\fuseXexample\custom-slider\build\android-emu\debug\app\build\intermediates\cxx\Release\5791h74l\obj\x86_64 -BF:\fuseXexample\custom-slider\build\android-emu\debug\app\.cxx\Release\5791h74l\x86_64 -GNinja -DCMAKE_BUILD_TYPE=Release -DANDROID_PLATFORM=android-16 -DANDROID_STL=c++_static -DANDROID_TOOLCHAIN=clang}
  -- Configuring incomplete, errors occurred!
  See also "F:/fuseXexample/custom-slider/build/android-emu/debug/app/.cxx/Release/5791h74l/x86_64/CMakeFiles/CMakeOutput.log".

  CMake Error at CMakeLists.txt:2 (project):
    The CMAKE_C_COMPILER:

      C:/Users/hi/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe

    is not a full path to an existing compiler tool.

    Tell CMake where to find the compiler by setting either the environment
    variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
    the compiler, or to the compiler name if it is in the PATH.


  CMake Error at CMakeLists.txt:2 (project):
    The CMAKE_CXX_COMPILER:

      C:/Users/hi/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe

    is not a full path to an existing compiler tool.

    Tell CMake where to find the compiler by setting either the environment
    variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
    to the compiler, or to the compiler name if it is in the PATH.




* 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 12s
(unknown): E0200: android-emu build failed
Using C:\Users\hi\AppData\Local\Android\sdk\cmake\3.10.2.4988404
> Task :app:preBuild UP-TO-DATE
> Task :app:preDebugBuild UP-TO-DATE
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:compileDebugAidl NO-SOURCE
> Task :app:compileDebugRenderscript NO-SOURCE
> Task :app:generateDebugBuildConfig
> Task :app:javaPreCompileDebug
> Task :app:generateDebugResValues
> Task :app:generateDebugResources
> Task :app:checkDebugAarMetadata
> Task :app:createDebugCompatibleScreenManifests
> Task :app:extractDeepLinksDebug
> Task :app:processDebugMainManifest
> Task :app:processDebugManifest
> Task :app:mergeDebugShaders
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :app:mergeDebugAssets
> Task :app:processDebugJavaRes NO-SOURCE
> Task :app:compressDebugAssets
> Task :app:checkDebugDuplicateClasses
> Task :app:mergeDebugResources
> Task :app:mergeDebugJavaResource
> Task :app:mapDebugSourceSetPaths

> Task :app:configureCMakeRelease[x86_64] FAILED
C/C++: debug|x86_64 :CMake Error at CMakeLists.txt:2 (project):
C/C++: debug|x86_64 :  The CMAKE_C_COMPILER:
C/C++: debug|x86_64 :    C:/Users/hi/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe
C/C++: debug|x86_64 :  is not a full path to an existing compiler tool.
C/C++: debug|x86_64 :  Tell CMake where to find the compiler by setting either the environment
C/C++: debug|x86_64 :  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
C/C++: debug|x86_64 :  the compiler, or to the compiler name if it is in the PATH.
C/C++: debug|x86_64 :CMake Error at CMakeLists.txt:2 (project):
C/C++: debug|x86_64 :  The CMAKE_CXX_COMPILER:
C/C++: debug|x86_64 :    C:/Users/hi/AppData/Local/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe
C/C++: debug|x86_64 :  is not a full path to an existing compiler tool.
C/C++: debug|x86_64 :  Tell CMake where to find the compiler by setting either the environment
C/C++: debug|x86_64 :  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
C/C++: debug|x86_64 :  to the compiler, or to the compiler name if it is in the PATH.

> Task :app:processDebugManifestForPackage
> Task :app:desugarDebugFileDependencies

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5/userguide/command_line_interface.html#sec:command_line_warnings
18 actionable tasks: 18 executed
> 13.77 s

Build failed in 25.61 seconds
    1 error

I''ve added both cc , ccx environment variables to system path .. with vs 2022's c++ compiler but still this issue remains and occur

image

@PrestigeDevop
Copy link
Author

Please help me fixing this issue I added the C:\Users\hi\AppData\Local\Android\Sdk\cmake\3.18.1\bin folder to the system path ,
with cc variable too it doesn't work ... I'm on windows 11 @mortend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant