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

Error while cross building application for drm-gbm backend #44

Open
Khalid-Faisal opened this issue Jun 25, 2022 · 1 comment
Open

Error while cross building application for drm-gbm backend #44

Khalid-Faisal opened this issue Jun 25, 2022 · 1 comment

Comments

@Khalid-Faisal
Copy link

Khalid-Faisal commented Jun 25, 2022

Hi,
I want to perform cross building of application from x64 to arm64. Linux distro is installed in arm64 device which doesn't have packages like apt, apt-get, dpkg etc.
Arm64 device supports drm backend, I followeds steps mentioned in Cross Building using Bitbake. I am able to setup Yocto for drm-gbm backend. When I try to build using below command,

flutter-elinux build elinux --target-arch=arm64 --target-compiler-triple=aarch64-poky-linux --target-backend-type=gbm --target-sysroot=/opt/poky/3.1.17/sysroots/aarch64-poky-linux

I am getting erros, logs are as follows

Building an eLinux application with gbm backend in release mode for arm64 target...        13.0s
Failed to cmake build:
Scanning dependencies of target flutter_assemble
[  0%] Built target flutter_assemble
Scanning dependencies of target flutter_wrapper_plugin
[  7%] Building CXX object
flutter/CMakeFiles/flutter_wrapper_plugin.dir/ephemeral/cpp_client_wrapper/core_implementations.cc.o
[ 15%] Building CXX object
flutter/CMakeFiles/flutter_wrapper_plugin.dir/ephemeral/cpp_client_wrapper/standard_codec.cc.o
[ 23%] Building CXX object
flutter/CMakeFiles/flutter_wrapper_plugin.dir/ephemeral/cpp_client_wrapper/plugin_registrar.cc.o
[ 30%] Linking CXX static library libflutter_wrapper_plugin.a
[ 30%] Built target flutter_wrapper_plugin
Scanning dependencies of target flutter_wrapper_app
[ 38%] Building CXX object
flutter/CMakeFiles/flutter_wrapper_app.dir/ephemeral/cpp_client_wrapper/core_implementations.cc.o
[ 46%] Building CXX object
flutter/CMakeFiles/flutter_wrapper_app.dir/ephemeral/cpp_client_wrapper/standard_codec.cc.o
[ 53%] Building CXX object
flutter/CMakeFiles/flutter_wrapper_app.dir/ephemeral/cpp_client_wrapper/flutter_engine.cc.o
[ 61%] Building CXX object
flutter/CMakeFiles/flutter_wrapper_app.dir/ephemeral/cpp_client_wrapper/flutter_view_controller.cc.o
[ 69%] Linking CXX static library libflutter_wrapper_app.a
[ 69%] Built target flutter_wrapper_app
Scanning dependencies of target myproject
[ 76%] Building CXX object runner/CMakeFiles/myproject.dir/flutter_window.cc.o
[ 84%] Building CXX object runner/CMakeFiles/myproject.dir/main.cc.o
[ 92%] Building CXX object runner/CMakeFiles/myproject.dir/__/flutter/generated_plugin_registrant.cc.o
[100%] Linking CXX executable myproject

/opt/poky/3.1.17/sysroots/x86_64-pokysdk-linux/usr/bin/ld: warning: libsystemd.so.0, needed by
/local/my-project/flutter-projects/myproject/elinux/flutter/ephemeral/libflutter_elinux_gbm.so, not found (try using -rpath or -rpath-link)
/opt/poky/3.1.17/sysroots/x86_64-pokysdk-linux/usr/bin/ld:
/local/my-project/flutter-projects/myproject/elinux/flutter/ephemeral/libflutter_elinux_gbm.so: undefined reference to `sd_event_run@LIBSYSTEMD_221'
/opt/poky/3.1.17/sysroots/x86_64-pokysdk-linux/usr/bin/ld:
/local/my-project/flutter-projects/myproject/elinux/flutter/ephemeral/libflutter_elinux_gbm.so: undefined reference to `sd_event_unref@LIBSYSTEMD_221'
/opt/poky/3.1.17/sysroots/x86_64-pokysdk-linux/usr/bin/ld:
/local/my-project/flutter-projects/myproject/elinux/flutter/ephemeral/libflutter_elinux_gbm.so: undefined reference to `sd_event_add_io@LIBSYSTEMD_221'
/opt/poky/3.1.17/sysroots/x86_64-pokysdk-linux/usr/bin/ld:
/local/my-project/flutter-projects/myproject/elinux/flutter/ephemeral/libflutter_elinux_gbm.so: undefined reference to `sd_event_new@LIBSYSTEMD_221'
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [runner/CMakeFiles/myproject.dir/build.make:117: runner/myproject] Error 1
make[1]: *** [CMakeFiles/Makefile2:200: runner/CMakeFiles/myproject.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Please help me out to resolve this issue
Thanks in Advance!

@Khalid-Faisal Khalid-Faisal changed the title bitbake flutter-drm-gbm-backend failing! Error while cross building application for drm-gbm backend Jun 27, 2022
@WD-J
Copy link

WD-J commented Jul 20, 2024

Did you ever find a solution to this? I'm trying to do the same: avoiding using systemd. Getting the same error.

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