[C4] Ubuntu minimal + Flutter UI framework 빌드 문의

Post Reply
dybaek
Posts: 5
Joined: Mon Sep 23, 2019 11:37 am
languages_spoken: english
ODROIDs: Odroid C2
Has thanked: 1 time
Been thanked: 0
Contact:

[C4] Ubuntu minimal + Flutter UI framework 빌드 문의

Post by dybaek »

안녕하세요

C4 상품페이지의 Ubuntu minimal + Flutter UI framework 데모영상을 보고
Flutter engine을 빌드하고 있습니다.

Odroid C4: Ubuntu minimal 20.04 (설치 이미지: ubuntu-20.04-4.9-minimal-odroid-c4-20200526.img.xz)
Host PC: VirtualBox + Ubuntu 20.04.1 64bit (18.04.3 에서도 동일한 문제발생)

영문포럼에 관련 질문에 대한 답변 중에 가이드가 설명된 링크가 있어
https://wiki.loliot.net/docs/lang/flutt ... nux-arm64/
링크에 설명된 순서로 진행하는데
sysroot 구성, llvm, libcxxabi 빌드까지는 진행이 되었습니다.
그런데 libcxx 빌드과정에서 에러가 발생하여 더 이상 진행이 불가능한 상황입니다.

데모영상의 Flutter engine를 빌드하는 방법이나 개발환경이 따로 있는지 문의드립니다.


아래는 터미널 에러 로그입니다.

....(윗부분 생략)

Code: Select all

-- Configuring done
-- Generating done
-- Build files have been written to: /home/dybaek/flutter-engine/llvm-project/build_libcxx
[3/41] Building CXX object src/CMakeFiles/cxx_static.dir/bind.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[4/41] Building CXX object src/CMakeFiles/cxx_static.dir/charconv.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[5/41] Building CXX object src/CMakeFiles/cxx_static.dir/any.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[6/41] Building CXX object src/CMakeFiles/cxx_experimental.dir/experimental/memory_resource.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[7/41] Building CXX object src/CMakeFiles/cxx_static.dir/condition_variable_destructor.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[8/41] Building CXX object src/CMakeFiles/cxx_static.dir/chrono.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[9/41] Building CXX object src/CMakeFiles/cxx_static.dir/exception.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[10/41] Building CXX object src/CMakeFiles/cxx_static.dir/functional.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[11/41] Building CXX object src/CMakeFiles/cxx_static.dir/hash.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[12/41] Building CXX object src/CMakeFiles/cxx_static.dir/condition_variable.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[13/41] Building CXX object src/CMakeFiles/cxx_static.dir/debug.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[14/41] Building CXX object src/CMakeFiles/cxx_static.dir/future.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[15/41] Building CXX object src/CMakeFiles/cxx_static.dir/iostream.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[16/41] Building CXX object src/CMakeFiles/cxx_static.dir/memory.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[17/41] Building CXX object src/CMakeFiles/cxx_static.dir/mutex_destructor.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[18/41] Building CXX object src/CMakeFiles/cxx_static.dir/new.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[19/41] Building CXX object src/CMakeFiles/cxx_static.dir/mutex.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[20/41] Building CXX object src/CMakeFiles/cxx_static.dir/optional.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[21/41] Building CXX object src/CMakeFiles/cxx_static.dir/algorithm.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[22/41] Building CXX object src/CMakeFiles/cxx_static.dir/stdexcept.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[23/41] Building CXX object src/CMakeFiles/cxx_static.dir/random.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[24/41] Building CXX object src/CMakeFiles/cxx_static.dir/ios.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[25/41] Building CXX object src/CMakeFiles/cxx_static.dir/regex.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[26/41] Building CXX object src/CMakeFiles/cxx_static.dir/shared_mutex.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[27/41] Building CXX object src/CMakeFiles/cxx_static.dir/typeinfo.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[28/41] Building CXX object src/CMakeFiles/cxx_static.dir/utility.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[29/41] Building CXX object src/CMakeFiles/cxx_static.dir/system_error.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[30/41] Building CXX object src/CMakeFiles/cxx_static.dir/strstream.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[31/41] Building CXX object src/CMakeFiles/cxx_static.dir/variant.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[32/41] Building CXX object src/CMakeFiles/cxx_static.dir/vector.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[33/41] Building CXX object src/CMakeFiles/cxx_static.dir/thread.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[34/41] Building CXX object src/CMakeFiles/cxx_static.dir/valarray.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[35/41] Building CXX object src/CMakeFiles/cxx_static.dir/filesystem/int128_builtins.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[36/41] Building CXX object src/CMakeFiles/cxx_static.dir/string.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[37/41] Building CXX object src/CMakeFiles/cxx_static.dir/filesystem/directory_iterator.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[38/41] Building CXX object src/CMakeFiles/cxx_static.dir/filesystem/operations.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[39/41] Building CXX object src/CMakeFiles/cxx_static.dir/locale.cpp.o
clang-10: warning: argument unused during compilation: '-G R-' [-Wunused-command-line-argument]
[40/41] Linking CXX static library lib/libc++.a
FAILED: lib/libc++.a 
: && /usr/bin/cmake -E remove lib/libc++.a && /home/dybaek/flutter-engine/sdk/sysroot/usr/bin/ar qc lib/libc++.a  src/CMakeFiles/cxx_static.dir/algorithm.cpp.o src/CMakeFiles/cxx_static.dir/any.cpp.o src/CMakeFiles/cxx_static.dir/bind.cpp.o src/CMakeFiles/cxx_static.dir/charconv.cpp.o src/CMakeFiles/cxx_static.dir/chrono.cpp.o src/CMakeFiles/cxx_static.dir/condition_variable.cpp.o src/CMakeFiles/cxx_static.dir/condition_variable_destructor.cpp.o src/CMakeFiles/cxx_static.dir/debug.cpp.o src/CMakeFiles/cxx_static.dir/exception.cpp.o src/CMakeFiles/cxx_static.dir/functional.cpp.o src/CMakeFiles/cxx_static.dir/future.cpp.o src/CMakeFiles/cxx_static.dir/hash.cpp.o src/CMakeFiles/cxx_static.dir/ios.cpp.o src/CMakeFiles/cxx_static.dir/iostream.cpp.o src/CMakeFiles/cxx_static.dir/locale.cpp.o src/CMakeFiles/cxx_static.dir/memory.cpp.o src/CMakeFiles/cxx_static.dir/mutex.cpp.o src/CMakeFiles/cxx_static.dir/mutex_destructor.cpp.o src/CMakeFiles/cxx_static.dir/new.cpp.o src/CMakeFiles/cxx_static.dir/optional.cpp.o src/CMakeFiles/cxx_static.dir/random.cpp.o src/CMakeFiles/cxx_static.dir/regex.cpp.o src/CMakeFiles/cxx_static.dir/shared_mutex.cpp.o src/CMakeFiles/cxx_static.dir/stdexcept.cpp.o src/CMakeFiles/cxx_static.dir/string.cpp.o src/CMakeFiles/cxx_static.dir/strstream.cpp.o src/CMakeFiles/cxx_static.dir/system_error.cpp.o src/CMakeFiles/cxx_static.dir/thread.cpp.o src/CMakeFiles/cxx_static.dir/typeinfo.cpp.o src/CMakeFiles/cxx_static.dir/utility.cpp.o src/CMakeFiles/cxx_static.dir/valarray.cpp.o src/CMakeFiles/cxx_static.dir/variant.cpp.o src/CMakeFiles/cxx_static.dir/vector.cpp.o src/CMakeFiles/cxx_static.dir/filesystem/operations.cpp.o src/CMakeFiles/cxx_static.dir/filesystem/directory_iterator.cpp.o src/CMakeFiles/cxx_static.dir/filesystem/int128_builtins.cpp.o && /home/dybaek/flutter-engine/sdk/sysroot/usr/bin/ranlib lib/libc++.a && cd /home/dybaek/flutter-engine/llvm-project/build_libcxx/src && /home/dybaek/flutter-engine/sdk/sysroot/usr/bin/python /home/dybaek/flutter-engine/llvm-project/libcxx/utils/merge_archives.py -o /home/dybaek/flutter-engine/llvm-project/build_libcxx/lib/libc++.a --ar /home/dybaek/flutter-engine/sdk/sysroot/usr/bin/ar /home/dybaek/flutter-engine/llvm-project/build_libcxx/lib/libc++.a libc++abi.a -L/home/dybaek/flutter-engine/sdk/toolchain/lib
/bin/sh: 1: /home/dybaek/flutter-engine/sdk/sysroot/usr/bin/python: Exec format error
ninja: build stopped: subcommand failed.

User avatar
tony.hong
Posts: 135
Joined: Tue Jun 04, 2019 1:49 pm
languages_spoken: korean
ODROIDs: All
Location: korea
Has thanked: 32 times
Been thanked: 37 times
Contact:

Re: [C4] Ubuntu minimal + Flutter UI framework 빌드 문의

Post by tony.hong »

wiki.loliot.net 글 작성자 입니다.
테스트한지 시간이 좀 지나서 적어주신 에러가 어떤 이유에서 발생했는지 아니면 발생했었는지 기억이 잘 안나네요.
flutter 빌드 과정에서 발생한 에러를 생각해보면

1. 필요한 바이너리의 심볼릭 링크가 깨진 경우
2. gcc, clang 등 버전이 변경되면서 발생하는 컴파일 옵션 경고나 에러 (버전이 변경됨에 따라 옵션이 없어지는 경우)
3. flutter 업데이트로 인한 의존성 변화

등이 있었습니다. flutter-arm 관리는 중단했습니다. 최근 몇몇 연락을 받았습니다. 그 중, 가이드를 보고 odroid-Go advance에서 작업하신 분이 있어서 문제가 발생한 부분이 어디었는지 어떻게 해서 성공했는지 들었는데,
시간이 되면 포럼에 글을 정리해줄 수 있냐고 부탁해둔 상태입니다.

flutter-pi는 지속적으로 관리되는 중이기 때문에, flutter-arm을 flutter-pi로 변경하고, 문제점을 확인해서 다시 가이드를 작성할 예정이지만
제가 몸이 안좋아서 쉬고있는 상태입니다. 언제 테스트를 해서 가이드를 수정할지 답드리긴 어려울 것 같습니다.

Post Reply

Return to “C0/C1/C1+/C2/C4”

Who is online

Users browsing this forum: No registered users and 2 guests