Package Details: subtitlecomposer 0.6.4-1

Git Clone URL: https://aur.archlinux.org/subtitlecomposer.git (read-only)
Package Base: subtitlecomposer
Description: A KDE subtitle editor
Upstream URL: https://github.com/maxrd2/subtitlecomposer
Keywords: composer editor kde subtitle
Licenses: GPL
Submitter: Martchus
Maintainer: Martchus (maxrd2)
Last Packager: Martchus
Votes: 10
Popularity: 1.264467
First Submitted: 2015-09-02 23:50
Last Updated: 2016-05-07 20:00

Pinned Comments

Martchus commented on 2016-05-18 21:59

All my packages are managed at GitHub where you can also contribute directly: https://github.com/Martchus/PKGBUILDs
There also exist a binary repository (i686 and x86_64, also contains Git version): https://martchus.no-ip.biz/repo/arch/ownstuff

Latest Comments

Martchus commented on 2016-05-18 21:59

All my packages are managed at GitHub where you can also contribute directly: https://github.com/Martchus/PKGBUILDs
There also exist a binary repository (i686 and x86_64, also contains Git version): https://martchus.no-ip.biz/repo/arch/ownstuff

Martchus commented on 2016-05-10 20:56

Just to not confuse people which haven't read the last comments, I'm referring to this version of the PKGBUILD: https://github.com/Martchus/PKGBUILDs/blob/master/subtitlecomposer/default/PKGBUILD

allum: I added pocketsphinx as optional dependency. However, to be able to build the plugin, pocketsphinx must be available at build time. There is no way around it. If you comment the pocketsphinx make-dependency out, you should also out comment the optional dependency for pocketsphinx because in the case the pocketsphinx hasn't been built and hence the package can not make use of pocketsphinx afterwards. That's actually the reason why you got the error message in the first place. I also mentioned this in the comments I've added to the PKGBUILD file itself. The version in my binary repo does not have the pocketsphinx optdep yet (just the make dep and hence the plugin is available), because I forgot to add it and I don't think it is worth to rebuild it (it will be rebuild soon enough when the next version is released).

Actually, pocketsphinx does not take long to build so it isn't an "annoying dependency" anyways. The problem is just that the version which is currently available in the AUR doesn't build. I already posted my fixed versions in the comment sections of sphinxbase and pocketsphinx, so the maintainer can fix it.

alium commented on 2016-05-10 19:54

@Martchus:
can you make pocketsphinx as optional and no as 'hard' dependencies?

Martchus commented on 2016-05-10 16:14

I fixed the AUR package for sphinxbase and pocketsphinx and added it as make dependency so the plugin will be build.

You can find the updated packages (sphinxbase, pocketsphinx, subtitlecomposer and subtitlecomposer-git) here: https://github.com/Martchus/PKGBUILDs

However, I don't think it makes sense to update the subtitlecomposer package here until the issues in the pocketsphinx and sphinxbase packages are fixed. Otherwise I'll probably get complaints that the package is not building.

If you don't want to build everything on your own, you can also use my binary repository (i686, x86_64): http://martchus.no-ip.biz/website/page.php?name=programming

Martchus commented on 2016-05-10 14:10

There is currently no package for pocketsphinx available in the official repositories. Last time I tried to build the version from the AUR it didn't work. That's why I didn't add pocketsphinx to the dependencies.

If you want to build the pocketsphinx plugin, add pocketsphinx to the dependencies and try to build it (eg. from the AUR) before. (You also need to build sphinxbase before.)

alium commented on 2016-05-10 13:57

Can not build - missing "pocketsphinx":

Package pocketsphinx was not found in the pkg-config search path.
Perhaps you should add the directory containing `pocketsphinx.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pocketsphinx' found
CMake Warning at src/speechplugins/CMakeLists.txt:12 (message):
PocketSphinx not found - Speech plugin will not be built


-- Configuring incomplete, errors occurred!

notargets commented on 2016-04-13 15:47

Thank you for the advice! Removing PocketSphinx worked, indeed.

PocketSphinx was installed from the official repos of Manjaro Linux, which is currently outdated. I'll try with the AUR package next time.

Martchus commented on 2016-04-13 12:08

I just changed the pkgver in the last update (rebuilding is required because of ICU update).

You might try to build it without the PocketSphinx plug-in. If you need it, ensure you have the latest version installed.

notargets commented on 2016-04-13 12:01

When trying to update from 0.6.3-1 to 0.6.3-2, compilation fails towards the end. Here is the terminal output I get:

[ 97%] Building CXX object src/speechplugins/pocketsphinx/CMakeFiles/pocketsphinxasr.dir/pocketsphinxplugin.cpp.o
/tmp/yaourt-tmp-xxx/aur-subtitlecomposer/src/subtitlecomposer-0.6.3/src/speechplugins/pocketsphinx/pocketsphinxplugin.cpp: In member function ‘void SubtitleComposer::PocketSphinxPlugin::processUtterance()’:
/tmp/yaourt-tmp-xxx/aur-subtitlecomposer/src/subtitlecomposer-0.6.3/src/speechplugins/pocketsphinx/pocketsphinxplugin.cpp:95:42: error: too few arguments to function ‘ps_seg_t* ps_seg_iter(ps_decoder_t*, int32*)’
ps_seg_t *iter = ps_seg_iter(m_psDecoder);
^
In file included from /tmp/yaourt-tmp-xxx/aur-subtitlecomposer/src/subtitlecomposer-0.6.3/src/speechplugins/pocketsphinx/pocketsphinxplugin.cpp:25:0:
/usr/include/pocketsphinx/pocketsphinx.h:462:11: note: declared here
ps_seg_t *ps_seg_iter(ps_decoder_t *ps, int32 *out_best_score);
^
src/speechplugins/pocketsphinx/CMakeFiles/pocketsphinxasr.dir/build.make:62: recipe for target 'src/speechplugins/pocketsphinx/CMakeFiles/pocketsphinxasr.dir/pocketsphinxplugin.cpp.o' failed
make[2]: *** [src/speechplugins/pocketsphinx/CMakeFiles/pocketsphinxasr.dir/pocketsphinxplugin.cpp.o] Error 1
CMakeFiles/Makefile2:2469: recipe for target 'src/speechplugins/pocketsphinx/CMakeFiles/pocketsphinxasr.dir/all' failed
make[1]: *** [src/speechplugins/pocketsphinx/CMakeFiles/pocketsphinxasr.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Martchus commented on 2016-02-07 21:09

It seems like dependencies for the backends MVP, Xine and gstreamer must be present at compile time. Hence I added these optional dependencies to the regular deps. Read the comment in the PKGBUILD file. I enabled Xine and gstreamer and disabled MVP by default.

Currently I wouldn't recommend to use the binary repository noted in the PKGBUILD file as the dependencies of this binary package doesn't match what really is required by the new version. (See the comment below for my own repository.)

EDIT: This is no longer valid since release 0.6.0. gstreamer is now always required. The other backends are now pluggable. Of course Xine/MPV must be present to build the plugins in the first place.

All comments