OpenVoiceOS / ovos-buildroot

Open Voice Operating System - Buildroot edition is a minimalistic linux OS bringing the OVOS voice assistant to embbeded, low-spec headless and/or small (touch)screen devices.
Apache License 2.0
231 stars 36 forks source link

glxtokens.h error when running 'make rpi3_64-gui' #116

Closed dickorydock closed 10 months ago

dickorydock commented 2 years ago

I am building for the RPi3 on Ubuntu 20.04 and wanted to share an error I got in case it is helpful for you all developing this great software. It seems the program cannot find the glxtokens.h file or directory. Any suggestions?

In file included from ../../3rdparty/chromium/gpu/command_buffer/service/gl_utils.h:20,
                 from ../../3rdparty/chromium/gpu/command_buffer/service/texture_manager.h:22,
                 from ../../3rdparty/chromium/gpu/command_buffer/service/shared_image_factory.h:16,
                 from ../../3rdparty/chromium/components/viz/service/display/overlay_processor_on_gpu.cc:6:
../../3rdparty/chromium/ui/gl/gl_bindings.h:53:10: fatal error: GL/glxtokens.h: No such file or directory
   53 | #include <GL/glxtokens.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
[14673/23334] CXX obj/components/web_package/web_package/web_bundle_parser.o
[14674/23334] CXX obj/components/ui_devtools/viz/viz/surface_element.o
[14675/23334] CXX obj/components/viz/service/service/display.o
[14676/23334] CXX obj/components/ui_devtools/viz/viz/dom_agent_viz.o
ninja: build stopped: subcommand failed.
j1nx commented 2 years ago

Yeah, I know about the issue and know the cause of it, yet do not have the solution yet to fix it properly. Those files come from the "xorgproto" package, however the "mesa3d" package deletes them again. Here is a quick fix.

To continue the build process do the following;

rm -rf buildroot/output/build/xorgproto-2021.5

You can then continue the build process by running the "make rpi3-gui" command again. (Do NOT make clean otherwise you will start all over again). It should build xorgproto first and then continues the webengine package again.

dickorydock commented 2 years ago

Thank you, that allowed me to get a bit further. Now I am facing this issue with "contacts_manager_impl.o," any suggestions? (Also happy to save this as a separate issue if you suggest that.) Many thanks

[5478/8659] CXX obj/content/browser/browser/accessibility_tree_formatter_blink.o
[5479/8659] CXX obj/content/browser/browser/contacts_manager_impl.o
FAILED: obj/content/browser/browser/contacts_manager_impl.o 
ccache /homedir/buildroot/output/host/bin/aarch64-buildroot-linux-gnu-g++ -MMD -MF obj/content/browser/browser/contacts_manager_impl.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -DTOOLKIT_QT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DCR_SYSROOT_HASH=ef67b6ca8fd6e2e51515a243d043d1ea4caf45e6 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DCONTENT_IMPLEMENTATION -DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=uint16_t -DSK_CODEC_DECODES_PNG -DSK_CODEC_DECODES_WEBP -DSK_ENCODE_PNG -DSK_ENCODE_WEBP -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_GL -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_USE_LIBGIFCODEC -DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\" -DSK_VULKAN=1 -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DCRASHPAD_ZLIB_SOURCE_EXTERNAL -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DABSL_ALLOCATOR_NOTHROW=1 -DWEBRTC_USE_BUILTIN_ISAC_FIX=0 -DWEBRTC_USE_BUILTIN_ISAC_FLOAT=1 -DHAVE_SCTP -DNO_MAIN_THREAD_WRAPPING -DLEVELDB_PLATFORM_CHROMIUM=1 -DLEVELDB_PLATFORM_CHROMIUM=1 -DSQLITE_OMIT_ANALYZE -DSQLITE_OMIT_AUTOINIT -DSQLITE_OMIT_AUTOMATIC_INDEX -DSQLITE_OMIT_AUTORESET -DSQLITE_OMIT_COMPILEOPTION_DIAGS -DSQLITE_OMIT_COMPLETE -DSQLITE_OMIT_EXPLAIN -DSQLITE_OMIT_GET_TABLE -DSQLITE_OMIT_INTROSPECTION_PRAGMAS -DSQLITE_DEFAULT_LOOKASIDE=0,0 -DSQLITE_OMIT_LOOKASIDE -DSQLITE_OMIT_TCL_VARIABLE -DSQLITE_OMIT_REINDEX -DSQLITE_OMIT_TRACE -DSQLITE_OMIT_UPSERT -DSQLITE_OMIT_WINDOWFUNC -DSQLITE_ENABLE_FTS3 -DSQLITE_DISABLE_FTS3_UNICODE -DSQLITE_DISABLE_FTS4_DEFERRED -DSQLITE_ENABLE_ICU -DSQLITE_SECURE_DELETE -DSQLITE_THREADSAFE=1 -DSQLITE_MAX_WORKER_THREADS=0 -DSQLITE_MAX_MMAP_SIZE=268435456 -DSQLITE_DEFAULT_FILE_PERMISSIONS=0600 -DSQLITE_DEFAULT_LOCKING_MODE=1 -DSQLITE_DEFAULT_MEMSTATUS=1 -DSQLITE_DEFAULT_PAGE_SIZE=4096 -DSQLITE_DEFAULT_PCACHE_INITSZ=0 -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_SHARED_CACHE -DSQLITE_USE_ALLOCA -DSQLITE_OMIT_DECLTYPE -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_HAVE_ISNAN -DSQLITE_ENABLE_BATCH_ATOMIC_WRITE -DSQLITE_TEMP_STORE=3 -DSQLITE_ENABLE_LOCKING_STYLE=0 -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DV8_REVERSE_JSARGS -DVK_NO_PROTOTYPES -DUSE_VULKAN_XLIB -Igen -I../../3rdparty/chromium -I../../3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -Igen -Igen -Igen -Igen -I../../3rdparty/chromium/third_party/vulkan_headers/include -Igen -I../../3rdparty/chromium/third_party/libyuv/include -I../../3rdparty/chromium/third_party/jsoncpp/source/include -Igen -Igen -Igen -Igen -Igen -Igen -Igen -I../../3rdparty/chromium/third_party/khronos -I../../3rdparty/chromium/gpu -Igen/third_party/dawn/src/include -I../../3rdparty/chromium/third_party/dawn/src/include -I../../3rdparty/chromium/third_party/abseil-cpp -I../../3rdparty/chromium/third_party/boringssl/src/include -I../../3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../3rdparty/chromium/third_party/protobuf/src -I../../3rdparty/chromium/third_party/ced/src -I../../3rdparty/chromium/third_party/icu/source/common -I../../3rdparty/chromium/third_party/icu/source/i18n -I../../3rdparty/chromium/third_party/skia -I../../3rdparty/chromium/third_party/libgifcodec -I../../3rdparty/chromium/third_party/vulkan/include -I../../3rdparty/chromium/third_party/vulkan_headers/include -I../../3rdparty/chromium/third_party/crashpad/crashpad -I../../3rdparty/chromium/third_party/crashpad/crashpad/compat/non_mac -I../../3rdparty/chromium/third_party/crashpad/crashpad/compat/linux -I../../3rdparty/chromium/third_party/crashpad/crashpad/compat/non_win -I../../3rdparty/chromium/third_party/zlib -I../../3rdparty/chromium/third_party/webrtc_overrides -I../../3rdparty/chromium/third_party/webrtc -Igen/third_party/webrtc -I../../3rdparty/chromium/third_party/mesa_headers -I../../3rdparty/chromium/third_party/libwebm/source -I../../3rdparty/chromium/third_party/leveldatabase -I../../3rdparty/chromium/third_party/leveldatabase/src -I../../3rdparty/chromium/third_party/leveldatabase/src/include -Igen/third_party/metrics_proto -I../../3rdparty/chromium/v8/include -Igen/v8/include -I../../3rdparty/chromium/third_party/angle/src/common/third_party/base -Igen/angle -I../../3rdparty/chromium/third_party/angle/include -I../../3rdparty/chromium/third_party/brotli/include -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pipe -pthread -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-comments -Wno-packed-not-aligned -Wno-dangling-else -Wno-missing-field-initializers -Wno-unused-parameter -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fvisibility=hidden -I/homedir/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/nss -I/homedir/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/nspr -I/homedir/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/dbus-1.0 -I/homedir/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/dbus-1.0/include -std=gnu++14 -Wno-narrowing -Wno-class-memaccess -Wno-attributes -Wno-class-memaccess -Wno-subobject-linkage -Wno-invalid-offsetof -Wno-return-type -Wno-deprecated-copy -fno-exceptions -fno-rtti --sysroot=/homedir/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot -fvisibility-inlines-hidden -Wno-deprecated-declarations -c ../../3rdparty/chromium/content/browser/contacts/contacts_manager_impl.cc -o obj/content/browser/browser/contacts_manager_impl.o
aarch64-buildroot-linux-gnu-g++.br_real: fatal error: Killed signal terminated program cc1plus
compilation terminated.
[5480/8659] CXX obj/content/browser/browser/appcache_host.o
FAILED: obj/content/browser/browser/appcache_host.o 
ccache /homedir/buildroot/output/host/bin/aarch64-buildroot-linux-gnu-g++ -MMD -MF obj/content/browser/browser/appcache_host.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -DTOOLKIT_QT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DCR_SYSROOT_HASH=ef67b6ca8fd6e2e51515a243d043d1ea4caf45e6 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DCONTENT_IMPLEMENTATION -DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=uint16_t -DSK_CODEC_DECODES_PNG -DSK_CODEC_DECODES_WEBP -DSK_ENCODE_PNG -DSK_ENCODE_WEBP -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_GL -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_USE_LIBGIFCODEC -DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\" -DSK_VULKAN=1 -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DCRASHPAD_ZLIB_SOURCE_EXTERNAL -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DABSL_ALLOCATOR_NOTHROW=1 -DWEBRTC_USE_BUILTIN_ISAC_FIX=0 -DWEBRTC_USE_BUILTIN_ISAC_FLOAT=1 -DHAVE_SCTP -DNO_MAIN_THREAD_WRAPPING -DLEVELDB_PLATFORM_CHROMIUM=1 -DLEVELDB_PLATFORM_CHROMIUM=1 -DSQLITE_OMIT_ANALYZE -DSQLITE_OMIT_AUTOINIT -DSQLITE_OMIT_AUTOMATIC_INDEX -DSQLITE_OMIT_AUTORESET -DSQLITE_OMIT_COMPILEOPTION_DIAGS -DSQLITE_OMIT_COMPLETE -DSQLITE_OMIT_EXPLAIN -DSQLITE_OMIT_GET_TABLE -DSQLITE_OMIT_INTROSPECTION_PRAGMAS -DSQLITE_DEFAULT_LOOKASIDE=0,0 -DSQLITE_OMIT_LOOKASIDE -DSQLITE_OMIT_TCL_VARIABLE -DSQLITE_OMIT_REINDEX -DSQLITE_OMIT_TRACE -DSQLITE_OMIT_UPSERT -DSQLITE_OMIT_WINDOWFUNC -DSQLITE_ENABLE_FTS3 -DSQLITE_DISABLE_FTS3_UNICODE -DSQLITE_DISABLE_FTS4_DEFERRED -DSQLITE_ENABLE_ICU -DSQLITE_SECURE_DELETE -DSQLITE_THREADSAFE=1 -DSQLITE_MAX_WORKER_THREADS=0 -DSQLITE_MAX_MMAP_SIZE=268435456 -DSQLITE_DEFAULT_FILE_PERMISSIONS=0600 -DSQLITE_DEFAULT_LOCKING_MODE=1 -DSQLITE_DEFAULT_MEMSTATUS=1 -DSQLITE_DEFAULT_PAGE_SIZE=4096 -DSQLITE_DEFAULT_PCACHE_INITSZ=0 -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_SHARED_CACHE -DSQLITE_USE_ALLOCA -DSQLITE_OMIT_DECLTYPE -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_HAVE_ISNAN -DSQLITE_ENABLE_BATCH_ATOMIC_WRITE -DSQLITE_TEMP_STORE=3 -DSQLITE_ENABLE_LOCKING_STYLE=0 -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DV8_REVERSE_JSARGS -DVK_NO_PROTOTYPES -DUSE_VULKAN_XLIB -Igen -I../../3rdparty/chromium -I../../3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -Igen -Igen -Igen -Igen -I../../3rdparty/chromium/third_party/vulkan_headers/include -Igen -I../../3rdparty/chromium/third_party/libyuv/include -I../../3rdparty/chromium/third_party/jsoncpp/source/include -Igen -Igen -Igen -Igen -Igen -Igen -Igen -I../../3rdparty/chromium/third_party/khronos -I../../3rdparty/chromium/gpu -Igen/third_party/dawn/src/include -I../../3rdparty/chromium/third_party/dawn/src/include -I../../3rdparty/chromium/third_party/abseil-cpp -I../../3rdparty/chromium/third_party/boringssl/src/include -I../../3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../3rdparty/chromium/third_party/protobuf/src -I../../3rdparty/chromium/third_party/ced/src -I../../3rdparty/chromium/third_party/icu/source/common -I../../3rdparty/chromium/third_party/icu/source/i18n -I../../3rdparty/chromium/third_party/skia -I../../3rdparty/chromium/third_party/libgifcodec -I../../3rdparty/chromium/third_party/vulkan/include -I../../3rdparty/chromium/third_party/vulkan_headers/include -I../../3rdparty/chromium/third_party/crashpad/crashpad -I../../3rdparty/chromium/third_party/crashpad/crashpad/compat/non_mac -I../../3rdparty/chromium/third_party/crashpad/crashpad/compat/linux -I../../3rdparty/chromium/third_party/crashpad/crashpad/compat/non_win -I../../3rdparty/chromium/third_party/zlib -I../../3rdparty/chromium/third_party/webrtc_overrides -I../../3rdparty/chromium/third_party/webrtc -Igen/third_party/webrtc -I../../3rdparty/chromium/third_party/mesa_headers -I../../3rdparty/chromium/third_party/libwebm/source -I../../3rdparty/chromium/third_party/leveldatabase -I../../3rdparty/chromium/third_party/leveldatabase/src -I../../3rdparty/chromium/third_party/leveldatabase/src/include -Igen/third_party/metrics_proto -I../../3rdparty/chromium/v8/include -Igen/v8/include -I../../3rdparty/chromium/third_party/angle/src/common/third_party/base -Igen/angle -I../../3rdparty/chromium/third_party/angle/include -I../../3rdparty/chromium/third_party/brotli/include -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pipe -pthread -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-comments -Wno-packed-not-aligned -Wno-dangling-else -Wno-missing-field-initializers -Wno-unused-parameter -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fvisibility=hidden -I/homedir/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/nss -I/homedir/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/nspr -I/homedir/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/dbus-1.0 -I/homedir/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/dbus-1.0/include -std=gnu++14 -Wno-narrowing -Wno-class-memaccess -Wno-attributes -Wno-class-memaccess -Wno-subobject-linkage -Wno-invalid-offsetof -Wno-return-type -Wno-deprecated-copy -fno-exceptions -fno-rtti --sysroot=/homedir/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot -fvisibility-inlines-hidden -Wno-deprecated-declarations -c ../../3rdparty/chromium/content/browser/appcache/appcache_host.cc -o obj/content/browser/browser/appcache_host.o
aarch64-buildroot-linux-gnu-g++.br_real: fatal error: Killed signal terminated program cc1plus
compilation terminated.
[5481/8659] CXX obj/content/browser/browser/appcache_quota_client.o
[5482/8659] CXX obj/content/browser/browser/appcache_navigation_handle.o
[5483/8659] CXX obj/content/browser/browser/appcache_internals_ui.o
ninja: build stopped: subcommand failed.
make[6]: *** [Makefile.gn_run:452: run_ninja] Error 1
make[5]: *** [Makefile:82: sub-gn_run-pro-make_first] Error 2
make[4]: *** [Makefile:79: sub-core-make_first] Error 2
make[3]: *** [Makefile:49: sub-src-make_first] Error 2
j1nx commented 2 years ago

That one I have not seen before?

i need to dig into it. Did you not run out of memory? That qtwebengine package is huge, so....

dickorydock commented 2 years ago

Yeah, no memory problems that I can see. Let me know if I can provide other information.

CaptainFoul commented 2 years ago

I had this same issue when I woke up today. The "error: Killed signal terminated program cc1plus" was due to excessive resource utilization.

I'm building on an 8 core, 8 thread 3.6Ghz i7 and NINJA kept trying to use 17 (-j17) parallel builds. After a few minutes into this part of the build the system would hang and compilation processes stop.

I found a related issue on google and my solution was to:

export NINJAJOBS="-j4" make rpi3_64-gui

(The j command will appear on the command line twice, but ninja accepts it and only uses the last one)

CaptainFoul commented 2 years ago

Well, I made it past the error above and got stopped by a new one.

kf5-kio 5.91.0 Building ...

[ 33%] Automatic MOC for target kio_remote [ 33%] Automatic MOC for target kioexecd /bin/sh: 1: /home/captainfoul/OpenVoiceOS/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/bin/desktoptojson: Exec format error /bin/sh: 1: /home/captainfoul/OpenVoiceOS/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/bin/desktoptojson: Exec format error [ 33%] Generating cookies.json make[5]: [src/ioslaves/trash/CMakeFiles/kcm_trash_autogen.dir/build.make:65: src/ioslaves/trash/kcmtrash.json] Error 126 make[4]: [CMakeFiles/Makefile2:1794: src/ioslaves/trash/CMakeFiles/kcm_trash_autogen.dir/all] Error 2 make[4]: Waiting for unfinished jobs.... make[5]: [src/ioslaves/remote/kdedmodule/CMakeFiles/remotedirnotify_autogen.dir/build.make:65: src/ioslaves/remote/kdedmodule/remotedirnotify.json] Error 126 make[4]: [CMakeFiles/Makefile2:1958: src/ioslaves/remote/kdedmodule/CMakeFiles/remotedirnotify_autogen.dir/all] Error 2 /bin/sh: 1: /home/captainfoul/OpenVoiceOS/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/bin/desktoptojson: Exec format error make[5]: [src/kcms/cookies/CMakeFiles/kcm_cookies_autogen.dir/build.make:65: src/kcms/cookies/cookies.json] Error 126 make[4]: [CMakeFiles/Makefile2:2856: src/kcms/cookies/CMakeFiles/kcm_cookies_autogen.dir/all] Error 2 [ 33%] Built target kioslave5_autogen [ 33%] Built target ktrash5_autogen [ 33%] Built target kio_http_cache_cleaner_autogen [ 33%] Built target kiod5_autogen [ 33%] Built target file_helper_autogen [ 33%] Built target kio_remote_autogen [ 33%] Built target kio_trash_autogen [ 33%] Built target kssld_autogen [ 33%] Built target kio_ftp_autogen [ 33%] Built target kiod_kpasswdserver_autogen [ 33%] Built target kioexecd_autogen [ 33%] Built target kio_file_autogen [ 33%] Built target kio_http_autogen [ 33%] Built target KF5KIOGui_autogen make[3]: [Makefile:133: all] Error 2

The problem seems to be this executable:

/home/captainfoul/OpenVoiceOS/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/bin/desktoptojson

Job was started with:

export NINJAJOBS="-j4" make rpi3_64-gui

dickorydock commented 2 years ago

Yeah, I just tried with export NINJAJOBS="-j4" and it ran a bit but then stopped. Good to know this is a system resources issue. Perhaps there's nothing I can do.

j1nx commented 2 years ago

For the resources, thats what I thought. I have the same.

about the KIO error. That one is also known.

The quickfix is to copy/paste the executable binary from the host over the staging one.

cp /usr/bin/desktoptojson /home/captainfoul/OpenVoiceOS/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/bin/desktoptojson

then restart the make command.

(Further down the road you will get a similar exec format error. Similar quickfix. Copy the binary from the host over the aaarch staging one)

j1nx commented 2 years ago

Yeah, I just tried with export NINJAJOBS="-j4" and it ran a bit but then stopped. Good to know this is a system resources issue. Perhaps there's nothing I can do.

Try -J2 and make sure you have at least 8GB of memory to get through. A disk swap file will help you through if you do not have the 8 GB. It will be slow but then again you are almost through the compilation of qtwebengine

dickorydock commented 2 years ago

-J2 helped me get through qtwebengine. Thanks. Here is the error I get after fixing KIO. I don't see any exec format error though. Could the "Unknown options: strict-path-mode, generic-data-path."be a hint?


[ 30%] Generating kcmtrash.json
[ 30%] Automatic MOC for target KF5KIOGui
[ 30%] Automatic MOC for target kio_ftp
Unknown options: strict-path-mode, generic-data-path.
make[5]: *** [src/ioslaves/trash/CMakeFiles/kcm_trash_autogen.dir/build.make:65: src/ioslaves/trash/kcmtrash.json] Error 1
make[4]: *** [CMakeFiles/Makefile2:1794: src/ioslaves/trash/CMakeFiles/kcm_trash_autogen.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs....
[ 30%] Automatic MOC for target ktrash5
[ 30%] Built target kio_ftp_autogen
[ 30%] Built target KF5KIOGui_autogen
[ 30%] Built target ktrash5_autogen
[ 30%] Built target pofiles-cee5e123134a4b8bbd8c125c6d5abe0b
make[3]: *** [Makefile:133: all] Error 2
make[2]: *** [package/pkg-generic.mk:293: /home/username/OpenVoiceOS/buildroot/output/build/kf5-kio-5.91.0/.stamp_built] Error 2
j1nx commented 2 years ago

I think your host QT packages are 5.12 and we are building 5.15 in the image.

i believe that function got implemented in 5.15

difficult situation to solve at buildroot x-compiling time so is it possible you can update your host QT packages to 5.15?

EDIT: If that is possible, you need to remove the KIO build structure you have so far;

rm -rf buildroot/output/build/kf5-kio-5.91.0
make rpi3-gui
dickorydock commented 2 years ago

You're right that the QT versions are 5.12. One question while I figure out the upgrade issue: according to this ubuntu.com listing, 5.15 is only available for Ubuntu 21.0 and above, but the readme says that Ubuntu 20.04 was used in testing. It feels like one of these may be wrong, or I may just be misunderstanding how to install. When I try to install or upgrade qttools5-dev-tools on Ubuntu 20.04, I get a message that the latest version (5.12) is already installed.

j1nx commented 2 years ago

Right! Then I am afraid you need to have a look at upgrading to the latest LTS version. I believe that is Jammy / 22.04

j1nx commented 2 years ago

I will have a look later on how to fix this properly, however that requires to completely integrate a QT5.15 host build within Buildroot which is one of those rabbit holes,

dickorydock commented 2 years ago

Oh, it's fine to me to just upgrade to 22.04 and I hear you on the rabbit hole for integrating 5.15 within buildroot. I just wasn't sure if upgrading my system to 22.04 would break other packages in this line of dependencies since the README said it was tested at 20.04. That said, I'm not sure how this was tested on 20.04 while using QT5.15. Or maybe, as a work in progress, it hasn't been really been tested at that point yet, also fine!

If it's been tested at some version later than 20.04, let me know and I can submit a PR to change the README.

j1nx commented 2 years ago

I am currently developing on an Ubuntu 22.04LTS machine.

j1nx commented 2 years ago

@dickorydock If you upgrade your distro and manage to get through the whole build process with all quick fixes here and there, please share the image with us, as currently I do not have an active machine building the rpi3 image.

Also, I am currently working on a full update/upgrade of the ovos-buildroot which I hope to push in the next days. If so, I would really be gratefull if you could then rebuild the same for the rpi3 and share it again. It might help a lot of other users out there,

dickorydock commented 2 years ago

I can do that. I will work on upgrading to 22.04 today and see how the build process goes after that. And, sounds good about the update of ovos-buildroot - thank you for doing that!

dickorydock commented 2 years ago

Update: I upgraded my system to 22.04.1 and now all of the QT packages are running on version 5.15. At first I got a similar error as before at around 30% of kf5-kio but after copy/pasting the new desktoptojson from host to the staging folder I was able to get the make rpi3_64-gui to continue.

As you warned, I ran into a similar issue with the file kconfig_compiler_kf5 in a separate folder, but by copy/pasting from the host to the staging location I was also able to get past that one.

Here is the error message I am currently working through:


`>>> kf5-kdeconnect v22.04.1 Configuring
(mkdir -p /homedir/OpenVoiceOS2/buildroot/output/build/kf5-kdeconnect-v22.04.1//buildroot-build && cd /homedir/OpenVoiceOS2/buildroot/output/build/kf5-kdeconnect-v22.04.1//buildroot-build && rm -f CMakeCache.txt && PATH="/homedir/OpenVoiceOS2/buildroot/output/host/bin:/homedir/OpenVoiceOS2/buildroot/output/host/sbin:/homedir/.nvm/versions/node/v14.4.0/bin:/homedir/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"  /homedir/OpenVoiceOS2/buildroot/output/host/bin/cmake /homedir/OpenVoiceOS2/buildroot/output/build/kf5-kdeconnect-v22.04.1/ -DCMAKE_TOOLCHAIN_FILE="/homedir/OpenVoiceOS2/buildroot/output/host/share/buildroot/toolchainfile.cmake" -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_COLOR_MAKEFILE=OFF -DBUILD_DOC=OFF -DBUILD_DOCS=OFF -DBUILD_EXAMPLE=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TEST=OFF -DBUILD_TESTS=OFF -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON   )
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Check for working C compiler: /homedir/OpenVoiceOS2/buildroot/output/host/bin/aarch64-buildroot-linux-gnu-gcc
-- Check for working C compiler: /homedir/OpenVoiceOS2/buildroot/output/host/bin/aarch64-buildroot-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /homedir/OpenVoiceOS2/buildroot/output/host/bin/aarch64-buildroot-linux-gnu-g++
-- Check for working CXX compiler: /homedir/OpenVoiceOS2/buildroot/output/host/bin/aarch64-buildroot-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Installing in /usr. Run /homedir/OpenVoiceOS2/buildroot/output/build/kf5-kdeconnect-v22.04.1/buildroot-build/prefix.sh to set the environment for kdeconnect.
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
fatal: HEAD does not point to a branch
CMake Deprecation Warning at /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/share/ECM/modules/ECMQMLModules.cmake:7 (message):
  ECMQMLModules.cmake is deprecated since 5.88.0, please use
  ECMFindQmlModule.cmake instead
Call Stack (most recent call first):
  CMakeLists.txt:40 (include)

CMake Error at /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/Qca-qt5/Qca-qt5Targets.cmake:73 (message):
  The imported target "qca-qt5" references the file

     "/usr/lib/libqca-qt5.so.2.3.4"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/Qca-qt5/Qca-qt5Targets.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/Qca-qt5/Qca-qt5Config.cmake:38 (include)
  CMakeLists.txt:62 (find_package)

-- Configuring incomplete, errors occurred!
See also "/homedir/OpenVoiceOS2/buildroot/output/build/kf5-kdeconnect-v22.04.1/buildroot-build/CMakeFiles/CMakeOutput.log".
make[2]: *** [package/pkg-generic.mk:283: /homedir/OpenVoiceOS2/buildroot/output/build/kf5-kdeconnect-v22.04.1/.stamp_configured] Error 1
j1nx commented 2 years ago

I need to look into that one. For you now as kdeconnect is not yet fully implemented it is the fasted if you just deselect that package.

make menuconfig

then (out the top of my head), Select at the bottom, external-tree, Additional packages and deselect kf5-kdeconnect. Exhit all out and choose yes to save. The run;

make savedefconfig

make rpi3-gui
dickorydock commented 2 years ago

Thanks. I found that option in the tree menu, made that change, and am continuing to run the program. A note that I ran into an issue similar to the OpenGL issue noted in the README, but instead of encountering it in "plasma-workspace" as noted in the documentation, this time I ran into it with "kf5-plasma-framework." I made the change to "buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake" and that allowed me to finish the "kf5-plasma-framework" part. The rest is still running.

dickorydock commented 2 years ago

Update: I ran into an issue with the kf5-plasma-nm package. See error below. What's weird is that it says "/usr/include/Qca-qt5/QtCrypto" doesn't exist but I can see that folder within /buildroot.../sysroot/usr/include"


 kf5-plasma-nm 5.24.5 Configuring
(mkdir -p /homedir/OpenVoiceOS2/buildroot/output/build/kf5-plasma-nm-5.24.5//buildroot-build && cd /homedir/OpenVoiceOS2/buildroot/output/build/kf5-plasma-nm-5.24.5//buildroot-build && rm -f CMakeCache.txt && PATH="/homedir/OpenVoiceOS2/buildroot/output/host/bin:/homedir/OpenVoiceOS2/buildroot/output/host/sbin:/homedir/.nvm/versions/node/v14.4.0/bin:/homedir/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin"  /homedir/OpenVoiceOS2/buildroot/output/host/bin/cmake /homedir/OpenVoiceOS2/buildroot/output/build/kf5-plasma-nm-5.24.5/ -DCMAKE_TOOLCHAIN_FILE="/homedir/OpenVoiceOS2/buildroot/output/host/share/buildroot/toolchainfile.cmake" -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_COLOR_MAKEFILE=OFF -DBUILD_DOC=OFF -DBUILD_DOCS=OFF -DBUILD_EXAMPLE=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TEST=OFF -DBUILD_TESTS=OFF -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON   )
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Check for working C compiler: /homedir/OpenVoiceOS2/buildroot/output/host/bin/aarch64-buildroot-linux-gnu-gcc
-- Check for working C compiler: /homedir/OpenVoiceOS2/buildroot/output/host/bin/aarch64-buildroot-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /homedir/OpenVoiceOS2/buildroot/output/host/bin/aarch64-buildroot-linux-gnu-g++
-- Check for working CXX compiler: /homedir/OpenVoiceOS2/buildroot/output/host/bin/aarch64-buildroot-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Installing in /usr. Run /homedir/OpenVoiceOS2/buildroot/output/build/kf5-plasma-nm-5.24.5/buildroot-build/prefix.sh to set the environment for plasma-networkmanagement.
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Found KF5ConfigWidgets: /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5ConfigWidgets/KF5ConfigWidgetsConfig.cmake (found version "5.91.0") 
-- Found KF5Completion: /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5Completion/KF5CompletionConfig.cmake (found version "5.91.0") 
-- Found KF5CoreAddons: /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake (found version "5.91.0") 
-- Found KF5Declarative: /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5Declarative/KF5DeclarativeConfig.cmake (found version "5.91.0") 
-- Found KF5DBusAddons: /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5DBusAddons/KF5DBusAddonsConfig.cmake (found version "5.91.0") 
-- Found X11: /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/include   
-- Looking for XOpenDisplay in /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libX11.so;/homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libXext.so
-- Looking for XOpenDisplay in /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libX11.so;/homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Found KF5KIO: /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5KIO/KF5KIOConfig.cmake (found version "5.91.0") 
-- Found Gettext: /homedir/OpenVoiceOS2/buildroot/output/host/bin/msgmerge (found version "0.20.1") 
-- Found KF5I18n: /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5I18n/KF5I18nConfig.cmake (found version "5.91.0") 
-- Found PkgConfig: /homedir/OpenVoiceOS2/buildroot/output/host/bin/pkg-config (found version "1.6.3") 
-- Checking for one of the modules 'libnm>=1.4.0'
-- Checking for one of the modules 'gio-2.0'
-- Found KF5NetworkManagerQt: /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5NetworkManagerQt/KF5NetworkManagerQtConfig.cmake (found version "5.91.0") 
-- Found KF5Notifications: /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5Notifications/KF5NotificationsConfig.cmake (found version "5.91.0") 
-- Found KF5Plasma: /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5Plasma/KF5PlasmaConfig.cmake (found version "5.91.0") 
-- Found KF5Service: /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5Service/KF5ServiceConfig.cmake (found version "5.91.0") 
-- Found KF5Solid: /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5Solid/KF5SolidConfig.cmake (found version "5.91.0") 
-- Found KF5Wallet: /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5Wallet/KF5WalletConfig.cmake (found version "5.91.0") 
-- Found KF5WidgetsAddons: /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5WidgetsAddons/KF5WidgetsAddonsConfig.cmake (found version "5.91.0") 
-- Found KF5WindowSystem: /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5WindowSystem/KF5WindowSystemConfig.cmake (found version "5.91.0") 
-- Found KF5: success (found suitable version "5.91.0", minimum required is "5.86") found components: ConfigWidgets Completion CoreAddons Declarative DBusAddons KIO I18n NetworkManagerQt Notifications Plasma Service Solid Wallet WidgetsAddons WindowSystem 
-- Found org.kde.prison-QMLModule: TRUE (found version "")  
-- Checking for module 'openconnect>=3.99'
--   Package 'openconnect', required by 'virtual:world', not found
-- Checking for module 'libnm>1.4.0'
--   Found libnm, version 1.34.0
-- Checking for module 'mobile-broadband-provider-info'
--   Package 'mobile-broadband-provider-info', required by 'virtual:world', not found
-- Enabling ModemManager support
CMake Warning at /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5Package/KF5PackageMacros.cmake:66 (message):
  couldn't generate metainfo for org.kde.plasma.networkmanagement:
  /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/bin/kpackagetool5:
  1: ELF���@��@8: not found

  /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/bin/kpackagetool5:
  8: Syntax error: "(" unexpected

Call Stack (most recent call first):
  /homedir/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5Plasma/KF5PlasmaMacros.cmake:36 (kpackage_install_package)
  applet/CMakeLists.txt:1 (plasma_install_package)

-- The following RUNTIME packages have been found:

 * org.kde.prison-QMLModule, QML module 'org.kde.prison' is a runtime dependency.
 * KF5Kirigami2 (required version >= 5.86), A QtQuick based components set
   Required at runtime by the KCMs
 * KF5Prison (required version >= 5.86), Prison library, <https://commits.kde.org/prison>
   Needed to create mobile barcodes for WiFi networks

-- The following OPTIONAL packages have been found:

 * KF5ItemViews (required version >= 5.91.0)
 * KF5JobWidgets (required version >= 5.91.0)
 * KF5Auth (required version >= 5.91.0)
 * KF5Codecs (required version >= 5.91.0)
 * KF5XmlGui (required version >= 5.91.0)
 * KF5Package (required version >= 5.91.0)
 * KF5Config (required version >= 5.91.0)
 * KF5ModemManagerQt (required version >= 5.86)

-- The following REQUIRED packages have been found:

 * ECM (required version >= 5.86)
 * Qt5Qml (required version >= 5.15.8)
 * Qt5QmlModels (required version >= 5.15.8)
 * Qt5QuickWidgets
 * Qt5 (required version >= 5.15.0)
 * Qt5Quick (required version >= 5.15.2)
 * KF5Declarative (required version >= 5.86)
 * KF5DBusAddons (required version >= 5.86)
 * KF5Completion (required version >= 5.91.0)
 * KF5ConfigWidgets (required version >= 5.91.0)
 * Qt5Network (required version >= 5.15.2)
 * KF5KIO (required version >= 5.86)
 * Gettext
 * KF5I18n (required version >= 5.86)
 * KF5NetworkManagerQt (required version >= 5.86)
 * KF5Notifications (required version >= 5.86)
 * KF5Plasma (required version >= 5.86)
 * KF5CoreAddons (required version >= 5.91.0)
 * KF5Service (required version >= 5.86)
 * KF5Solid (required version >= 5.86)
 * KF5Wallet (required version >= 5.86)
 * KF5WidgetsAddons (required version >= 5.86)
 * Qt5Widgets (required version >= 5.15.2)
 * KF5WindowSystem (required version >= 5.86)
 * KF5 (required version >= 5.86)
 * Qt5DBus (required version >= 5.15.2)
 * Qt5Core (required version >= 5.15.2)
 * Qca-qt5 (required version >= 2.1.0), Support for encryption, <https://download.kde.org/stable/qca-qt5/>
 * Qt5Gui (required version >= 5.15.2)
 * PkgConfig

-- Configuring done
CMake Error in libs/editor/CMakeLists.txt:
  Imported target "qca-qt5" includes non-existent path

    "/usr/include/Qca-qt5/QtCrypto"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

CMake Error in libs/editor/CMakeLists.txt:
  Imported target "qca-qt5" includes non-existent path

    "/usr/include/Qca-qt5/QtCrypto"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.
j1nx commented 2 years ago

Ah right, the qca-qt5 package is in staging sysroot however not corretly x-compiled.

Quick fix to get through. Can you try to delete;

rm -rf buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/Qca-qt5

make repi3-gui
dickorydock commented 2 years ago

Tried that but getting similar errors:


-- Found org.kde.prison-QMLModule: TRUE (found version "")  
CMake Warning at CMakeLists.txt:70 (find_package):
  By not providing "FindQca-qt5.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qca-qt5", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qca-qt5"
  (requested version 2.1.0) with any of the following names:

    Qca-qt5Config.cmake
    qca-qt5-config.cmake

  Add the installation prefix of "Qca-qt5" to CMAKE_PREFIX_PATH or set
  "Qca-qt5_DIR" to a directory containing one of the above files.  If
  "Qca-qt5" provides a separate development package or SDK, be sure it has
  been installed.

-- Checking for module 'openconnect>=3.99'
--   Package 'openconnect', required by 'virtual:world', not found
-- Checking for module 'libnm>1.4.0'
--   Found libnm, version 1.34.0
-- Checking for module 'mobile-broadband-provider-info'
--   Package 'mobile-broadband-provider-info', required by 'virtual:world', not found
-- Enabling ModemManager support
CMake Warning at /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5Package/KF5PackageMacros.cmake:66 (message):
  couldn't generate metainfo for org.kde.plasma.networkmanagement:
  /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/bin/kpackagetool5:
  1: ELF���@��@8: not found

  /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/bin/kpackagetool5:
  8: Syntax error: "(" unexpected
j1nx commented 2 years ago

Need to think how to get you through without a "make clean"...

dickorydock commented 2 years ago

I can try a "make clean" no problem if you think that would help

j1nx commented 2 years ago

Yeah, to be honest, I have no clue what I did as quick fix to get past it while I am currently am???

Better to start fresh

After the make clean, please make sure you double check the kdeconnect and qca packages are disabled within the menuconfig and save if it was not.

Unfortunately you need through jump to the same hoops ...

dickorydock commented 2 years ago

@j1nx can you explain how to check that the qca packages are disabled? I don't see that in menuconfig. I do see kdeconnect and it is still disabled. Thank you

j1nx commented 2 years ago

It should be a bit below the kdeconnect option.

kf5-qca

(if i am correct)

dickorydock commented 2 years ago

Got it. I checked that was disabled and found that it wasn't so I disabled it and saved the menuconfig and then ran make rpi3_64-gui but I got this error. Should I disable any additional config items?


droot-external "rpi3_64-gui_defconfig"
Makefile:578: *** kf5-qca is in the dependency chain of kf5-plasma-nm that has added it to its _DEPENDENCIES variable without selecting it or depending on it from Config.in.  Stop.
make[1]: *** [Makefile:84: _all] Error 2
j1nx commented 2 years ago

Hmmm, not sure if we still need that package. For now, can you try to deselect that one as well.

kf5-plasma-nm

dickorydock commented 2 years ago

Got it. I've done that and am re-running it now. I'll go with our current solutions to any issues that pop up and will update with any new ones. Thanks.

j1nx commented 2 years ago

Ok, we will tackle the issues as they come. If QCA is indeed really needed we can look at it afterwards.

dickorydock commented 2 years ago

Update: I ran a make clean then reran the program. I got through the two copy-from-host-to-staging-location issues mentioned above and now I've run into an issue with the kf5-plasma-framework package:


>>> kf5-plasma-framework 5.91.0 Patching
>>> kf5-plasma-framework 5.91.0 Configuring
(mkdir -p /home/username/OpenVoiceOS2/buildroot/output/build/kf5-plasma-framework-5.91.0/ && cd /home/username/OpenVoiceOS2/buildroot/output/build/kf5-plasma-framework-5.91.0/ && rm -f CMakeCache.txt && PATH="/home/username/OpenVoiceOS2/buildroot/output/host/bin:/home/username/OpenVoiceOS2/buildroot/output/host/sbin:/home/username/.nvm/versions/node/v14.4.0/bin:/home/username/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin"  /home/username/OpenVoiceOS2/buildroot/output/host/bin/cmake /home/username/OpenVoiceOS2/buildroot/output/build/kf5-plasma-framework-5.91.0/ -DCMAKE_TOOLCHAIN_FILE="/home/username/OpenVoiceOS2/buildroot/output/host/share/buildroot/toolchainfile.cmake" -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_COLOR_MAKEFILE=OFF -DBUILD_DOC=OFF -DBUILD_DOCS=OFF -DBUILD_EXAMPLE=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TEST=OFF -DBUILD_TESTS=OFF -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON   )
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Check for working C compiler: /home/username/OpenVoiceOS2/buildroot/output/host/bin/aarch64-buildroot-linux-gnu-gcc
-- Check for working C compiler: /home/username/OpenVoiceOS2/buildroot/output/host/bin/aarch64-buildroot-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/username/OpenVoiceOS2/buildroot/output/host/bin/aarch64-buildroot-linux-gnu-g++
-- Check for working CXX compiler: /home/username/OpenVoiceOS2/buildroot/output/host/bin/aarch64-buildroot-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- 

Installing in /usr. Run /home/username/OpenVoiceOS2/buildroot/output/build/kf5-plasma-framework-5.91.0/prefix.sh to set the environment for Plasma.
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Performing Test BSYMBOLICFUNCTIONS_AVAILABLE
-- Performing Test BSYMBOLICFUNCTIONS_AVAILABLE - Success
-- Found KF5Activities: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5Activities/KF5ActivitiesConfig.cmake (found version "5.91.0") 
-- Found KF5Archive: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5Archive/KF5ArchiveConfig.cmake (found version "5.91.0") 
-- Found KF5Config: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5Config/KF5ConfigConfig.cmake (found version "5.91.0") 
-- Found KF5ConfigWidgets: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5ConfigWidgets/KF5ConfigWidgetsConfig.cmake (found version "5.91.0") 
-- Found KF5CoreAddons: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake (found version "5.91.0") 
-- Found KF5DBusAddons: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5DBusAddons/KF5DBusAddonsConfig.cmake (found version "5.91.0") 
-- Found KF5Declarative: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5Declarative/KF5DeclarativeConfig.cmake (found version "5.91.0") 
-- Found KF5GlobalAccel: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5GlobalAccel/KF5GlobalAccelConfig.cmake (found version "5.91.0") 
-- Found KF5GuiAddons: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5GuiAddons/KF5GuiAddonsConfig.cmake (found version "5.91.0") 
-- Found Gettext: /home/username/OpenVoiceOS2/buildroot/output/host/bin/msgmerge (found version "0.20.1") 
-- Found KF5I18n: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5I18n/KF5I18nConfig.cmake (found version "5.91.0") 
-- Found KF5IconThemes: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5IconThemes/KF5IconThemesConfig.cmake (found version "5.91.0") 
-- Found X11: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/include   
-- Looking for XOpenDisplay in /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libX11.so;/home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libXext.so
-- Looking for XOpenDisplay in /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libX11.so;/home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Found KF5KIO: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5KIO/KF5KIOConfig.cmake (found version "5.91.0") 
-- Found KF5Service: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5Service/KF5ServiceConfig.cmake (found version "5.91.0") 
-- Found KF5WindowSystem: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5WindowSystem/KF5WindowSystemConfig.cmake (found version "5.91.0") 
-- Found KF5XmlGui: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5XmlGui/KF5XmlGuiConfig.cmake (found version "5.91.0") 
-- Found KF5Notifications: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5Notifications/KF5NotificationsConfig.cmake (found version "5.91.0") 
-- Found KF5Package: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5Package/KF5PackageConfig.cmake (found version "5.91.0") 
-- Found KF5Kirigami2: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5Kirigami2/KF5Kirigami2Config.cmake (found version "5.91.0") 
-- Found KF5Wayland: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/KF5Wayland/KF5WaylandConfig.cmake (found version "5.91.0") 
-- Could NOT find KF5DocTools (missing: KF5DocTools_DIR)
-- Could NOT find KF5DocTools: found neither KF5DocToolsConfig.cmake nor kf5doctools-config.cmake 
-- Found KF5: success (found suitable version "5.91.0", minimum required is "5.91.0") found components: Activities Archive Config ConfigWidgets CoreAddons DBusAddons Declarative GlobalAccel GuiAddons I18n IconThemes KIO Service WindowSystem XmlGui Notifications Package Kirigami2 Wayland missing components: DocTools
-- Found XCB_XCB: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libxcb.so (found version "1.14") 
-- Found XCB_RENDER: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libxcb-render.so (found version "1.14") 
-- Found XCB_SHAPE: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libxcb-shape.so (found version "1.14") 
-- Found XCB_XFIXES: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libxcb-xfixes.so (found version "1.14") 
-- Found XCB_COMPOSITE: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libxcb-composite.so (found version "1.14") 
-- Found XCB_DAMAGE: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libxcb-damage.so (found version "1.14") 
-- Found XCB: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libxcb.so;/home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libxcb-render.so;/home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libxcb-shape.so;/home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libxcb-xfixes.so;/home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libxcb-composite.so;/home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libxcb-damage.so (found version "1.14") found components: XCB COMPOSITE DAMAGE SHAPE XFIXES RENDER 
-- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY OPENGL_INCLUDE_DIR) 
-- Performing Test HAVE_EGL
-- Performing Test HAVE_EGL - Success
-- Found EGL: /home/username/OpenVoiceOS2/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/include (found version "1.5") 
-- OpenGL::EGL is not available
-- Found gzip: /home/username/OpenVoiceOS2/buildroot/output/host/bin/gzip  
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- The following OPTIONAL packages have been found:

 * KF5Completion (required version >= 5.91.0)
 * KF5ItemViews (required version >= 5.91.0)
 * KF5JobWidgets (required version >= 5.91.0)
 * KF5Solid (required version >= 5.91.0)
 * KF5Auth (required version >= 5.91.0)
 * KF5Codecs (required version >= 5.91.0)
 * KF5WidgetsAddons (required version >= 5.91.0)
 * Qt5Core (required version >= 5.15.2)
 * KF5Wayland (required version >= 5.91.0), Integration with the Wayland compositor
 * X11, X11 libraries, <https://www.x.org/>
 * XCB, X protocol C-language Binding, <https://xcb.freedesktop.org/>
 * Qt5X11Extras (required version >= 5.15.2)
 * EGL, A platform-agnostic mechanism for creating rendering surfaces for use with other graphics libraries, such as OpenGL|ES and OpenVG., <https://www.khronos.org/egl/>
   Fallback when OpenGL not available because of missing GLVND

-- The following REQUIRED packages have been found:

 * ECM (required version >= 5.91.0), Extra CMake Modules., <https://commits.kde.org/extra-cmake-modules>
 * Qt5QmlModels (required version >= 5.15.8)
 * Qt5Sql
 * Qt5Qml
 * Qt5Svg
 * Qt5QuickControls2
 * Qt5 (required version >= 5.15.2)
 * KF5Activities (required version >= 5.91.0)
 * KF5Archive (required version >= 5.91.0)
 * KF5DBusAddons (required version >= 5.91.0)
 * Qt5Quick (required version >= 5.15.2)
 * KF5Declarative (required version >= 5.91.0)
 * KF5GlobalAccel (required version >= 5.91.0)
 * KF5GuiAddons (required version >= 5.91.0)
 * Gettext
 * KF5I18n (required version >= 5.91.0)
 * KF5IconThemes (required version >= 5.91.0)
 * Qt5Network (required version >= 5.15.2)
 * KF5KIO (required version >= 5.91.0)
 * KF5Service (required version >= 5.91.0)
 * KF5WindowSystem (required version >= 5.91.0)
 * KF5ConfigWidgets (required version >= 5.91.0)
 * KF5XmlGui (required version >= 5.91.0)
 * Qt5Widgets (required version >= 5.15.2)
 * KF5Notifications (required version >= 5.91.0)
 * KF5CoreAddons (required version >= 5.91.0)
 * KF5Package (required version >= 5.91.0)
 * KF5Kirigami2 (required version >= 5.91.0)
 * Qt5Gui (required version >= 5.15.2)
 * KF5 (required version >= 5.91.0)
 * gzip, Data compression program for the gzip format, <https://www.gnu.org/software/gzip>

-- The following features have been disabled:

 * QCH, API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)

-- The following OPTIONAL packages have not been found:

 * KF5DocTools (required version >= 5.91.0), Tools to generate documentation
 * OpenGL, The OpenGL libraries, <https://www.opengl.org/>

-- Configuring done
CMake Error at src/declarativeimports/core/CMakeLists.txt:9 (add_library):
  Target "corebindingsplugin" links to target "Qt5::Gui_GLESv2" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?

CMake Error at src/declarativeimports/core/CMakeLists.txt:9 (add_library):
  Target "corebindingsplugin" links to target "Qt5::Gui_GLESv2" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?

-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_DOC
    BUILD_DOCS
    BUILD_EXAMPLE
    BUILD_TEST
    BUILD_TESTS

CMake Generate step failed.  Build files cannot be regenerated correctly.
make[2]: *** [package/pkg-generic.mk:283: /home/username/OpenVoiceOS2/buildroot/output/build/kf5-plasma-framework-5.91.0/.stamp_configured] Error 1
make[1]: *** [Makefile:84: _all] Error 2
make[1]: Leaving directory '/home/username/OpenVoiceOS2/buildroot'
#cp -f buildroot/output/images/sdcard.img release/OpenVoiceOS_rpi3_64-gui.img
rsync -ah --progress buildroot/output/images/sdcard.img release/OpenVoiceOS_rpi3_64-gui.img
sending incremental file list
rsync: [sender] link_stat "/home/username/OpenVoiceOS2/buildroot/output/images/sdcard.img" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1333) [sender=3.2.3]
make: *** [Makefile:27: rpi3_64-gui] Error 23
j1nx commented 2 years ago

The quickfix for that one is actually described in the README file. That is the long outstanding issue I have not yet found a possible route to fix yet.

dickorydock commented 2 years ago

Ah yes, missed that one. Got to a seemingly new error this time seems like permission is denied for the file "meta_mpd.py" but as you'll see I figured it out:

>>>   Generating filesystem image rootfs.ext2
mkdir -p /home/username/OpenVoiceOS2/buildroot/output/images
rm -rf /home/username/OpenVoiceOS2/buildroot/output/build/buildroot-fs/ext2
mkdir -p /home/username/OpenVoiceOS2/buildroot/output/build/buildroot-fs/ext2
rsync -auH --exclude=/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM /home/username/OpenVoiceOS2/buildroot/output/target/ /home/username/OpenVoiceOS2/buildroot/output/build/buildroot-fs/ext2/target
rsync: [sender] send_files failed to open "/home/username/OpenVoiceOS2/buildroot/output/target/usr/share/snapserver/plug-ins/meta_mpd.py": Permission denied (13)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1333) [sender=3.2.3]
make[2]: *** [fs/ext2/ext2.mk:50: /home/username/OpenVoiceOS2/buildroot/output/images/rootfs.ext2] Error 23
make[1]: *** [Makefile:84: _all] Error 2
make[1]: Leaving directory '/home/username/OpenVoiceOS2/buildroot'
#cp -f buildroot/output/images/sdcard.img release/OpenVoiceOS_rpi3_64-gui.img
rsync -ah --progress buildroot/output/images/sdcard.img release/OpenVoiceOS_rpi3_64-gui.img
sending incremental file list
rsync: [sender] link_stat "/home/username/OpenVoiceOS2/buildroot/output/images/sdcard.img" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1333) [sender=3.2.3]
make: *** [Makefile:27: rpi3_64-gui] Error 23

I searched around a bit and wonder if it could be related to this similar issue in the snapcast repo. I found the file in Files right-clicked and changed the permissions to "read and write" from "no read, no write." And that fixed it! Then the next issue was:


make[1]: Leaving directory '/home/username/OpenVoiceOS2/buildroot'
#cp -f buildroot/output/images/sdcard.img release/OpenVoiceOS_rpi3_64-gui.img
rsync -ah --progress buildroot/output/images/sdcard.img release/OpenVoiceOS_rpi3_64-gui.img
sending incremental file list
sdcard.img
          4.30G 100%  288.86MB/s    0:00:14 (xfr#1, to-chk=0/1)
rm release/OpenVoiceOS_rpi3_64-gui.img.xz
rm: cannot remove 'release/OpenVoiceOS_rpi3_64-gui.img.xz': No such file or directory

Haven't been able to get past that one yet.

j1nx commented 2 years ago

Ah, yes. That is a stupid mistake from my side.

The build is finished and in the release folder there is now a flashable image file "OpenVoiceOS_rpi3_64-gui.img". That step just xz-ed that file so the actual file is a bit smaller so easier to copy around. I need to delete the old zipped image to do that, however at first run that file is not there obviously.

Need to wrap that delete around an if file exist function.

Anyhow, you can grab that file and flash it or zip it mannually first by;

xz -3 -T0 -v release/OpenVoiceOS_rpi3_64-gui.img

dickorydock commented 2 years ago

Using RPi-Imager, I flashed "OpenVoiceOS_rpi3_64-gui.img" to a microSD card and tried it on my Raspberry Pi 3 Model B V1.2 but unfortunately it just gives me the four blinking green lights repeating and does not boot up. I'm not sure how to debug that, though I found similar issues mentioned here like an issue with loader.bin: https://elinux.org/R-Pi_Troubleshooting#Green_LED_blinks_in_a_specific_pattern.

I also tried flashing another identical microSD card with Raspberry Pi OS (32-bit) and got that to boot on the same Raspberry Pi 3 Model B V1.2.

j1nx commented 2 years ago

I must have screwed up the rpi3 somewhere.

I am about finished with the big update after which I will sync rpi3 with rpi4 again. Hopefully somewhere next week.

CaptainFoul commented 2 years ago

I can also independently confirm that the resultant rpi3 image is non functional.

j1nx commented 2 years ago

Can one of you or both let me know the content of the folder; buildroot/output/images/rpi-firmware/

I think I know the culprit

dickorydock commented 2 years ago

Sure. Here are the files and folder I see there. Screenshot from 2022-10-03 09-05-55

j1nx commented 2 years ago

Can you change the following file; https://github.com/OpenVoiceOS/ovos-buildroot/blob/develop/buildroot-external/board/raspberrypi/config_3_64bit.txt#L8

Line 8 and 9 should be

start_file=start_x.elf
fixup_file=fixup_x.dat

After that you can just rerun the make rpi3-gui command to recreate the image.

dickorydock commented 2 years ago

I am having a sort of weird experience with these changes. I altered the file, remade the image, installed it, and it worked fine but I didn't select "Connect to Wifi" the first time and then couldn't figure out how to get back to that menu. So to get back to that menu, I tried to flash the image (same file!) again, but this time I get the issue with the four lights blinking. I also tried remaking the image and then flashing it, same problem. A Raspberry Pi OS image still works fine, so I'm not sure what's going on.

Separately (and maybe beyond the scope of this github issue) I see in the documentation that mycroft-backend is still recommended. I believe that requires an internet connection. Is there any progress toward a version that has some funtionality without internet connection?

JarbasAl commented 2 years ago

@dickorydock by default ovos runs offline, you need to explicitly enable a backend such as selene or self hosted, the readme is outdated

FAQ here https://github.com/OpenVoiceOS/community-docs

j1nx commented 2 years ago

For the first issue. Can you try to boot Raspberry Pi OS and after that reflash latest image and try to boot?

Second part of the issue; What Jarbas says. It will be greatly improved in the next image, so perhaps better to wait just a little bit till I ping yopu, so you can try building the upgrade.

dickorydock commented 2 years ago

Hmm yes I just tried that but same issue. So strange. Well, it worked before. And yes, I will definitely try again once the next image is done and thank you so much for your work on that!

dickorydock commented 1 year ago

Hi @j1nx any updates on when the next image might be ready to build for rpi3? Thank you

dickorydock commented 1 year ago

@j1nx is the next image done yet? If so I will try rebuilding for rpi3

dickorydock commented 1 year ago

Hi, I tried a build of the latest version for rpi3 and wanted to share my findings. I experienced the same checksum issue for rpi3 mentioned in a different issue but then I went back and did a make clean and ran into a different issue. Some of the issues I ran into last time are fixed now. Here are the issues I still ran into:

EDIT: I tried this for the libpulse error but I get the same error: 

rm -rf buildroot/output/build/pulseaudio-14.2 make rpi3_64-gui