IPB

Welcome Guest ( Log In | Register )

Compiling Musepack on Linux
polemon
post Jan 5 2011, 18:12
Post #1





Group: Members
Posts: 144
Joined: 1-April 09
Member No.: 68578



Hi, there isn't much documentation on how to get Musepack compiled under Linux.

I'd like to compile it myself, so I've downloaded the source packages:
  • Musepack SV8 libs & tools (r435)
  • libreplaygain (r453)
  • libcuefile (r453)

But I didn't get much further than that.

I did a autoreconf -vif and after running ./configure it seems to run through fine, expect for not finding replaygain.
When running make, I get the error that cuetools/cuefile.h is not found.

Now, I've downloaded both libs with their source codes, but what am I supposed to do with them? should I put them into the musepack_src_r435 directory?
libcuefile doesn't even have a Makefile, should I compile them with gcc manually?

Would be nice to see some better documentation on the build process, or packages that just need:
CODE
./configure
make
make install

In the end, I'd like the Musepack tools and their libs to be compiled and installed, along with libcuefile and libreplaygain.

Cheers,
--polemon


--------------------
-EOF-
Go to the top of the page
+Quote Post
 
Start new topic
Replies
XQYZ
post Jan 6 2011, 02:50
Post #2





Group: Members
Posts: 22
Joined: 12-May 10
Member No.: 80595



As I was trying to hint that's not how it's supposed to be done. Try this:
cd to the directory and then do a "cmake ."
Now cmake should produce a Makefile for you to use with "make && make install".
Go to the top of the page
+Quote Post
polemon
post Jan 6 2011, 03:35
Post #3





Group: Members
Posts: 144
Joined: 1-April 09
Member No.: 68578



QUOTE (XQYZ @ Jan 6 2011, 02:50) *
As I was trying to hint that's not how it's supposed to be done. Try this:
cd to the directory and then do a "cmake ."
Now cmake should produce a Makefile for you to use with "make && make install".


Problem is, there's obviously a bug:
When you run 'cmake .' inside the libcuefile directory, and then 'make && make install', it installs all but the include files.
This results in an error when you run cmake in musepack_src:
CODE
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUEFILE_INCLUDE_DIR
   used as include directory in directory /home/bereziak/make/musepack_src_r435/mpcchap

I tried setting CUEFILE_INCLUDE_DIR to the directory where I unpacked libcuefile, but to no avail.

To make things work, I manually copied the include directory of libcuefile into /usr/local/include.
Even after doing this, things still don't work as expected, since obviously the CMakeLists.txt in the subfolders of musepack_src are mostly broken.
The only thing that's being installed after running
CODE
cmake .
make
make install

is mpcenc, nothing else. No other binary, no libraries, and no includes.

Until those bugs are resolved, there's no point in using cmake, as it doesn't reliably create what I want. And to circumvent this, I might as well create it with conventional make.
Or maybe a combination, I'll post both solutions, probably. The important thing is, that the tools work as expected.


--------------------
-EOF-
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th September 2014 - 18:19