Comments (9)
Let's wait till we get some other comments on this.
@jtrmal ?
from kaldi.
That will solve problems for you, but will create problems for users that
do not have compiled portaudio against jack, I believe.
The correct solution would be, perhaps, use pkg-config? I'm not sure if we
can rely on its presence, though.
y.
On Fri, Oct 9, 2015 at 7:12 PM, Daniel Povey [email protected]
wrote:
Let's wait till we get some other comments on this.
@jtrmal https://github.com/jtrmal ?—
Reply to this email directly or view it on GitHub
#221 (comment).
from kaldi.
It's strange. The pkg-config for portaudio doesn't list -ljack as a dependency even when it was built with jack support (which is the default if libjack-dev installed). It only shows
$ pkg-config --libs ../../tools/portaudio/install/lib/pkgconfig/portaudio-2.0.pc
-L.../tools/portaudio/install/lib -lportaudio -lasound -lm -lpthread
So this doesn't solve the linker errors:
EXTRA_LDLIBS += $(shell pkg-config --libs ../../tools/portaudio/install/lib/pkgconfig/portaudio-2.0.pc)
Given the way the Makefile checks for alsa, here is a symmetric method for jack:
diff --git a/src/online/Makefile b/src/online/Makefile
index 4c0ad9f..3e1c7ca 100644
--- a/src/online/Makefile
+++ b/src/online/Makefile
@@ -22,6 +22,9 @@ ifeq ($(UNAME), Linux)
else
EXTRA_LDLIBS += -lrt
endif
+ ifneq ($(wildcard ../../tools/portaudio/install/include/pa_jack.h),)
+ EXTRA_LDLIBS += -ljack
+ endif
endif
There must be a better way however.
from kaldi.
Some time back I was struggling with this exact problem and the best solution I found at the time was to parse the portaudio libtool file after installation (tools/portaudio/lib/libportaudio.la) to figure out the library dependencies as well as linker flags on different platforms. The particular variables of interest are "dependency_libs" and "inherited_linker_flags".
from kaldi.
Looks like a portaudio bug. The configure.in doesn't say it needs -ljack in its pkg-config for unix even though it does for windows; it just needs a LIBS="$LIBS $JACK_LIBS". I have reported it to the portaudio developers.
For kaldi, my earlier diff is probably sufficient unless we want to switch to pkg-config.
from kaldi.
I'll put it as a comment in the Makefile for now.
Dan
On Fri, Oct 9, 2015 at 8:09 PM, dwks [email protected] wrote:
Looks like a portaudio bug. The configure.in doesn't say it needs -ljack
in its pkg-config for unix even though it does for windows; it just needs a
LIBS="$LIBS $JACK_LIBS". I have reported it to the portaudio developers.For kaldi, my earlier diff is probably sufficient unless we want to switch
to pkg-config.—
Reply to this email directly or view it on GitHub
#221 (comment).
from kaldi.
I meant this diff which should be safe.
+ ifneq ($(wildcard ../../tools/portaudio/install/include/pa_jack.h),)
+ EXTRA_LDLIBS += -ljack
+ endif
from kaldi.
Ok, I'll add that, thanks.
On Fri, Oct 9, 2015 at 8:29 PM, dwks [email protected] wrote:
I meant this diff which should be safe.
- ifneq ($(wildcard ../../tools/portaudio/install/include/pa_jack.h),)
- EXTRA_LDLIBS += -ljack
- endif
—
Reply to this email directly or view it on GitHub
#221 (comment).
from kaldi.
The portaudio folks don't seem to be fixing this right away. Let's just stick with what we already have. Closing the issue.
from kaldi.
Related Issues (20)
- When the following situations occur, the memory will increase HOT 3
- Request for prebuilt Android APK demonstrating capabilities HOT 2
- Is that OK to use Openfst 1.8.1 in Kaldi's latest version? HOT 3
- Chain alignments used for training HOT 1
- Error when build docker GPU image ubuntu22.04-cuda12.2.0
- ReadDecodeGraph():onlinebin-util.cc:52) Error reading FST (after reading header).
- kaldi uses the C++17 feature while compiling in the C++14 mode
- Please tag the repository with the version
- AMI download manifest and license, files do not exist HOT 2
- Error while building docker image: install_mkl.sh
- Seeking Guidance on Custom Urdu ASR Training Data and Vocabulary Expansion
- KaldiFatalError
- NO_PUBKEY on intell error HOT 1
- The `Resize` function doesn't change `stride_` if resize_type == kSetZero and `rows == MatrixBase<Real>::num_rows_ && cols == MatrixBase<Real>::num_cols_`.
- Integrate ZLUDA for AMD CUDA HOT 1
- issue with install_klm.sh HOT 2
- utils/validate_data_dir.sh: Error: in data/train_shorter, recording-ids extracted from wav.scp and reco2dur file
- ./install_mkl.sh error: HOT 1
- windows cuda 12.1 nvtools are no longer part of cuda installer HOT 4
- sh extras/check_dependencies.sh HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kaldi.