Code Monkey home page Code Monkey logo

Comments (2)

RuhanSA079 avatar RuhanSA079 commented on June 18, 2024

Hello, I have problem when build the Snapdroid in Windows 10 I used :

* NDK Version 24.0.8215888

* CMake Version 3.22.1

I have set maven credentials (username and password) and sync the Gradle. but I getting error:

Task :prepareKotlinBuildScriptModel UP-TO-DATE
C/C++: debug|x86 :CMake Error at D:/android-sdk/cmake/3.22.1/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
C/C++: debug|x86 : Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
C/C++: debug|x86 :Call Stack (most recent call first):
C/C++: debug|x86 : D:/android-sdk/cmake/3.22.1/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
C/C++: debug|x86 : D:/android-sdk/cmake/3.22.1/share/cmake-3.22/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args)
C/C++: debug|x86 : CMakeLists.txt:151 (find_package)
[CXX1405] error when building with cmake using D:\Workspace Android\snapdroid\Snapcast\src\main\cpp\snapcast\CMakeLists.txt: Build command failed.
Error while executing process D:\android-sdk\cmake\3.22.1\bin\cmake.exe with arguments {-HD:\Workspace Android\snapdroid\Snapcast\src\main\cpp\snapcast -DCMAKE_SYSTEM_NAME=Android -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_SYSTEM_VERSION=19 -DANDROID_PLATFORM=android-19 -DANDROID_ABI=x86 -DCMAKE_ANDROID_ARCH_ABI=x86 -DANDROID_NDK=D:\android-sdk\ndk\24.0.8215888 -DCMAKE_ANDROID_NDK=D:\android-sdk\ndk\24.0.8215888 -DCMAKE_TOOLCHAIN_FILE=D:\android-sdk\ndk\24.0.8215888\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=D:\android-sdk\cmake\3.22.1\bin\ninja.exe -DCMAKE_CXX_FLAGS=-std=c++14 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=D:\Workspace Android\snapdroid\Snapcast\build\intermediates\cxx\Debug\57n3r2m2\obj\x86 -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=D:\Workspace Android\snapdroid\Snapcast\build\intermediates\cxx\Debug\57n3r2m2\obj\x86 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_FIND_ROOT_PATH=D:\Workspace Android\snapdroid\Snapcast.cxx\Debug\57n3r2m2\prefab\x86\prefab -BD:\Workspace Android\snapdroid\Snapcast.cxx\Debug\57n3r2m2\x86 -GNinja -DANDROID_STL=c++_static -DBUILD_SERVER=OFF -DBUILD_TESTS=OFF}
-- Android: Targeting API '19' with architecture 'x86', ABI 'x86', and processor 'i686'
-- Android: Selected unified Clang toolchain
-- The CXX compiler identification is Clang 14.0.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/android-sdk/ndk/24.0.8215888/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The C compiler identification is Clang 14.0.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/android-sdk/ndk/24.0.8215888/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Configuring incomplete, errors occurred!
See also "D:/Workspace Android/snapdroid/Snapcast/.cxx/Debug/57n3r2m2/x86/CMakeFiles/CMakeOutput.log".

CMake Error at D:/android-sdk/cmake/3.22.1/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) Call Stack (most recent call first): D:/android-sdk/cmake/3.22.1/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) D:/android-sdk/cmake/3.22.1/share/cmake-3.22/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args) CMakeLists.txt:151 (find_package)

BUILD SUCCESSFUL in 26s

Please help me resolve the error. Thank you

I also tried to compile the stuff on Windows 10, but eventually gave up and used AndroidStudio on Linux to build the libraries.
You will note that snapdroid is built with Github Actions, so most likely using Linux to build the app.
I suggest you do the same with a Linux VM running AndroidStudio with VirtualBox or VMWare.

from snapdroid.

badaix avatar badaix commented on June 18, 2024

I'm using Linux, please use a VM if Windows doesn't work or make it working, PRs are welcome :)

from snapdroid.

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.