flathub / org.kde.kontact

https://flathub.org/apps/details/org.kde.kontact
4 stars 9 forks source link

Having trouble compiling 5.12 #29

Closed detrout closed 5 years ago

detrout commented 5 years ago

Kontact/flatpak is failing to build for me. Some part of libkgapi wants ffmpeg which wants libaom.so.0 which isn't available.

FAILED: bin/contacts-example 
: && /usr/bin/c++  -march=x86-64 -mtune=generic -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=c++0x -fno-operator-names -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -fdiagnostics-color=always -pedantic -Wzero-as-null-pointer-constant -fexceptions -O2 -g -DNDEBUG  -Wl,--enable-new-dtags -L/app/lib -Wl,-z,relro,-z,now -Wl,--as-needed    -rdynamic examples/contacts/CMakeFiles/contacts-example.dir/main.cpp.o examples/contacts/CMakeFiles/contacts-example.dir/mainwindow.cpp.o examples/contacts/CMakeFiles/contacts-example.dir/contacts-example_autogen/mocs_compilation.cpp.o  -o bin/contacts-example  -Wl,-rpath,/run/build/libkgapi/bin bin/libKPimGAPIContacts.so.5.10.2 /app/lib/libKF5Contacts.so.5.10.2 bin/libKPimGAPICore.so.5.10.2 /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5.56.0 /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.12.2 /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.12.2 /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12.2 && :
/usr/lib/gcc/x86_64-unknown-linux-gnu/8.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: warning: libaom.so.0, needed by /usr/lib/x86_64-linux-gnu/ffmpeg/lib/libavcodec.so.58, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-unknown-linux-gnu/8.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /usr/lib/x86_64-linux-gnu/ffmpeg/lib/libavcodec.so.58: undefined reference to `aom_codec_get_frame'
/usr/lib/gcc/x86_64-unknown-linux-gnu/8.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /usr/lib/x86_64-linux-gnu/ffmpeg/lib/libavformat.so.58: undefined reference to `fcntl64@GLIBC_2.28'
/usr/lib/gcc/x86_64-unknown-linux-gnu/8.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /usr/lib/x86_64-linux-gnu/ffmpeg/lib/libavcodec.so.58: undefined reference to `aom_codec_error'
/usr/lib/gcc/x86_64-unknown-linux-gnu/8.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /usr/lib/x86_64-linux-gnu/ffmpeg/lib/libavcodec.so.58: undefined reference to `aom_codec_av1_dx_algo'
/usr/lib/gcc/x86_64-unknown-linux-gnu/8.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /usr/lib/x86_64-linux-gnu/ffmpeg/lib/libavcodec.so.58: undefined reference to `aom_codec_version_str'
/usr/lib/gcc/x86_64-unknown-linux-gnu/8.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /usr/lib/x86_64-linux-gnu/ffmpeg/lib/libavcodec.so.58: undefined reference to `aom_codec_build_config'
/usr/lib/gcc/x86_64-unknown-linux-gnu/8.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /usr/lib/x86_64-linux-gnu/ffmpeg/lib/libavcodec.so.58: undefined reference to `aom_codec_destroy'
/usr/lib/gcc/x86_64-unknown-linux-gnu/8.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /usr/lib/x86_64-linux-gnu/ffmpeg/lib/libavcodec.so.58: undefined reference to `aom_codec_decode'
/usr/lib/gcc/x86_64-unknown-linux-gnu/8.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /usr/lib/x86_64-linux-gnu/ffmpeg/lib/libavcodec.so.58: undefined reference to `aom_codec_error_detail'
/usr/lib/gcc/x86_64-unknown-linux-gnu/8.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /usr/lib/x86_64-linux-gnu/ffmpeg/lib/libavcodec.so.58: undefined reference to `aom_codec_dec_init_ver'
collect2: error: ld returned 1 exit status
[219/221] Building CXX object src/tasks/CMakeFiles/KPimGAPITasks.dir/tasksservice.cpp.o
ninja: build stopped: subcommand failed.
Error: module libkgapi: Child process exited with code 1

There only appears to be a libaom.a

$ ls /usr/lib/x86_64-linux-gnu/libaom*
/usr/lib/x86_64-linux-gnu/libaom.a

is this a problem of the Sdk?

          ID: org.kde.Sdk
         Ref: runtime/org.kde.Sdk/x86_64/5.12
        Arch: x86_64
      Branch: 5.12
     License: GPL-2.0+
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 5.1 GB

      Commit: 14d07e4d60a64f3a41cf7566d3b8deba41e6d5376ca6f8e2ec3baace26751d95
      Parent: 366d65a1c3c80b23dbc374d639887fef20863bbee81a8af033a728ce8f38c960
     Subject: Include Qt Gamepad (1c98c5d7)
        Date: 2019-03-20 07:08:30 +0000
Erick555 commented 5 years ago

This is known problem. Developers are working on this.

detrout commented 5 years ago

Thanks for the pointer to the longer bug...

On March 30, 2019 8:43:26 AM PDT, Erick555 notifications@github.com wrote:

This is known problemhttps://gitlab.com/freedesktop-sdk/freedesktop-sdk/issues/709. Developers are working on this.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/flathub/org.kde.kontact/issues/29#issuecomment-478257507, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AA7gvvVy-f1d7Bk_y6W7IO-eQwStAdlbks5vb4YegaJpZM4cTLUH.

Erick555 commented 5 years ago

@detrout the fix was published on flathub. Everything should work after flatpak update.

detrout commented 5 years ago

Thanks for the heads up @erick555 It works now