开发者

How can I compile libsndfile under ubuntu 11.04?

How can I compile libsndfi开发者_如何学Pythonle under ubuntu 11.04 ?

Should I use g++ or something?


sudo apt-get build-dep  libsndfile
apt-get source libsndfile

Will install all required dependencies for building, then (the second line) will fetch you a buildable source tree and unpack it. You can then build it using:

cd libsndfile
dpkg-buildpackage

Or instead of ALL that you can just install it if you don't need to fiddle with sources:

sudo apt-get install libsndfile

you may also want libsndfile-dev, depending on what you're doing with that library (see apt-cache show libsndfile-dev)


Unzip the archive to a directory, switch into that directory, type

 ./configure
 make
 make install

Or the easiest way to do get the binaries (if you don't need any special configuring for your particular set up) is to get it via the Ubuntu magic program getter (look under system files for the library). That way it will also get the dependencies for you, I believe.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜