Open svonidze opened 2 years ago
Same error here, it's been over a year and this issue has even been commented on, I imagine it won't be resolved by the developers.
Same is happening in https://github.com/kekland/croppy/issues/14.
We're using https://pub.dev/packages/ffigen to generate bindings automatically, if that's relevant.
The build logs are provided by @fortunado in the issue:
In file included from /home/fortunado/.pub-cache/hosted/pub.dev/croppy-1.1.4/src/fit_polygon_in_quad.cpp:1:
In file included from /home/fortunado/.pub-cache/hosted/pub.dev/croppy-1.1.4/src/kiwi/kiwi.h:9:
In file included from /home/fortunado/.pub-cache/hosted/pub.dev/croppy-1.1.4/src/kiwi/constraint.h:12:
In file included from /home/fortunado/.pub-cache/hosted/pub.dev/croppy-1.1.4/src/kiwi/expression.h:10:
In file included from /home/fortunado/.pub-cache/hosted/pub.dev/croppy-1.1.4/src/kiwi/term.h:10:
In file included from /home/fortunado/.pub-cache/hosted/pub.dev/croppy-1.1.4/src/kiwi/variable.h:9:
/snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
memory
is included in the source code of kiwi
: https://github.com/nucleic/kiwi/blob/main/kiwi/variable.h (line 9)
Initially I reported the issue on https://github.com/flutter/flutter/issues/106102. The issue was addressed by reinstalling
snap
flutter withgit clone
. Found solution here https://stackoverflow.com/questions/70149507/flutter-build-failed-for-android-bitmapexternalnativebuilddebug the guy had a different issue and solved with reinstalling as well.Original description: I have some code written in C++ and used in the Flutter project, I cannot run nor build code on Linix Mint, works ok on Mac and Windows.
Getting this error on Linix Mint
while trying to run/build the project.
.../c++/8/memory:116:25
leads to the codeFull error log
flutter doctor -v
returns