Build shotcut failed

Hi all, today i use git pull to fetch the last shotcut source code and build it, and then build failed, with these codes:

docks/timelinedock.cpp:890:68:   required from here
/usr/include/qt5/QtCore/qmap.h:230:17: error:binding reference of type ‘Mlt::Producer&’ to ‘const Mlt::Producer’ discards qualifiers
  230 |                 new (&n->value) T(v);

commands/timelinecommands.cpp:388:95:   required from here
/usr/include/qt5/QtCore/qmap.h:230:17: error:binding reference of type ‘Mlt::Producer&’ to ‘const Mlt::Producer’ discards qualifiers
  230 |                 new (&n->value) T(v);

my os is gentoo, with last updates
my shotcut git version sha1 id is: b2f4227d61b508961664dffeb8744eb2810d58cb
my qt version is 5.13.2
is there someone can help me!

Your MLT is too old. Use the latest.

I have install the last version of mlt, 6.18.0, but still has theses errors

It works for us in our nightly automated build system:
http://build.mltframework.org/viewLog.html?tab=buildLog&buildTypeId=bt26&buildId=64736

There is a convenience build script that we use to make sure all the version requirements are met:

There are also instructions to use our SDK:
https://shotcut.org/notes/linuxdev/

Thanks very much! this just because my mlt version is old