-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
Labels
Description
Hi,
Currently I am trying to compile online2-tcp-nnet3-decode-faster.cc
and create an static library. I tried following the command ./configure --static
inside src
folder but it didn't create any static library. I tried to do this by myself based on this script below that I got from the makefile:
(this code below build a executable)
g++ -g online2-tcp-nnet3-decode-faster.o ../online2/kaldi-online2.a ../ivector/kaldi-ivector.a ../nnet3/kaldi-nnet3.a ../chain/kaldi-chain.a ../nnet2/kaldi-nnet2.a ../cudamatrix/kaldi-cudamatrix.a ../decoder/kaldi-decoder.a ../lat/kaldi-lat.a ../fstext/kaldi-fstext.a ../hmm/kaldi-hmm.a ../feat/kaldi-feat.a ../transform/kaldi-transform.a ../gmm/kaldi-gmm.a ../tree/kaldi-tree.a ../util/kaldi-util.a ../matrix/kaldi-matrix.a ../base/kaldi-base.a ../kaldi/tools/openfst-1.6.7/lib/libfst.a -framework Accelerate -lm -lpthread -ldl -o online2-tcp-nnet3-decode-faster
I got all the static libraries and tried to create a new big object file, it wasn't sucessful and very boring to do.
What you guys recommend? I need something that let me only import a header and link the library easily.
Thank you.