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

Build error #7

Open
soheilqk opened this issue Nov 6, 2022 · 2 comments
Open

Build error #7

soheilqk opened this issue Nov 6, 2022 · 2 comments

Comments

@soheilqk
Copy link

soheilqk commented Nov 6, 2022

After I added flip_widget to my project it does not build anymore and I face the error below:

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':gl_canvas:buildCMakeDebug[arm64-v8a]'.
    Build command failed.
    Error while executing process /home/soheil/Android/Sdk/cmake/3.18.1/bin/ninja with arguments {-C /home/soheil/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/gl_canvas-1.0.6/android/.cxx/Debug/5y31325o/arm64-v8a gl_canvas}
    ninja: Entering directory /home/soheil/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/gl_canvas-1.0.6/android/.cxx/Debug/5y31325o/arm64-v8a' [1/1] Linking CXX shared library /home/soheil/Desktop/projects/bubbu/frontend/build/gl_canvas/intermediates/cxx/Debug/5y31325o/obj/arm64-v8a/libgl_canvas.so FAILED: /home/soheil/Desktop/projects/bubbu/frontend/build/gl_canvas/intermediates/cxx/Debug/5y31325o/obj/arm64-v8a/libgl_canvas.so : && /home/soheil/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --gcc-toolchain=/home/soheil/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/soheil/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libgcc_real.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -shared -Wl,-soname,libgl_canvas.so -o /home/soheil/Desktop/projects/bubbu/frontend/build/gl_canvas/intermediates/cxx/Debug/5y31325o/obj/arm64-v8a/libgl_canvas.so CMakeFiles/gl_canvas.dir/gl_canvas.cpp.o -lEGL -lGLESv2 -lGLESv1_CM -landroid -llog -latomic -lm && : CMakeFiles/gl_canvas.dir/gl_canvas.cpp.o: In function std::_Rb_tree<long, std::pair<long const, CacheInfo*>, std::_Select1st<std::pair<long const, CacheInfo*> >, std::less, std::allocator<std::pair<long const, CacheInfo*> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<long const, CacheInfo*> >)':
    /snap/flutter/current/usr/include/c++/9/bits/stl_tree.h:2513: undefined reference to std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)' CMakeFiles/gl_canvas.dir/gl_canvas.cpp.o: In function std::_Rb_tree_const_iterator<std::pair<long const, CacheInfo*> >::operator++(int)':
    /snap/flutter/current/usr/include/c++/9/bits/stl_tree.h:374: undefined reference to std::_Rb_tree_increment(std::_Rb_tree_node_base const*)' CMakeFiles/gl_canvas.dir/gl_canvas.cpp.o: In function std::_Rb_tree<long, std::pair<long const, CacheInfo*>, std::_Select1st<std::pair<long const, CacheInfo*> >, std::less, std::allocator<std::pair<long const, CacheInfo*> > >::_M_insert_node(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node<std::pair<long const, CacheInfo*> >)':
    /snap/flutter/current/usr/include/c++/9/bits/stl_tree.h:2366: undefined reference to std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)' CMakeFiles/gl_canvas.dir/gl_canvas.cpp.o: In function std::_Rb_tree_iterator<std::pair<long const, CacheInfo
    > >::operator--()':
    /snap/flutter/current/usr/include/c++/9/bits/stl_tree.h:302: undefined reference to std::_Rb_tree_decrement(std::_Rb_tree_node_base*)' CMakeFiles/gl_canvas.dir/gl_canvas.cpp.o: In function std::_Rb_tree_iterator<std::pair<long const, CacheInfo*> >::operator++()':
    /snap/flutter/current/usr/include/c++/9/bits/stl_tree.h:287: undefined reference to std::_Rb_tree_increment(std::_Rb_tree_node_base*)' clang++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed.

I used flutter clean but it didn't help.

flip_widget version: 0.1.11
Flutter 3.0.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision fb57da5f94 (6 months ago) • 2022-05-19 15:50:29 -0700
Engine • revision caaafc5604
Tools • Dart 2.17.1 • DevTools 2.12.2

@singhcreations
Copy link

hey did you fixed this ? i am getting same error

@singhcreations
Copy link

A problem occurred configuring project ':gl_canvas'.

Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.

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

2 participants