Open lsonnino opened 2 years ago
After compiling the code on a Linux machine, I see the same warning except it is not turned into an error. macOS seems to add the flag -Werror
by itself (maybe because of Clang ?). Any idea ?
Hmm, enabling -Werror
by default is not a good look, but on the other hand, not enabling -Wall
isn't either, which would have allowed us to catch these things...
It seems to be a compiler default as it isn't on the command-line. Since GitHub lets you run actions on Mac OS X, I may be able to test this without shelling out thousands of dollars for an unreliable computer with a glowing piece of fruit on it :) but in the meantime I'll try to get the warning flags standardized, which is suprisingly difficult to do with Autotools...
I am unable to compile the code on macOS 12.1 Monterey. After running
./configure
, themake
commands fails:I have both Perl v5.30.3 (which is installed by default on macOS) and Python 3.9.7 installed. I also installed the latest version (5-prealpha) of sphinxbase and pocketsphinx through code compilation (
sudo make install
) and I have the compiled source code of both in folders namedsphinxbase
andpocketsphinx
respectively in the same parent folder as mysphinxtrain
folder I am trying to compile. (The absolute path to those folders does not contain any spaces, as this seem to be an issue as well.)Finally, adding
#include <sphinxbase/strfuncs.h>
tosrc/libs/libcommon/lexicon.c
andsrc/libs/libcommon/mk_phone_seq.c
seems to solve the problem, however another error occurs:I suppose adding another include would solve this problem as well but I guess this is not the way to do it. Am I missing something ?