Stable: 2.4.3
Development: 2.5.0-alpha3
Any succesfull build on Darwin/OS-X?
Hi,
I am tring to build Moc 2.4.3 on my Intel MacBook, but the configure script exits after checking for iconv:
checking for iconv.h... yes
checking for iconv_open()... no
configure: error: No iconv library found.
I am almost sure that I have installed all the required dependencies via fink (a package manager for OS-X/Darwin) and I am building with the env:
CFLAGS=-I/sw/include
LDFLAGS=-L/sw/lib
CXXFLAGS=$CFLAGS
CPPFLAGS=$CXXFLAGS
as I have installed many libs using fink which puts everithing in /sw. As for iconv I have libiconv-1.11 and text-iconv-pm586-1.4 installed (I think that the latter is not needed...). gettext version is 0.10. I have rebuilt both twice to avoid the known circular dependencies problem, so they should work...
I don't knwo what to do now. Is there a way to build without iconv support or is there a way to make the automake chain be aware of my iconv lib?
Thanks in advance.
It works!
To recap, here's what I did:
-Install JackOSX version 0.75.
-Download the moc sources and change 'sound_params->format != SFMT_FLOAT' to '! ( sound_params->format & SFMT_FLOAT )' in jack.c
-Change the configure script so that it doesn't use the -export-dynamic flag when checking for required packages. There's probably a better way of doing this, but I commented out the 'LDFLAGS= "$LDFLAGS -export-dynamic"' line in configure and then manually added -export-dynamic to the Makefile's LDFLAGS after I ran configure.
I followed these steps
I followed these steps and configure generates a makefile, but when I try to compile I get this error:
Try adding --without-jack to
Try adding
--without-jackto the configure parameters if you don't need JACK.--
Damian Pietras - MOC developer
Thanks for your reply, but I
Thanks for your reply, but I do need JACK unless there is some other sound driver that works with OS X. There is liboss in macports, but I don't know howto configure moc with it.
I got moc to compile by
I got moc to compile by changing
LDFLAGS="$LDFLAGS -export-dynamic"
to
LDFLAGS="$LDFLAGS ${export_dynamic_flag}
in the configure script. I still haven't figured out how to get it to run though; I get the message "dyld: lazy symbol binding failed: Symbol not found: _options_get_str".
I got rid of the "Symbol not
I got rid of the "Symbol not found" error by adding -export-dynamic to the LDFLAGS in the Makefile after running configure.
Now I'm getting the error "No valid sound driver". I assume that means that I have to install JACK; are there any other options on OS X?
After installing JACK I can
After installing JACK I can now run mocp, but when I try to play an ogg vorbis file I get the error "Unsupported file format: float little-endian (native)".
I changed the line if
I changed the line
if (sound_params->fmt != SFMT_FLOAT) {
to
if (!(sound_params->fmt & SFMT_FLOAT)) {
in jack.c and moc appears to be playing right now. (I can't be sure since I'm using the jack dummy driver because I haven't gotten the coreaudio one to work yet.) Make sure that you set the jack sample rate to match the sample rate of your music files.
There is a known bug in MOC
There is a known bug in MOC with this. MOC uses -export-dynamic gcc flag which is not understood by the compiler on OS-X. I don't know a solution. The problem is not related to any library, even if you have all required libraries you won't compile MOC :(
--
Damian Pietras - MOC developer
Thanks for the reply. I have
Thanks for the reply. I have tried building with the gcc-4.2 from the fink project, but it's useless: it's like building with the standard gcc-4.0 which is the dafault in OS-X 10.4... this is strange because this should be the standard gcc compiler and, according to its man pages, should support -export-dynamic. Maybe I need to rebuild everithing with this compiler...
mhh... that's a pitty
mhh... that's a pitty :(.
Are there any alternative players you can use? I mean mplayer oder qtplay don't provide the same useability. Hmmh... is there no possible option to make an OS X build and to provide the binary?