CMake Fluid error when trying to build on Ubuntu 16.04

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

This may belong on GitHub, but the forum is more informal, so I'm starting here.

I am currently trying to compile LMMS v1.1.3 on Ubuntu 16.04 with QT5 in hopes of it having better HiDPI support based off this comment. However, after installing the many dependencies this software requires, I am currently stuck at the following error:

Code: Select all

CMake Error at plugins/zynaddsubfx/CMakeLists.txt:42 (MESSAGE):
  Please install the fluid binary which is part of FLTK.
when I run:

Code: Select all

cmake .. -DWANT_QT5=ON
in the `lmms/build` directory

After looking into the error a little, I came across this issue and this issue. So, I made sure fluid was installed with another

Code: Select all

sudo apt install fluid
(and indeed it was already installed), and I made sure `/usr/bin/fluid` exists on my system (which it does). I can't figure out what the consensus is for the second, more recent issue. Was an upstream change made that eventually made its way downstream to LMMS, or was an interim solution provided? This is my first experience with the software, so I haven't been following development.

Regardless, I'm quite stuck as to where to go compiling this. Hopefully someone more familiar with building LMMS will see this. If not, can someone point me to a place for items like these? I didn't want to post an issue on GitHub, when it's probably just my own stupidity. :-P

Thanks.
Try:

Code: Select all

sudo apt-get install libfltk1.3-dev
Did you install the libs AND the dev files ? You need those dev files too when you compile something.
ture-flase wrote:Hello,
Hi, Welcome to the forum ture-flase! Here are all our important links:
http://lmms.io/forum/viewtopic.php?f=1&t=4740
-And a few rules for Avatars, signatures, posting and using the right sub-forum :)

Beside welcoming you, im not the linux-guy, all i can add is if this:
https://lmms.io/wiki/index.php?title=Wo ... _.26_Linux
can be of use..

reported spottet mistakes or flaws are appreciated :)
Thanks for the help so far.
zonkmachine wrote:Try:

Code: Select all

sudo apt-get install libfltk1.3-dev
As of Ubuntu 16.04, Canonical added just "apt" as a cleaner alternative to "apt-get". Nonetheless, I did try installing all the dependencies again (including libfltk1.3-dev; see others below) with "apt-get", and there were 0 upgraded, 0 newly installed, and 0 removed packages. I was really hoping it'd be a simple nuance between apt and apt-get I didn't know about though. :-)
Gps wrote:Did you install the libs AND the dev files ? You need those dev files too when you compile something.
Yes. I've just been following the compilation instructions. I had a few dependency issues with `build-dep`, so I went with a manual install. (Hence the "many dependencies". It was about 730MB, probably mostly due to WINE.) What I've done so far:

Code: Select all

sudo apt install libfltk1.3-dev
sudo apt install build-essential cmake libqt4-dev libsndfile1-dev libfftw3-dev \
libvorbis-dev libogg-dev libasound2-dev libjack-dev libsdl-dev libsamplerate0-dev \
libstk0-dev libfluidsynth-dev portaudio19-dev libfltk1.3-dev wine-dev \
libxinerama-dev libxft-dev libgig-dev git
sudo apt install libc6-dev-i386 gcc-multilib g++-multilib
sudo apt install qtbase5-dev qttools5-dev-tools qttools5-dev

git clone https://github.com/LMMS/lmms.git
cd lmms
git checkout stable-1.1
mkdir build
cd build
cmake .. -DWANT_QT5=ON
Please let me know if there's something I'm missing. Thanks.
ture-flase wrote:I had a few dependency issues with `build-dep`, so I went with a manual install. (Hence the "many dependencies".
What dependency issues? Can you paste back the output from a build-dep lmms manoeuvre?
zonkmachine wrote:
ture-flase wrote:I had a few dependency issues with `build-dep`, so I went with a manual install. (Hence the "many dependencies".
What dependency issues? Can you paste back the output from a build-dep lmms manoeuvre?
Well, this is awkward. After doing another

Code: Select all

sudo apt build-dep lmms
I get no errors on that and it installed the following new packages successfully:

Code: Select all

autotools-dev debhelper dh-strip-nondeterminism ladspa-sdk
libfile-stripnondeterminism-perl libsdl-sound1.2 libsdl-sound1.2-dev
po-debconf 
So I guess the manual installation of dependencies fixed the build-dep? Unfortunately, I'm still getting the same error with cmake.

Edit: the error I was getting before with build-dep was something about a couple of the packages relying on other dependencies that weren't included in the install.
Apart from the message that you've failed, don't you get a line in there reminding you to clear ut the cash before running cmake again?
How about

Code: Select all

rm CMakeCache.txt
followed by, again

Code: Select all

cmake .. -DWANT_QT5=ON
zonkmachine wrote:Apart from the message that you've failed, don't you get a line in there reminding you to clear ut the cash before running cmake again?
How about

Code: Select all

rm CMakeCache.txt
followed by, again

Code: Select all

cmake .. -DWANT_QT5=ON
No, I receive no such message upon running cmake again before clearing its cache. I've created two gists: one for the output of running CMake after removing CMakeCahce.txt, and another for the output of running CMake again without removing the cache. I'm running cmake version 3.5.1. I've also noticed it's using QT4 instead of 5, but that may be something I have to figure out later. I suppose it's possible it's related, but I'm not sure. I also have CMakeOutput.log and CMakeError.log files I can provide if needed. I'd just have to replace my system username with a variable.
I have no answer to this. Maybe you can test and compile the latest master branch (cool stuff and not many bugs. Soon stable release) and see if you have better luck with it than with 1.1.3?