problem building lmms - error: ‘isinf’ was not declared

Having trouble with LMMS? Ask about it here.
Hello, I am trying to build lmms as my 1.1.3 from kxstudio keeps crashing. When I run make this is where it fails:

[ 29%] Built target ladspabrowser
[ 30%] Built target ladspaeffect
[ 30%] Building CXX object plugins/LadspaEffect/caps/CMakeFiles/caps.dir/SweepVF.cc.o
In file included from /home/brotherowen/build/lmms_master/plugins/LadspaEffect/caps/SweepVF.cc:33:0:
/home/brotherowen/build/lmms_master/plugins/LadspaEffect/caps/basics.h: In member function ‘sample_t Plugin::getport_unclamped(int)’:
/home/brotherowen/build/lmms_master/plugins/LadspaEffect/caps/basics.h:187:21: error: ‘isinf’ was not declared in this scope
return (isinf (v) || isnan(v)) ? 0 : v;
^
/home/brotherowen/build/lmms_master/plugins/LadspaEffect/caps/basics.h:187:21: note: suggested alternative:
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /home/brotherowen/build/lmms_master/plugins/LadspaEffect/caps/SweepVF.cc:31:


Any ideas? Thanks
Yo!
Advocatus Diaboli wrote: /home/brotherowen/build/lmms_master/plugins/LadspaEffect/caps/basics.h:187:21: error: ‘isinf’ was not declared in this scope
return (isinf (v) || isnan(v)) ? 0 : v;
^
This is a build error that was reported just recently and is fixed for stable-1.2 .
Issue: https://github.com/LMMS/lmms/issues/3959
Fix here: https://github.com/LMMS/lmms/pull/3972

I suggest that you checkout stable-1.2 instead. It's more stable than 1.1.3 . At least for me... :D

Your other options are:
1. Apply the code change in https://github.com/LMMS/lmms/pull/3972 to stable-1.1.3
2. Disable caps. Either by removing CMakeCache.txt and redoing cmake with

Code: Select all

-DWANT-CAPS=OFF
or by changing this line: https://github.com/LMMS/lmms/blob/stabl ... sts.txt#L2 to

Code: Select all

#ADD_SUBDIRECTORY(caps)
Which comments it out.
I build the stable-1.2 ok, thanks. I take it that I need the assets for it to run?
If you mean the dependencies, then yes. :)
Advocatus Diaboli wrote:
Fri Nov 24, 2017 10:35 am
I build the stable-1.2 ok, thanks. I take it that I need the assets for it to run?
You mean the samples, presets and themes? When you build from source there is only one package to install. In lmms-1.2 you also can run it directly from the build directory without installing.

Code: Select all

./lmms
Hi ZonkMachine. So, I got all excited that it builds, but then it segfaults when it runs. I built a debugging version and see that the problem is with QT5, but I seem to have the QT5 dependencies installed. I even tried building it with the cmake option of -DWANT_QT5=ON but no difference.

This is what happens when I run it in gdb:

Thread 1 "lmms" received signal SIGSEGV, Segmentation fault.
0x00007fff8fdb7f85 in QMetaObject::className() const ()
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

Thanks
I got around the qt5 problem, I think it was because I did not have the gles versions of qt5 installed. Now it won't run because of carla issues:

VST sync support disabled in your configuration
Cannot load library /home/brotherowen/build/lmms/target/lib/lmms/libcarlarack.so: (libcarlabase.so: cannot open shared object file: No such file or directory)
Cannot load library /home/brotherowen/build/lmms/target/lib/lmms/libcarlabase.so: (libcarla_standalone2.so: cannot open shared object file: No such file or directory)
Cannot load library /home/brotherowen/build/lmms/target/lib/lmms/libcarlapatchbay.so: (libcarlabase.so: cannot open shared object file: No such file or directory)

Is there a way of getting a pre-built linux 1.2rc4 as there is for windows and mac?

Thanks
AD
I don't know what's up with the Qt5 stuff. You could try our discord channel (#support):
https://discordapp.com/invite/3sc5su7
Advocatus Diaboli wrote: Is there a way of getting a pre-built linux 1.2rc4 as there is for windows and mac?
Yes. We're starting to build AppImages for lmms available here for now:
https://github.com/tresf/lmms/releases/tag/v1.2.0-rc4

I think the latest is this one:
https://github.com/tresf/lmms/releases/ ... 4.AppImage

Just download, make it executable (if it isn't already) and run.
Thanks zonkmachine, I tried out the rc4-112 appimage. It is missing sf2 and the screen in the song editor looks strange - it has a lot of black screen space where I think it should look gridded?

Cheers
Now it looks ok. Something to do with gt5 gl stuff. Still does not load the sf2 instrument though.