khoren93 / flutter_zxing

Flutter plugin for scanning and generating QR codes using the ZXing library, supporting Android, iOS, and desktop platforms
https://pub.dev/packages/flutter_zxing
MIT License
92 stars 52 forks source link

0.7.1 does not build on android #17

Closed softkot closed 2 years ago

softkot commented 2 years ago
* What went wrong:
Execution failed for task ':flutter_zxing:configureCMakeDebug[arm64-v8a]'.
> [CXX1405] error when building with cmake using /home/kot/bin/flutter2/.pub-cache/hosted/pub.dartlang.org/flutter_zxing-0.7.1/ios/Classes/src/CMakeLists.txt: Build command failed.
  Error while executing process /home/kot/Android/Sdk/cmake/3.18.1/bin/cmake with arguments {-H/home/kot/bin/flutter2/.pub-cache/hosted/pub.dartlang.org/flutter_zxing-0.7.1/ios/Classes/src -DCMAKE_SYSTEM_NAME=Android -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_SYSTEM_VERSION=21 -DANDROID_PLATFORM=android-21 -DANDROID_ABI=arm64-v8a -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a -DANDROID_NDK=/home/kot/Android/Sdk/ndk/21.4.7075529 -DCMAKE_ANDROID_NDK=/home/kot/Android/Sdk/ndk/21.4.7075529 -DCMAKE_TOOLCHAIN_FILE=/home/kot/Android/Sdk/ndk/21.4.7075529/build/cmake/android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=/home/kot/Android/Sdk/cmake/3.18.1/bin/ninja -DCMAKE_CXX_FLAGS=-frtti -fexceptions -std=c++2a -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/kot/Projects/SKLLZZ/hrp-flutter/build/flutter_zxing/intermediates/cxx/Debug/1k1385k1/obj/arm64-v8a -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/home/kot/Projects/SKLLZZ/hrp-flutter/build/flutter_zxing/intermediates/cxx/Debug/1k1385k1/obj/arm64-v8a -DCMAKE_BUILD_TYPE=Debug -B/home/kot/bin/flutter2/.pub-cache/hosted/pub.dartlang.org/flutter_zxing-0.7.1/android/.cxx/Debug/1k1385k1/arm64-v8a -GNinja -DANDROID_STL=c++_shared}
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /home/kot/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: /home/kot/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Configuring incomplete, errors occurred!
  See also "/home/kot/bin/flutter2/.pub-cache/hosted/pub.dartlang.org/flutter_zxing-0.7.1/android/.cxx/Debug/1k1385k1/arm64-v8a/CMakeFiles/CMakeOutput.log".

  CMake Error at CMakeLists.txt:14 (add_subdirectory):
    add_subdirectory given source "ZXing" which is not an existing directory.
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.0.5, on Ubuntu 20.04.4 LTS 5.15.0-41-generic, locale ru_RU.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2022.1)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

• No issues found!
softkot commented 2 years ago

CMakeOutput.log