build dependencies for compilation

Having trouble with LMMS? Ask about it here.
I tried to compile the current github source code but could not proceed due to missing dependencies. Before running cmake I had installed the dependencies listed under Compiling LMMS.

Below I post the output after running cmake.

I am looking forward on hints of what dependencies I would need to add to my installation.
This all happens on Linux Mint 18 aka Ubuntu 16.04 platform.

Code: Select all

cmake ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /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: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Found Git: /usr/bin/git (found version "2.7.4") 

Configuring LMMS
--------------------------
* Project version             : 1.1.90.435
*   Major version             : 1
*   Minor version             : 1
*   Release version           : 90
*   Stage version             : 
*   Build version             : 435
*

Optional Version Usage:
--------------------------
*   Override version:           -DFORCE_VERSION=x.x.x-x
*   Ignore Git information:     -DFORCE_VERSION=internal

PROCESSOR: x86_64
Machine: x86_64-linux-gnu
-- Target host is 64 bit
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for include file semaphore.h
-- Looking for include file semaphore.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for include file sys/ipc.h
-- Looking for include file sys/ipc.h - found
-- Looking for include file sys/shm.h
-- Looking for include file sys/shm.h - found
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - found
-- Looking for include file sched.h
-- Looking for include file sched.h - found
-- Looking for include file sys/soundcard.h
-- Looking for include file sys/soundcard.h - found
-- Looking for include file soundcard.h
-- Looking for include file soundcard.h - not found
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
-- Looking for include file sys/ioctl.h
-- Looking for include file sys/ioctl.h - found
-- Looking for include file ctype.h
-- Looking for include file ctype.h - found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file process.h
-- Looking for include file process.h - not found
-- Looking for include file locale.h
-- Looking for include file locale.h - found
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake (found suitable version "4.8.7", minimum required is "4.6.0;COMPONENTS;QtCore;QtGui;QtXml") 
-- Found Qt translations in /usr/share/qt4/translations
-- Checking for module 'sndfile>=1.0.11'
--   Found sndfile, version 1.0.25
-- Checking for module 'carla-standalone>=1.9.5'
--   Found carla-standalone, version 1.9.5
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found SDL: /usr/lib/x86_64-linux-gnu/libSDL.so;-lpthread (found version "1.2.15") 
-- Checking for module 'portaudio-2.0'
--   Found portaudio-2.0, version 19
-- Found Portaudio: portaudio;asound;m;pthread
-- Found SOUNDIO: /usr/lib/x86_64-linux-gnu/libsoundio.so  
-- Checking for module 'libpulse'
--   Found libpulse, version 8.0
-- Found PulseAudio Simple: /usr/lib/x86_64-linux-gnu/libpulse.so
-- Looking for vorbis_bitrate_addblock in vorbis
-- Looking for vorbis_bitrate_addblock in vorbis - found
-- Found OggVorbis: /usr/lib/x86_64-linux-gnu/libogg.so;/usr/lib/x86_64-linux-gnu/libvorbis.so;/usr/lib/x86_64-linux-gnu/libvorbisfile.so;/usr/lib/x86_64-linux-gnu/libvorbisenc.so
-- Looking for snd_seq_create_simple_port in asound
-- Looking for snd_seq_create_simple_port in asound - found
-- Found ALSA: /usr/lib/x86_64-linux-gnu/libasound.so
-- Looking for include file machine/soundcard.h
-- Looking for include file machine/soundcard.h - not found
-- Looking for include file linux/awe_voice.h
-- Looking for include file linux/awe_voice.h - not found
-- Looking for include file awe_voice.h
-- Looking for include file awe_voice.h - not found
-- Looking for include file /usr/src/sys/i386/isa/sound/awe_voice.h
-- Looking for include file /usr/src/sys/i386/isa/sound/awe_voice.h - not found
-- Looking for include file /usr/src/sys/gnu/i386/isa/sound/awe_voice.h
-- Looking for include file /usr/src/sys/gnu/i386/isa/sound/awe_voice.h - not found
-- Looking for C++ include sys/asoundlib.h
-- Looking for C++ include sys/asoundlib.h - found
-- Looking for C++ include alsa/asoundlib.h
-- Looking for C++ include alsa/asoundlib.h - found
-- Looking for snd_pcm_resume in asound
-- Looking for snd_pcm_resume in asound - found
-- Checking for module 'jack>=0.77'
--   Found jack, version 1.9.11
-- Checking for module 'fftw3f>=3.0.0'
--   
CMake Error at /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:367 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:532 (_pkg_check_modules_internal)
  CMakeLists.txt:365 (PKG_CHECK_MODULES)
selectamendo wrote:I had installed the dependencies listed under Compiling LMMS.
I think you simply missed some. It's easy to do... ;)
selectamendo wrote:

Code: Select all

-- Checking for module 'fftw3f>=3.0.0'
--   
CMake Error at /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:367 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:532 (_pkg_check_modules_internal)
  CMakeLists.txt:365 (PKG_CHECK_MODULES)
try:

Code: Select all

sudo apt-get install libfftw3-dev
and see if that helps.
zonkmachine wrote:
selectamendo wrote:I had installed the dependencies listed under Compiling LMMS.
I think you simply missed some. It's easy to do... ;)
Yes, I used:

Code: Select all

sudo apt-get build-dep lmms && sudo apt-get install libfltk1.3-dev
But it did not install libfftw3-dev.

So I found out that libfftw3-dev could not be installed because somehow the dependencies had new packages installed:

Code: Select all

libfftw3-double3 (= 3.3.4-2ubuntu1) aber 3.3.5+r2954.5~ubuntu16.04.1 soll installiert werden
                Hängt ab von: libfftw3-long3 (= 3.3.4-2ubuntu1) aber 3.3.5+r2954.5~ubuntu16.04.1 soll installiert werden
                Hängt ab von: libfftw3-single3 (= 3.3.4-2ubuntu1) aber 3.3.5+r2954.5~ubuntu16.04.1
After removing libfftw3-long3, libfftw3-single3 and installing all with the right version I could add libfftw3-dev.

Build was successfully completed.
zonkmachine wrote:
selectamendo wrote:

Code: Select all

sudo apt-get install libfftw3-dev
and see if that helps.
That helped. Thanks!

But when trying to repackage the Debian package with the updated sources I get more errors. I will try to find out if this is due to the paches of kxstudio repos.