A thermographic camera powered by MLX90640, OpenCV and Flutter.
x-dea / snakeeye Goto Github PK
View Code? Open in Web Editor NEWA thermographic camera powered by MLX90640, OpenCV and Flutter.
License: GNU General Public License v3.0
A thermographic camera powered by MLX90640, OpenCV and Flutter.
License: GNU General Public License v3.0
Great work guys, i was able to successfully run PlatformIO build and PlatformIO upload but after doing flutter pub get and try to do flutter run on a physical Samsung the build fails.
I am on a MACbook Pro (2012 intel), i installed opencv via brew with success but the error still appears, i also tried installing via the opencv website but i still get errors.
`
Launching lib/main.dart on SM A520W in debug mode...
[CXX1405] error when building with cmake using /Users/lifen/Projects/MLX90640/Code/SnakeEye/android/app/src/main/cpp/CMakeLists.txt: Build command failed.
Error while executing process /Users/lifen/SDKs/Android/sdk/cmake/3.22.1/bin/cmake with arguments {-H/Users/lifen/Projects/MLX90640/Code/SnakeEye/android/app/src/main/cpp -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=/Users/lifen/SDKs/Android/sdk/ndk/23.1.7779620 -DCMAKE_ANDROID_NDK=/Users/lifen/SDKs/Android/sdk/ndk/23.1.7779620 -DCMAKE_TOOLCHAIN_FILE=/Users/lifen/SDKs/Android/sdk/ndk/23.1.7779620/build/cmake/android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=/Users/lifen/SDKs/Android/sdk/cmake/3.22.1/bin/ninja -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/lifen/Projects/MLX90640/Code/SnakeEye/build/app/intermediates/cxx/Debug/2z58186g/obj/arm64-v8a -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/lifen/Projects/MLX90640/Code/SnakeEye/build/app/intermediates/cxx/Debug/2z58186g/obj/arm64-v8a -DCMAKE_BUILD_TYPE=Debug -B/Users/lifen/Projects/MLX90640/Code/SnakeEye/android/app/.cxx/Debug/2z58186g/arm64-v8a -GNinja}
-- Android: Targeting API '21' with architecture 'arm64', ABI 'arm64-v8a', and processor 'aarch64'
-- Android: Selected unified Clang toolchain
-- The C compiler identification is Clang 12.0.8
-- The CXX compiler identification is Clang 12.0.8
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/lifen/SDKs/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-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: /Users/lifen/SDKs/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring incomplete, errors occurred!
See also "/Users/lifen/Projects/MLX90640/Code/SnakeEye/android/app/.cxx/Debug/2z58186g/arm64-v8a/CMakeFiles/CMakeOutput.log".
CMake Error at CMakeLists.txt:47 (find_package):
By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OpenCV", but
CMake did not find one.
Could not find a package configuration file provided by "OpenCV" with any
of the following names:
OpenCVConfig.cmake
opencv-config.cmake
Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
"OpenCV_DIR" to a directory containing one of the above files. If "OpenCV"
provides a separate development package or SDK, be sure it has been
installed.
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.
BUILD FAILED in 17s
Running Gradle task 'assembleDebug'... 19.4s
Exception: Gradle task assembleDebug failed with exit code 1`
flutter doctor:
`Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.3, on macOS 13.1 22C65 darwin-x64, locale en-CA)
Checking Android licenses is taking an unexpectedly long time...[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.75.1)
[✓] Connected device (3 available)
[✓] HTTP Host Availability
• No issues found!
.zshrc
export NVM_DIR="$HOME/.nvm"
[ -s "$(brew --prefix)/opt/nvm/nvm.sh" ] && . "$(brew --prefix)/opt/nvm/nvm.sh"
[ -s "$(brew --prefix)/opt/nvm/etc/bash_completion.d/nvm" ] && . "$(brew --prefix)/opt/nvm/etc/bash_completion.d/nvm"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"
export ANDROID_HOME=Users/lifen/SDKs/android/sdk
export ANDROID_SDK_ROOT=$ANDROID_HOME
export ANDROID_AVD_HOME=$HOME/.android/avd
export PATH="$PATH:$HOME/SDKs/flutter/bin"
export JAVA_HOME=/Applications/Android\ Studio.app/Contents/jre/Contents/Home
export ANDROID_HOME="$HOME/Library/Android/sdk"
export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$PATH"
export PATH="/Applications/CMake.app/Contents/bin":"$PATH"
export PATH="/Users/lifen/Library/Python/3.9/bin":"$PATH"
export PATH="$PATH:$HOME/opencv"
export PATH="$PATH:$HOME/build_opencv"
export OpenCV_DIR=Users/lifen/opencv
export CMAKE_PREFIX_PATH=Users/lifen/opencv:$CMAKE_PREFIX_PATH
export LDFLAGS="-L/usr/local/opt/zlib/lib"
export CPPFLAGS="-I/usr/local/opt/zlib/include"
export CPATH=xcrun --show-sdk-path
/usr/include
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(git zsh-autosuggestions sudo web-search copyfile dirhistory history jsontools macos)
source $ZSH/oh-my-zsh.sh
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"
`
Any help to get it running would be greatly appreciated. Maybe my .zshrc is not set properly or i am missing something.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.