{"action":"created","issue":{"url":"https://api.github.com/repos/xylosper/bomi/issues/458","repository_url":"https://api.github.com/repos/xylosper/bomi","labels_url":"https://api.github.com/repos/xylosper/bomi/issues/458/labels{/name}","comments_url":"https://api.github.com/repos/xylosper/bomi/issues/458/comments","events_url":"https://api.github.com/repos/xylosper/bomi/issues/458/events","html_url":"https://github.com/xylosper/bomi/issues/458","id":137441914,"number":458,"title":"Fails to build using arch AUR","user":{"login":"lolihunter","id":11342504,"avatar_url":"https://avatars.githubusercontent.com/u/11342504?v=3","gravatar_id":"","url":"https://api.github.com/users/lolihunter","html_url":"https://github.com/lolihunter","followers_url":"https://api.github.com/users/lolihunter/followers","following_url":"https://api.github.com/users/lolihunter/following{/other_user}","gists_url":"https://api.github.com/users/lolihunter/gists{/gist_id}","starred_url":"https://api.github.com/users/lolihunter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lolihunter/subscriptions","organizations_url":"https://api.github.com/users/lolihunter/orgs","repos_url":"https://api.github.com/users/lolihunter/repos","events_url":"https://api.github.com/users/lolihunter/events{/privacy}","received_events_url":"https://api.github.com/users/lolihunter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-03-01T02:01:46Z","updated_at":"2016-10-16T12:49:07Z","closed_at":null,"body":"the x86_64 build of bomi is currently failing to build on Arch. Not sure what package has changed to effect this.\r\n\r\nHere is the output when building:\r\n\r\n`(...snip...)\r\nlogoption.o release/release/moc_logviewer.o release/release/moc_os.o release/release/moc_formatobject.o release/release/moc_checklistwidget.o release/release/moc_videocolordialog.o release/release/moc_algorithmobject.o release/release/moc_mrlstate_old.o release/release/moc_smbauth.o release/release/moc_fontcombobox.o release/release/moc_jrserver.o release/release/moc_windowsize.o release/release/moc_videopreview.o release/release/moc_triangleitem.o release/release/moc_visualizer.o release/release/moc_encoderdialog.o -L/tmp/byggeplass/bomi/src/bomi-0.9.11/src/bomi/../../build/lib -lbz2 -lz /tmp/byggeplass/bomi/src/bomi-0.9.11/build/lib/libmpv.a -lavformat -lavutil -lavcodec -lswscale -lswresample -lavfilter -lass -ldvdread -ldvdnav -lbluray -lchardet -lgobject-2.0 -lglib-2.0 -lxcb-icccm -lxcb-screensaver -lxcb-randr -lxcb-render -lxcb-xtest -lxcb -lX11 -lasound -ljack -lpulse -lcdio_paranoia -lcdio_cdda -lcdio -lm -lsmbclient -lsystemd -lvdpau -lva-glx -lva-x11 -lva -ldl -lQt5Quick -lQt5Svg -lQt5Widgets -lQt5X11Extras -lQt5Gui -lQt5Qml -lQt5Network -lQt5Sql -lQt5Xml -lQt5DBus -lQt5Core -lGL -lpthread \r\ng++: error: /tmp/byggeplass/bomi/src/bomi-0.9.11/build/lib/libmpv.a: No such file or directory\r\nMakefile.Release:1265: recipe for target '../../build/bomi' failed\r\nmake[2]: *** [../../build/bomi] Error 1\r\nmake[2]: Leaving directory '/tmp/byggeplass/bomi/src/bomi-0.9.11/src/bomi'\r\nMakefile:38: recipe for target 'release' failed\r\nmake[1]: *** [release] Error 2\r\nmake[1]: Leaving directory '/tmp/byggeplass/bomi/src/bomi-0.9.11/src/bomi'\r\nMakefile:40: recipe for target 'build/build/bomi/bomi' failed\r\nmake: *** [build/build/bomi/bomi] Error 2\r\n==> ERROR: A failure occurred in build().\r\nAborting...\r\n`"},"comment":{"url":"https://api.github.com/repos/xylosper/bomi/issues/comments/254045067","html_url":"https://github.com/xylosper/bomi/issues/458#issuecomment-254045067","issue_url":"https://api.github.com/repos/xylosper/bomi/issues/458","id":254045067,"user":{"login":"Kagami","id":533383,"avatar_url":"https://avatars.githubusercontent.com/u/533383?v=3","gravatar_id":"","url":"https://api.github.com/users/Kagami","html_url":"https://github.com/Kagami","followers_url":"https://api.github.com/users/Kagami/followers","following_url":"https://api.github.com/users/Kagami/following{/other_user}","gists_url":"https://api.github.com/users/Kagami/gists{/gist_id}","starred_url":"https://api.github.com/users/Kagami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kagami/subscriptions","organizations_url":"https://api.github.com/users/Kagami/orgs","repos_url":"https://api.github.com/users/Kagami/repos","events_url":"https://api.github.com/users/Kagami/events{/privacy}","received_events_url":"https://api.github.com/users/Kagami/received_events","type":"User","site_admin":false},"created_at":"2016-10-16T12:49:07Z","updated_at":"2016-10-16T12:49:07Z","body":"### How to build latest bomi with latest Qt with latest ffmpeg with system gcc <5 on Gentoo\r\n\r\nTook me about half of hour to figure it out.\r\n\r\n#### Build in-tree chardet\r\n\r\n```bash\r\n./download-libchardet && ./build-libchardet\r\n```\r\n\r\n#### Apply 3 patches\r\n\r\nUse 5.3.0 version of linker:\r\n\r\n```patch\r\ndiff --git a/src/bomi/bomi.pro b/src/bomi/bomi.pro\r\nindex f39c307..194b19a 100644\r\n--- a/src/bomi/bomi.pro\r\n+++ b/src/bomi/bomi.pro\r\n@@ -10,6 +10,7 @@ DESTDIR = $${PWD}/../../build\r\n LIB_DIR = $${DESTDIR}/lib\r\n INCLUDEPATH += ../mpv ../mpv/build kiss_fft\r\n LIBS += -L$${LIB_DIR} -lbz2 -lz\r\n+QMAKE_LINK = g++-5.3.0\r\n \r\n include(configure.pro)\r\n !isEmpty(BOMI_RELEASE) {\r\n```\r\n\r\nFix mpv compilation (credits: @fusion809):\r\n\r\n```patch\r\ndiff --git a/src/mpv/audio/filter/af_lavcac3enc.c b/src/mpv/audio/filter/af_lavcac3enc.c\r\nindex 5695bfd..4d2abca 100644\r\n--- a/src/mpv/audio/filter/af_lavcac3enc.c\r\n+++ b/src/mpv/audio/filter/af_lavcac3enc.c\r\n@@ -26,7 +26,6 @@\r\n #include <assert.h>\r\n \r\n #include <libavcodec/avcodec.h>\r\n-#include <libavutil/audioconvert.h>\r\n #include <libavutil/intreadwrite.h>\r\n #include <libavutil/common.h>\r\n #include <libavutil/bswap.h>\r\ndiff --git a/src/mpv/audio/filter/af_lavrresample.c b/src/mpv/audio/filter/af_lavrresample.c\r\nindex 265fa4b..83b5505 100644\r\n--- a/src/mpv/audio/filter/af_lavrresample.c\r\n+++ b/src/mpv/audio/filter/af_lavrresample.c\r\n@@ -28,7 +28,6 @@\r\n #include <assert.h>\r\n \r\n #include <libavutil/opt.h>\r\n-#include <libavutil/audioconvert.h>\r\n #include <libavutil/common.h>\r\n #include <libavutil/samplefmt.h>\r\n #include <libavutil/mathematics.h>\r\ndiff --git a/src/mpv/audio/out/ao_lavc.c b/src/mpv/audio/out/ao_lavc.c\r\nindex b322982..16ff8c1 100644\r\n--- a/src/mpv/audio/out/ao_lavc.c\r\n+++ b/src/mpv/audio/out/ao_lavc.c\r\n@@ -25,7 +25,6 @@\r\n #include <limits.h>\r\n \r\n #include <libavutil/common.h>\r\n-#include <libavutil/audioconvert.h>\r\n \r\n #include \"config.h\"\r\n #include \"options/options.h\"\r\n```\r\n\r\nFix for latest Qt (credits: @david-geiger):\r\n\r\n```patch \r\ndiff -Nru a/src/bomi/misc/filenamegenerator.hpp b/src/bomi/misc/filenamegenerator.hpp\r\n--- a/src/bomi/misc/filenamegenerator.hpp\t2015-05-20 11:31:58.000000000 +0200\r\n+++ b/src/bomi/misc/filenamegenerator.hpp\t2016-03-16 08:13:54.000000000 +0100\r\n@@ -11,7 +11,7 @@\r\n     QTime start, end;\r\n     QString mediaName;\r\n     Mrl mrl;\r\n-    quint64 unix = 0;\r\n+    quint64 UNIX = 0;\r\n };\r\n \r\n #endif // FILENAMEGENERATOR_HPP\r\ndiff -Nru a/src/bomi/misc/filenamegenerator.cpp b/src/bomi/misc/filenamegenerator.cpp\r\n--- a/src/bomi/misc/filenamegenerator.cpp\t2015-05-20 11:31:58.000000000 +0200\r\n+++ b/src/bomi/misc/filenamegenerator.cpp\t2016-03-16 08:56:18.000000000 +0100\r\n@@ -51,8 +51,8 @@\r\n         };\r\n         get[u\"%MEDIA_DISPLAY_NAME%\"_q] = [] (const FileNameGenerator *g) { return g->mediaName; };\r\n \r\n-        get[u\"%UNIX%\"_q]     = [] (const FileNameGenerator *g) { return _N(g->unix / 1000llu); };\r\n-        get[u\"%UNIX_MS%\"_q]  = [] (const FileNameGenerator *g) { return _N(g->unix); };\r\n+        get[u\"%UNIX%\"_q]     = [] (const FileNameGenerator *g) { return _N(g->UNIX / 1000llu); };\r\n+        get[u\"%UNIX_MS%\"_q]  = [] (const FileNameGenerator *g) { return _N(g->UNIX); };\r\n         return get;\r\n     }();\r\n     auto ret = func.value(ph);\r\ndiff -Nru a/src/bomi/player/mainwindow_p.hpp b/src/bomi/player/mainwindow_p.hpp\r\n--- a/src/bomi/player/mainwindow_p.hpp\t2015-05-20 11:31:58.000000000 +0200\r\n+++ b/src/bomi/player/mainwindow_p.hpp\t2016-03-16 08:21:01.000000000 +0100\r\n@@ -101,7 +101,7 @@\r\n \r\n     struct {\r\n         QDate date; QTime time, position;\r\n-        quint64 unix = 0;\r\n+        quint64 UNIX = 0;\r\n         QMap<QString, std::function<QString(void)>> get;\r\n     } ph;\r\n     QTimer waiter, hider, dialogWorkaround;\r\ndiff -Nru a/src/bomi/player/mainwindow_p.cpp b/src/bomi/player/mainwindow_p.cpp\r\n--- a/src/bomi/player/mainwindow_p.cpp\t2015-05-20 11:31:58.000000000 +0200\r\n+++ b/src/bomi/player/mainwindow_p.cpp\t2016-03-16 08:26:51.000000000 +0100\r\n@@ -910,7 +910,7 @@\r\n     g.dateTime = QDateTime::currentDateTime();\r\n     g.start = QTime::fromMSecsSinceStartOfDay(e.time());\r\n     g.end = end.isNull() ? g.start : end;\r\n-    g.unix = QDateTime::currentMSecsSinceEpoch();\r\n+    g.UNIX = QDateTime::currentMSecsSinceEpoch();\r\n     g.mrl = e.mrl();\r\n     g.mediaName = e.media()->name();\r\n     return g;\r\ndiff -Nru a/src/bomi/dialog/encoderdialog.cpp b/src/bomi/dialog/encoderdialog.cp\r\n--- a/src/bomi/dialog/encoderdialog.cpp\t2015-05-20 11:31:58.000000000 +0200\r\n+++ b/src/bomi/dialog/encoderdialog.cpp\t2016-03-16 08:34:11.000000000 +0100\r\n@@ -255,7 +255,7 @@\r\n {\r\n     if (d->size.isEmpty())\r\n         return tr(\"No video stream exists.\");\r\n-    d->g.unix = QDateTime::currentMSecsSinceEpoch();\r\n+    d->g.UNIX = QDateTime::currentMSecsSinceEpoch();\r\n     d->g.dateTime = QDateTime::currentDateTime();\r\n     d->g.start = d->ui.a->time();\r\n     d->g.end = d->ui.b->time();\r\n \r\n```\r\n\r\n#### Use the following configure flags\r\n\r\n```bash\r\n./configure --qtsdk=/usr/lib/qt5 --cc=gcc-5.3.0\r\n```"}}
{"actor":{"display_login":"Kagami"}}