Install kaldi in cygwin

565 views
Skip to first unread message

Nartnarin Sumanungkul

unread,
Dec 6, 2017, 11:46:19 PM12/6/17
to kaldi-help
I install kaldi in cygwin according to this
(Windows 10 Education 64-bit on lenovo z510)
1.go to tools and make,it is success
2.go to src,i have problem in this step 
 $ ./configure  --static --static-fst=no

 Configuring ...
  Checking compiler g++ ...
  Checking OpenFst library in /home/KnightHawk/kaldi-trunk/tools/openfst ...
  ***configure failed: Dynamic libraries are not supported on this platform.
             Run configure with --static --static-fst=no flag. ***

3. So i go to windows and read INSTALL.atlas,INSTALL.md and INSTALL.mkl and I'm according INSTALL.atlas and i don't know what should i do next.

I just run project sre10 in step decode ( mfcc ,vad ,i-vector extractor and plda scoring),I have model which train in server and want to move it to cygwin and make example from java(netbean) call script from cygwin
What should i do to install it step by step,i'm so confused. thanks
If i write wrong grammar or wrong word,I am apologize for this

Daniel Povey

unread,
Dec 6, 2017, 11:51:58 PM12/6/17
to kaldi-help
I think maybe what it should say is --static-fst=yes
Try that- if it works I'll change what it prints.


--
Go to http://kaldi-asr.org/forums.html find out how to join
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+unsubscribe@googlegroups.com.
To post to this group, send email to kaldi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kaldi-help/a0c3f128-6832-4d8f-85c4-f123b7fbe222%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nartnarin Sumanungkul

unread,
Dec 7, 2017, 2:14:54 AM12/7/17
to kaldi-help
When i use 'yes'

Configuring ...
Checking compiler g++ ...
Checking OpenFst library in /home/KnightHawk/kaldi-trunk/tools/openfst ...
Doing OS specific configurations ...
On Cygwin: Checking for linear algebra libraries ...
Successfully configured for Cygwin with CLAPACK.
cc1plus: error: unknown pass auto-import specified in -fenable
make: *** [<builtin>: exp-test] Error 1
./configure: line 196: ./exp-test: No such file or directory
SUCCESS
To compile: make clean -j; make depend -j; make -j
 ... or e.g. -j 10, instead of -j, to use a specified number of CPUs

What is cc1plus: error: unknown pass auto-import specified in -fenable ,i can ignore it and make or not?

Nartnarin Sumanungkul

unread,
Dec 7, 2017, 2:56:28 AM12/7/17
to kaldi-help
I try to run make ,it has error


kaldi-math.cc: In function ‘int kaldi::Rand(kaldi::RandomState*)’:
kaldi-math.cc:50:33: error: ‘rand_r’ was not declared in this scope
     return rand_r(&(state->seed));
                                 ^
make[2]: *** [<builtin>: kaldi-math.o] Error 1
make[2]: Leaving directory '/home/KnightHawk/kaldi-trunk/src/base'
make[1]: *** [Makefile:142: base] Error 2
make[1]: Leaving directory '/home/KnightHawk/kaldi-trunk/src'
make: *** [Makefile:38: all] Error 2


Daniel Povey

unread,
Dec 7, 2017, 12:10:37 PM12/7/17
to kaldi-help
Hm.  It looks like on your version of cygwin, that function is not available.
The -fenable thing you can ignore, although we should fix it- if you can figure out a fix, please make a PR.

It may be necessary to use an #ifdef to declare an inline function to make rand_r just return rand().
However, last time I looked into it, testing for cygwin via ifdefs is not trivial.  See if there is a way to to it that consistently works.



--
Go to http://kaldi-asr.org/forums.html find out how to join
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+unsubscribe@googlegroups.com.
To post to this group, send email to kaldi...@googlegroups.com.

Nartnarin Sumanungkul

unread,
Dec 7, 2017, 10:12:00 PM12/7/17
to kaldi-help
I have a problem like him( https://groups.google.com/forum/?hl=th#!topic/kaldi-help/j7Dvp3U098Y )
When i change rand(),next problem like him
I will try another way.
Thank you so much.
regards,
Tong.

Daniel Povey

unread,
Dec 8, 2017, 1:09:48 AM12/8/17
to kaldi-help
Someone with more experience is going to have to help maintain Kaldi on Cygwin.  IIRC last time we tried we could not reproduce this problem.  If anyone wants to volunteer it would be helpful

--
Go to http://kaldi-asr.org/forums.html find out how to join
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+unsubscribe@googlegroups.com.
To post to this group, send email to kaldi...@googlegroups.com.
Message has been deleted

Madhavi Ratnagiri

unread,
Mar 8, 2018, 9:54:52 AM3/8/18
to kaldi-help
Were you able ever resolve this? I tried to install kaldi on Cygwin, but ran into the same issue with rand_r when running make in the src directory.


On Friday, December 8, 2017 at 1:09:48 AM UTC-5, Dan Povey wrote:
Someone with more experience is going to have to help maintain Kaldi on Cygwin.  IIRC last time we tried we could not reproduce this problem.  If anyone wants to volunteer it would be helpful
On Thu, Dec 7, 2017 at 10:12 PM, Nartnarin Sumanungkul <tongs...@gmail.com> wrote:
I have a problem like him( https://groups.google.com/forum/?hl=th#!topic/kaldi-help/j7Dvp3U098Y )
When i change rand(),next problem like him
I will try another way.
Thank you so much.
regards,
Tong.

--
Go to http://kaldi-asr.org/forums.html find out how to join
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.

To post to this group, send email to kaldi...@googlegroups.com.

Madhavi Ratnagiri

unread,
Mar 8, 2018, 9:56:48 AM3/8/18
to kaldi-help
On Thursday, March 8, 2018 at 9:54:52 AM UTC-5, Madhavi Ratnagiri wrote:
Were you able to resolve this? I tried to install kaldi on Cygwin, but ran into the same issue with rand_r when running make in the src directory.

Daniel Povey

unread,
Mar 8, 2018, 2:16:00 PM3/8/18
to kaldi-help
We haven't resolved this because IIRC we could not reproduce the problem in order to test a fix.  You could try the fixes described in that thread, and if you can get it working, please make a pull request on github.
It's mostly a question of changing #ifdefs appropriately.
Likely they changed cygwin so that _MSC_VER is no longer defined and you have to check for __CYGWIN__ being defined as well.

If anyone on the list has a Windows computer and can resolve this, it would be great.

Dan



To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+unsubscribe@googlegroups.com.

To post to this group, send email to kaldi...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages