Package Details: pocketsphinx 5prealpha-10

Git Clone URL: https://aur.archlinux.org/pocketsphinx.git (read-only, click to copy)
Package Base: pocketsphinx
Description: Lightweight speech recognition engine, specifically tuned for handheld and mobile devices, though it works equally well on the desktop.
Upstream URL: http://cmusphinx.sourceforge.net
Keywords: mobile recognition speech
Licenses: BSD
Submitter: None
Maintainer: Martchus
Last Packager: Martchus
Votes: 67
Popularity: 0.23
First Submitted: 2008-08-08 21:47
Last Updated: 2018-08-30 16:24

Pinned Comments

Martchus commented on 2020-01-19 12:15

All my packages are managed at GitHub where you can also contribute directly: https://github.com/Martchus/PKGBUILDs
There also exist a binary repository: https://wiki.archlinux.org/index.php/Unofficial_user_repositories#ownstuff

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

ackalker commented on 2013-11-06 08:17

Ahh I meant EXTRA_DIST in Makefile.am, not configure.in.

ackalker commented on 2013-11-06 08:12

@srf21c
This is a tricky one, (I bet you tried to run `make` from within the python directory :-) )
I'll try to explain:

The Makefile rule for building pocketsphinx.c is:

$(srcdir)/pocketsphinx.c: $(srcdir)/pocketsphinx.pyx $(srcdir)/pocketsphinx.pxd
cython -o $@ $< -I$(sphinxbase)/python

Now, from your log, it appears that the Make variable sphinxbase isn't set,
It only gets set if the configure script finds an unpacked and built (but not necessarily installed) sphinxbase source tree alongside pocketsphinx.

From the README:

"First, you *must* have SphinxBase, which you can download from
http://cmusphinx.sourceforge.net/. You should download and unpack it to
the same parent directory as PocketSphinx, so that the configure script
and project files can find it. On Windows, you will need to rename
'sphinxbase-X.Y' (where X.Y is the SphinxBase version number) to simply
'sphinxbase' for this to work."

This is why the files pocketsphinx.c, pocketsphinx.pyx, and pocketsphinx.pxd are specifically included in EXTRA_DIST in configure.in (and pocketsphinx.c is newer than both others), so make will normally decide not to rebuild pocketsphinx.c .

So, either unpack (and build!) sphinxbase alongside pocketsphinx, or simply use the provided pocketsphinx.c (but then again, it may have been generated by an older cython :-) ).

sysfu commented on 2013-11-06 03:53

@ackalker. I tried the fixed PKGBUILD you were kind of to link to but it's still failing to build on my system. Getting an a**whack of cython errors, log file here http://www.privatepaste.com/eea930330b

marcs commented on 2013-11-05 19:06

Thank you ackalker.

I've Updated the package to rel 2 with your suggestion.

ackalker commented on 2013-11-05 18:17

@srf21c
There is an easy fix for that (As mentioned on the forums and the 'net, CPPFLAGS is the culprit): in the build() function, under the "find -type f" lines, add the line:

sed -i '/cython/s/$(CPPFLAGS) //' python/Makefile.am

Link to fixed PKGBUILD: http://pastie.org/private/vh8dwy6gsldmmwr3bfmrka

sysfu commented on 2013-09-24 06:06

Build failing with this error:

make[1]: Entering directory `/home/user/Downloads/pocketsphinx/src/pocketsphinx-0.8/python'
cython -o pocketsphinx.c pocketsphinx.pyx -D_FORTIFY_SOURCE=2 -I/usr/include/python2.7 -I/usr/include/python2.7 -I/usr/include/sphinxbase -I/python
Unknown compiler flag: -D_FORTIFY_SOURCE=2
make[1]: *** [pocketsphinx.c] Error 1
make[1]: Leaving directory `/home/user/Downloads/pocketsphinx/src/pocketsphinx-0.8/python'
make: *** [all-recursive] Error 1
==> ERROR: A failure occurred in build().
Aborting...

marcs commented on 2013-01-02 02:08

Updated to the .8 version and checked with namcap.
I've added the dependency to sphinxbase >= .8 too for consistency, if there's a missing dependence is normal 'cause sphinxbase is still at version .7

chemist69 commented on 2011-03-30 19:11

Hi, I get the following error during the build process:
[...]
cython -o pocketsphinx.c pocketsphinx.pyx -I/usr/include/python2.7 -I/usr/include/python2.7 -I/usr/include/sphinxbase -I/python

Error compiling Cython file:
------------------------------------------------------------
...

cdef set_iter(NGramIter self, ngram_iter_t *itor)

cdef class HuffCode:
cdef huff_code_t *hc
cdef file fh
^
------------------------------------------------------------

sphinxbase.pxd:148:9: 'file' is not a type identifier

make[1]: *** [pocketsphinx.c] Error 1
make[1]: Leaving directory `/home/apl/builds/pocketsphinx/src/pocketsphinx-0.6.1/python'
make: *** [all-recursive] Error 1

chemist69 commented on 2011-03-30 17:55

Hi, I get the following error during the build process:
[...]
cython -o pocketsphinx.c pocketsphinx.pyx -I/usr/include/python2.7 -I/usr/include/python2.7 -I/usr/include/sphinxbase -I/python

Error compiling Cython file:
------------------------------------------------------------
...

cdef set_iter(NGramIter self, ngram_iter_t *itor)

cdef class HuffCode:
cdef huff_code_t *hc
cdef file fh
^
------------------------------------------------------------

sphinxbase.pxd:148:9: 'file' is not a type identifier

make[1]: *** [pocketsphinx.c] Error 1
make[1]: Leaving directory `/home/apl/builds/pocketsphinx/src/pocketsphinx-0.6.1/python'
make: *** [all-recursive] Error 1

td123 commented on 2010-11-26 03:50

I'll update this as soon as sphinxbase is fixed.