Problems with CMake Quickstart part of Compiling guide

Having trouble with LMMS? Ask about it here.
Hello,

I have been having some issues trying to get the LMMS to compile on my machine.

I am running Ubuntu 20.04 - I am pretty sure I have installed all dependencies, however I am sure there is stuff missing.

I am getting this log when I try to run the Running CMake section:

cmake .. -DCMAKE_INSTALL_PREFIX=../target/



~/lmms/build# cmake .. -DCMAKE_INSTALL_PREFIX=../target/
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.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
CMake Deprecation Warning at CMakeLists.txt:15 (CMAKE_POLICY):
The OLD behavior for policy CMP0050 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.



Checking submodules...
-- Checking qt5-x11embed...
-- Found src/3rdparty/qt5-x11embed/CMakeLists.txt
-- Checking rpmalloc...
-- Found src/3rdparty/rpmalloc/rpmalloc/configure.py
-- Checking zynaddsubfx...
-- Found plugins/zynaddsubfx/zynaddsubfx/CMakeLists.txt
-- Checking game-music-emu...
-- Found plugins/FreeBoy/game-music-emu/CMakeLists.txt
-- Checking adplug...
-- Found plugins/OpulenZ/adplug/Makefile.am
-- Checking veal...
-- Found plugins/LadspaEffect/calf/veal/Makefile.am
-- Checking exprtk...
-- Found plugins/Xpressive/exprtk/Makefile
-- Checking ladspa...
-- Found plugins/LadspaEffect/swh/ladspa/Makefile.am
-- Checking tap-plugins...
-- Found plugins/LadspaEffect/tap/tap-plugins/Makefile
-- Checking weakjack...
-- Found src/3rdparty/weakjack/weakjack/.gitignore
-- Checking mingw-std-threads...
-- Found src/3rdparty/mingw-std-threads/LICENSE
-- Checking wiki...
-- Found doc/wiki/Home.md
-- Checking ringbuffer...
-- Found src/3rdparty/ringbuffer/CMakeLists.txt
-- Checking carla...
-- Found plugins/carlabase/carla/Makefile
-- Done validating submodules.

-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Found Git: /usr/bin/git (found version "2.25.1")

Configuring LMMS
--------------------------
* Project version : 1.2.2.678
* Major version : 1
* Minor version : 2
* Release version : 2
* Stage version :
* Build version : 678
*

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 sys/times.h
-- Looking for include file sys/times.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
-- Found Qt translations in /usr/share/qt5/translations
-- Checking for module 'sndfile'
-- Found sndfile, version 1.0.28
-- Found SndFile: /usr/lib/x86_64-linux-gnu/libsndfile.so
-- Checking for module 'lv2'
-- Found lv2, version 1.16.2
-- Checking for module 'lilv-0'
-- Found lilv-0, version 0.24.6
-- Checking for module 'suil-0'
-- No package 'suil-0' found
-- Checking for module 'carla-native-plugin'
-- Found carla-native-plugin, version 2.1.1
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- 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
-- Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR)
-- Found SDL: /usr/lib/x86_64-linux-gnu/libSDL.so;-lpthread (found version "1.2.15")
-- Found STK: /usr/lib/x86_64-linux-gnu/libstk.so
-- Checking for module 'portaudio-2.0'
-- Found portaudio-2.0, version 19
-- Found Portaudio: portaudio;asound;m;pthread
-- Could NOT find SOUNDIO (missing: SOUNDIO_LIBRARY SOUNDIO_INCLUDE_DIR)
-- Checking for module 'libpulse'
-- Found libpulse, version 13.99.1
-- Found PulseAudio Simple: /usr/lib/x86_64-linux-gnu/libpulse.so
-- Found Lame: /usr/include
-- 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.12
-- Found FFTW: /usr/include
CMake Warning (dev) at /usr/share/cmake-3.16/Modules/FindOpenGL.cmake:275 (message):
Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
available. Run "cmake --help-policy CMP0072" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.

FindOpenGL found both a legacy GL library:

OPENGL_gl_LIBRARY: /usr/lib/x86_64-linux-gnu/libGL.so

and GLVND libraries for OpenGL and GLX:

OPENGL_opengl_LIBRARY: /usr/lib/x86_64-linux-gnu/libOpenGL.so
OPENGL_glx_LIBRARY: /usr/lib/x86_64-linux-gnu/libGLX.so

OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindFLTK.cmake:83 (find_package)
CMakeLists.txt:459 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Found FLTK: fltk_images;fltk_forms;fltk_gl;/usr/lib/x86_64-linux-gnu/libGL.so;fltk
-- Checking for module 'fluidsynth>=1.0.7'
-- Found fluidsynth, version 2.1.1
-- Checking for module 'gig'
-- Found gig, version 4.2.0
-- Looking for sio_open in sndio
-- Looking for sio_open in sndio - not found
-- Could NOT find SNDIO (missing: SNDIO_LIBRARY SNDIO_INCLUDE_DIR HAVE_SIO_OPEN)
-- Found Wine: /usr/lib/wine/wineg++
-- Checking for module 'samplerate'
-- Found samplerate, version 0.1.9
-- Found SAMPLERATE: /usr/lib/x86_64-linux-gnu/libsamplerate.so
-- Setting build type to 'Release' as none was specified.
-- Found XCB_XCB: /usr/lib/x86_64-linux-gnu/libxcb.so (found version "1.14")
-- Found XCB_ATOM: /usr/lib/x86_64-linux-gnu/libxcb-util.so (found version "0.4.0")
-- Found XCB_KEYSYMS: /usr/lib/x86_64-linux-gnu/libxcb-keysyms.so (found version "0.4.0")
-- Found XCB_UTIL: /usr/lib/x86_64-linux-gnu/libxcb-util.so (found version "0.4.0")
-- Found XCB: /usr/lib/x86_64-linux-gnu/libxcb.so;/usr/lib/x86_64-linux-gnu/libxcb-util.so;/usr/lib/x86_64-linux-gnu/libxcb-keysyms.so (found version "1.14") found components: XCB ATOM KEYSYMS UTIL
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find X11_XCB (missing: X11_XCB_LIBRARY X11_XCB_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
src/3rdparty/qt5-x11embed/3rdparty/ECM/find-modules/FindX11_XCB.cmake:88 (find_package_handle_standard_args)
src/3rdparty/qt5-x11embed/CMakeLists.txt:11 (find_package)


-- Configuring incomplete, errors occurred!
See also "/root/lmms/build/CMakeFiles/CMakeOutput.log".
See also "/root/lmms/build/CMakeFiles/CMakeError.log".







Not sure if I am looking at the right place, however I noticed this in the logs:

-- Checking for module 'suil-0'
-- No package 'suil-0' found

I also tried installing "sudo apt install libsuil-0-0" which it did but still gave the same error.

However not sure which module that belongs to. Any help would be very much appreciated!

Thanks in advance!

Ramez
RamezA wrote:
Mon Aug 03, 2020 10:41 pm
Hello,
Hi, Welcome to the Forum RamezA !
Here are all important links:
viewtopic.php?f=1&t=4740
-A few rules and useful forum instructions
If you like to introduce yourself, to the community, go here:
viewtopic.php?f=4&t=4480

I have been having some issues trying to get the LMMS to compile on my machine
.

Are you the sam person i tried to help on Discord?
If not then try this from CLI opened in your build-library

Code: Select all

sudo apt-get install build-essential cmake libsndfile1-dev libfftw3-dev \
libvorbis-dev libogg-dev libmp3lame-dev libasound2-dev libjack-jackd2-dev \
libsamplerate0-dev libsdl-dev libstk0-dev stk libfluidsynth-dev portaudio19-dev \
libfltk1.3-dev libxinerama-dev libxft-dev libgig-dev git perl libxml2-utils \
libxml-perl liblist-moreutils-perl qtbase5-dev qttools5-dev-tools qttools5-dev \
libqt5x11extras5-dev libxcb-keysyms1-dev libxcb-util0-dev
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install gcc-multilib g++-multilib libqt5x11extras5-dev qtbase5-private-dev \
libxcb-util0-dev libxcb-keysyms1-dev
sudo apt-get install wine-stable libwine-dev libwine-dev:i386
sudo add-apt-repository -y ppa:kxstudio-debian/libs
sudo add-apt-repository -y ppa:kxstudio-debian/apps
sudo apt-get update
sudo apt-get install -y carla
git clone --recurse-submodules -b master https://github.com/lmms/lmms
cd lmms
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=../target/ -DWANT_QT5=ON
make -j4
Works in Mint..
Let me know
musikbear wrote:
Tue Aug 04, 2020 4:03 pm
RamezA wrote:
Mon Aug 03, 2020 10:41 pm
Hello,
Hi, Welcome to the Forum RamezA !
Here are all important links:
viewtopic.php?f=1&t=4740
-A few rules and useful forum instructions
If you like to introduce yourself, to the community, go here:
viewtopic.php?f=4&t=4480

I have been having some issues trying to get the LMMS to compile on my machine
.

Are you the sam person i tried to help on Discord?
If not then try this from CLI opened in your build-library

Code: Select all

sudo apt-get install build-essential cmake libsndfile1-dev libfftw3-dev \
libvorbis-dev libogg-dev libmp3lame-dev libasound2-dev libjack-jackd2-dev \
libsamplerate0-dev libsdl-dev libstk0-dev stk libfluidsynth-dev portaudio19-dev \
libfltk1.3-dev libxinerama-dev libxft-dev libgig-dev git perl libxml2-utils \
libxml-perl liblist-moreutils-perl qtbase5-dev qttools5-dev-tools qttools5-dev \
libqt5x11extras5-dev libxcb-keysyms1-dev libxcb-util0-dev
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install gcc-multilib g++-multilib libqt5x11extras5-dev qtbase5-private-dev \
libxcb-util0-dev libxcb-keysyms1-dev
sudo apt-get install wine-stable libwine-dev libwine-dev:i386
sudo add-apt-repository -y ppa:kxstudio-debian/libs
sudo add-apt-repository -y ppa:kxstudio-debian/apps
sudo apt-get update
sudo apt-get install -y carla
git clone --recurse-submodules -b master https://github.com/lmms/lmms
cd lmms
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=../target/ -DWANT_QT5=ON
make -j4
Works in Mint..
Let me know

Thank you very much for your prompt response! It is heavily appreciated - and no that didn't seem to be me in the discord. I wasn't sure where was best to ask my questions so i opted to come to the forums - if it is easier there I have no problems posing my questions there.

I have tried what you suggested in your response however then I get to

Code: Select all

sudo add-apt-repository -y ppa:kxstudio-debian/libs
I get an error

Code: Select all

sudo add-apt-repository -y ppa:kxstudio-debian/libs
Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:2 http://dl.google.com/linux/chrome/deb stable InRelease                   
Hit:3 http://ca.archive.ubuntu.com/ubuntu focal InRelease                      
Hit:4 http://ca.archive.ubuntu.com/ubuntu focal-updates InRelease              
Hit:5 http://ca.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:6 http://ppa.launchpad.net/kxstudio-debian/libs/ubuntu bionic InRelease
Hit:7 http://ppa.launchpad.net/kxstudio-debian/music/ubuntu bionic InRelease   
Hit:8 http://ppa.launchpad.net/kxstudio-debian/plugins/ubuntu bionic InRelease
Ign:9 https://kx.studio/repo stable InRelease                            
Ign:10 https://kx.studio/repo gcc5 InRelease                             
Hit:11 http://ppa.launchpad.net/kxstudio-debian/apps/ubuntu bionic InRelease
Hit:12 https://kx.studio/repo stable Release                             
Hit:13 http://ppa.launchpad.net/kxstudio-debian/kxstudio/ubuntu bionic InRelease
Hit:14 https://kx.studio/repo gcc5 Release                               
Ign:16 http://ppa.launchpad.net/kxstudio-debian/libs/ubuntu focal InRelease
Err:18 http://ppa.launchpad.net/kxstudio-debian/libs/ubuntu focal Release
  404  Not Found [IP: 91.189.95.83 80]
Reading package lists... Done                      
E: The repository 'http://ppa.launchpad.net/kxstudio-debian/libs/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
I did some digging online and it seemed as though I had to remove that PPA from my software sources, so I tried running

Code: Select all

sudo add-apt-repository --remove ppa:kxstudio-debian/libs
But then when running that line as before, I still seem to be getting that error as shown above. Any ideas?

Thanks again for the support - and my apologies if these are basic questions! :)

Cheers,
Ramez
RamezA wrote:
Tue Aug 04, 2020 6:35 pm
my apologies if these are basic questions! :)
They are not :)

You do run these CLI cmd in blocks right?
I mean you do not run the whole script in one go?

There are separate blocks that belongs together, and that need to be together
I wrote a guide, but it was shelved because of a decision taking our documentation to a new platform, so i never finished it -It is very messy, but the part about the connected blocks are reasonable
https://lmms.io/wiki/index.php?title=Fr ... virtualBox
Try structure your CLI cmd input that way.
But as i said : Worked on Vanilla Mint, and you are on a Ubuntu distro, so not the same thing. There may even be something you already have, but in other versions, and then it fails.
But try the structured block input. If that fails we need a Ubuntu expert, and that is NOT me
You do run these CLI cmd in blocks right?
I mean you do not run the whole script in one go?
I do run them in blocks yes, I just noticed today when trying to run it again for some reason my terminal was not accepting the first phrase after the \ character. So I ran those separately. It looked as though everything has already been installed though.

I tried to follow the steps in your guide (thank you for that link - it helped a lot!). However it seems like I am just getting the same error as before with the:

Code: Select all

-- Checking for module 'suil-0'
--   No package 'suil-0' found
Would you be able to point me to a potential Ubuntu master :) I am not quite sure what else to try at this point - one thing to note is everything was followed pretty smooth as per the guide except for these steps:
We will now install Carla
Carla Install libraries for Carla support takes place with 4 separate cmd's sudo add-apt-repository -y ppa:kxstudio-debian/libs

sudo add-apt-repository -y ppa:kxstudio-debian/apps

sudo apt update

sudo apt install -y carla
I went to the https://launchpad.net/~kxstudio-debian/ ... buntu/apps and libs webpage and followed the steps there. I think everything was installed as required since it doesn't seem to be complaining about Carla.

Thanks again! Looking forward to the next steps!

Cheers,
Ramez
RamezA wrote:
Thu Aug 06, 2020 4:59 pm

Code: Select all

-- Checking for module 'suil-0'
--   No package 'suil-0' found
Have you tried

Code: Select all

libsuil-0-0 
 libsuil-dev 
suil is a loading and wrapping LV2 plugin UIs library
https://launchpad.net/ubuntu/+source/suil
Have you tried

Code: Select all

libsuil-0-0 
 libsuil-dev 
Beautiful!! Installing the libsuil-dev seemed to correct that issue indeed (I had the libsuil-0-0 package already).

I was still getting errors after due to a missing:

Code: Select all

Could NOT find X11_XCB (missing: X11_XCB_LIBRARIES X11_XCB_INCLUDE_DIR)
However a quick google search showed that I needed to install

Code: Select all

libx11-xcb-dev
And once that was done, voila!! Just as a side note, do you know why these packages were not listed in the wiki or I did not seem to have them without explicitly installing them?

Code: Select all

-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    WANT_QT5


-- Build files have been written to: /home/ramez/LMMSDev/lmms/build
Thank you so so much for all the support musikbear! Heavily appreciated!
If I have other questions, I will be sure to come back to the forums!

Do I need to mark anything as resolved? Or will it take care of itself?

Thanks again. Have a wonderful evening.

Cheers,
Ramez
RamezA wrote:
Fri Aug 07, 2020 9:31 pm
do you know why these packages were not listed in the wiki or I did not seem to have them without explicitly installing them?
Not really. I suppose they are meant to be included in native linux-distro, but that again depends on the 'local' pac-manager :)
Do I need to mark anything as resolved? Or will it take care of itself?
We usually does not mark subjects as we solve them, only when we cant :)
I am happy we got this one fixed!