Discussion:
[Lmms-users] How to build LMMS master with libsndfile from HomeBrew on OS X(yosemite)
NISHINO Toru
2015-08-12 09:30:53 UTC
Permalink
I want to use LMMS with KORG's microKEY-25 on OS X (yosemite).

I read ​https://github.com/LMMS/lmms/pull/2228 <https://github.com/LMMS/lmms/pull/2228> yesterday and I tried to build LMMS from zip archive at ​https://github.com/LMMS/lmms <https://github.com/LMMS/lmms>.

cmake 3.3.0, Qt 4.8.7 and libsndfile 1.0.25 are installed from Homebrew.

I tried the following steps according to INSTALL, but failed with the message "package 'sndfile>=1.0.11' not found", but I believe sndfile 1.0.25 is installed properly, and symbolic link (/usr/local/include/ -> /usr/local/Cellar/libsndfile/1.0.25/include) is correct.

Please tell me how to fix this problem.

Thank you very much.


MBA$: unzip lmms-master.zip
MBA$: cd lmms-master
MBA$:lmms-master$ mkdir build
MBA$:lmms-master$ cd build
MBA$:build$ cmake --version
cmake version 3.3.0

MBA$:build$ cmake ../
-- The C compiler identification is AppleClang 6.1.0.6020053
-- The CXX compiler identification is AppleClang 6.1.0.6020053
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
PROCESSOR: x86_64
Machine: x86_64-apple-darwin14.4.0
-- Target host is 64 bit
-- Found Qt4: /usr/local/bin/qmake (found suitable version "4.8.7", minimum required is "4.6.0;COMPONENTS;QtCore;QtGui;QtXml")
-- Found Qt translations in /usr/local/Cellar/qt/4.8.6/translations
-- checking for module 'sndfile>=1.0.11'
-- package 'sndfile>=1.0.11' not found
CMake Error at /usr/local/Cellar/cmake/3.3.0/share/cmake/Modules/FindPkgConfig.cmake:340 (message):
A required package was not found
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.3.0/share/cmake/Modules/FindPkgConfig.cmake:502 (_pkg_check_modules_internal)
CMakeLists.txt:146 (PKG_CHECK_MODULES)


-- Configuring incomplete, errors occurred!
See also "/Users/toru/Downloads/lmms-master/build/CMakeFiles/CMakeOutput.log".
See also "/Users/toru/Downloads/lmms-master/build/CMakeFiles/CMakeError.log".

(end of the output of ccmake command)
installed status is as follows:
MBA$:build$ brew list libsndfile
/usr/local/Cellar/libsndfile/1.0.25/bin/sndfile-cmp
/usr/local/Cellar/libsndfile/1.0.25/bin/sndfile-concat
/usr/local/Cellar/libsndfile/1.0.25/bin/sndfile-convert
/usr/local/Cellar/libsndfile/1.0.25/bin/sndfile-deinterleave
/usr/local/Cellar/libsndfile/1.0.25/bin/sndfile-info
/usr/local/Cellar/libsndfile/1.0.25/bin/sndfile-interleave
/usr/local/Cellar/libsndfile/1.0.25/bin/sndfile-metadata-get
/usr/local/Cellar/libsndfile/1.0.25/bin/sndfile-metadata-set
/usr/local/Cellar/libsndfile/1.0.25/bin/sndfile-play
/usr/local/Cellar/libsndfile/1.0.25/bin/sndfile-regtest
/usr/local/Cellar/libsndfile/1.0.25/bin/sndfile-salvage
/usr/local/Cellar/libsndfile/1.0.25/include/ (2 files)
/usr/local/Cellar/libsndfile/1.0.25/lib/libsndfile.1.dylib
/usr/local/Cellar/libsndfile/1.0.25/lib/pkgconfig/sndfile.pc
/usr/local/Cellar/libsndfile/1.0.25/lib/ (2 other files)
/usr/local/Cellar/libsndfile/1.0.25/share/doc/ (16 files)
/usr/local/Cellar/libsndfile/1.0.25/share/man/ (9 files)

MBA$:build$ brew link libsndfile
Warning: Already linked: /usr/local/Cellar/libsndfile/1.0.25
To relink: brew unlink libsndfile && brew link libsndfile

MBA$:build$ ls -la /usr/local/include/sndfile.h
lrwxr-xr-x 1 myname admin 45 10 31 2014 /usr/local/include/sndfile.h -> ../Cellar/libsndfile/1.0.25/include/sndfile.h

MBA$:build$ ls /usr/local/Cellar/libsndfile/1.0.25/include/
sndfile.h sndfile.hh

MBA$:lmms-master$ head /usr/local/include/sndfile.h
/*
** Copyright (C) 1999-2011Erik de Castro Lopo <***@mega-nerd.com>
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU Lesser General Public License as published by
** the Free Software Foundation; either version 2.1 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of

MBA$:lmms-master$ head /usr/local/include/sndfile.hh
/*
** Copyright (C) 2005-2011 Erik de Castro Lopo <***@mega-nerd.com>
**
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are
** met:
**
** * Redistributions of source code must retain the above copyright

***@gmail.com
Tres Finocchiaro
2015-08-12 13:30:59 UTC
Permalink
Nishino,

I've put the devel list on CC of this, as this is a development question.
Post by NISHINO Toru
I want to use LMMS with KORG's microKEY-25 on OS X (yosemite).
I read ​https://github.com/LMMS/lmms/pull/2228 yesterday and I tried to
build LMMS from zip archive at ​https://github.com/LMMS/lmms.
Post by NISHINO Toru
cmake 3.3.0, Qt 4.8.7 and libsndfile 1.0.25 are installed from Homebrew.
I tried the following steps according to INSTALL, but failed with the
message "package 'sndfile>=1.0.11' not found", but I believe sndfile 1.0.25
is installed properly, and symbolic link (/usr/local/include/ ->
/usr/local/Cellar/libsndfile/1.0.25/include) is correct.
Our current Apple instructions are available here
https://github.com/LMMS/lmms/wiki/Compiling-lmms-(Apple) although they have
not yet been updated for Homebrew.

The homebrew dependency listing is used for our Travis builds and is here:
https://raw.githubusercontent.com/LMMS/lmms/master/.travis/osx..install.sh

As far as why this module cannot be located, this may be a misconfiguration
with cmake and pkgconfig.

What do you get when you type this:

pkg-config --modversion sndfile


If that works fine, can you remove your CMakeCache.txt and try again?
There should be more output the first time cmake is run.

If you still experience issues I would recommend opening a bug report as it
is much easier to track and answer building and code-specific questions
there.

-Tres
NISHINO Toru
2015-08-14 00:16:43 UTC
Permalink
Tres,

The build problem has gone. I can launch the LMMS now. Thank you so much!!

I used the following steps.
(I downloaded the zip file again in order to use the latest version, that is latest commit 28018ad206)

brew install qt libsndfile fftw libvorbis libogg jack sdl libsamplerate stk fluid-synth portaudio fltk
export PKG_CONFIG_PATH=/usr/local/Cellar/libsndfile/1.0.25/lib/pkgconfig:/usr/local/Cellar/fftw/3.3.4_1/lib/pkgconfig:/usr/local/Cellar/libsamplerate/0.1.8/lib/pkgconfig
pkg-config --modversion sndfile
1.0.25
pkg-config --modversion fftw3f
3.3.4

pkg-config --modversion samplerate
0.1.8

unzip lmms-master.zip

cd lmms-master
mkdir build
cd build
cmake ../
make

Now I try to use the Korg’s keyboard.


------------------------------------------------------------------------------
Loading...