AdolfVonKleist / Phonetisaurus

Phonetisaurus G2P
BSD 3-Clause "New" or "Revised" License
454 stars 122 forks source link

Can't specify openfst path #33

Closed smolendawid closed 7 years ago

smolendawid commented 7 years ago

I compiled OpenFST with Kaldi toolkit with proper flags --enable-static --enable-shared --enable-far --enable-ngram-fsts

Now I would like to specify proper paths for openfst while running ./configure

./configure --with-openfst-includes /home/myname/kaldi/tools/openfst/include/fst --with-openfst-libs /home/myname/kaldi/tools/openfst/bin

However I got error

checking build system type... Invalid configuration /home/myname/kaldi/tools/openfst/include': machine/home/myname/kaldi/tools/openfst/include' not recognized configure: error: /bin/bash .autoconf/config.sub /home/myname/kaldi/tools/openfst/include failed

What am I doing wrong?

AdolfVonKleist commented 7 years ago

You probably need to use = to link the params and values:

$ ./configure \
       --with-openfst-includes=/home/myname/kaldi/tools/openfst/include/fst \
       --with-openfst-libs=/home/myname/kaldi/tools/openfst/bin

also, while it might be possible since I don't know anything about your OpenFst configuration, it seems unlikely that the OpenFst libs are in /home/.../openfst/bin, probably /home/.../openfst/lib.