Page 1 of 1

Compiling error makemkv-oss 1.15.0

Posted: Thu Mar 05, 2020 8:29 pm
by Hohland2020
When i try to compile makemkv-oss, i get error:

makemkvgui/src/logic.cpp: In function ‘QString FormatDiskFreeSpace(const utf16_t*)’:
makemkvgui/src/logic.cpp:46:12: error: ‘asprintf’ is not a member of ‘QString’
return QString::asprintf("%u.%u %c",sz,dt,suf);
^
make: *** [out/makemkv.full] Error 1

How it's solve?

Makemkv-bin compile successful.

Re: Compiling error makemkv-oss 1.15.0

Posted: Thu Mar 05, 2020 8:45 pm
by mike admin
1. Please post your qt version
2. Likely workaround - remove "a", i.e. change "asprintf" to "sprintf".

Re: Compiling error makemkv-oss 1.15.0

Posted: Thu Mar 05, 2020 9:37 pm
by Hohland2020
1. pkg-config --modversion QtCore
4.8.6

2. i change in logic.cpp "asprintf" to "sprintf", but got the same:
makemkvgui/src/logic.cpp: In function ‘QString FormatDiskFreeSpace(const utf16_t*)’:
makemkvgui/src/logic.cpp:46:49: error: cannot call member function ‘QString& QString::sprintf(const char*, ...)’ without object
return QString::sprintf("%u.%u %c",sz,dt,suf);
^
make: *** [out/makemkv.full] Error 1

Re: Compiling error makemkv-oss 1.15.0

Posted: Thu Mar 05, 2020 9:51 pm
by mike admin
Starting with 1.15 qt4 is no longer supported, only qt5. I wonder how you did get past configure.

As for sprintf, my mistake, the line has to be replaced with code from 1.14.7:

Code: Select all

    QString str;
    return str.sprintf("%u.%u %c",sz,dt,suf);

Re: Compiling error makemkv-oss 1.15.0

Posted: Thu Mar 05, 2020 10:05 pm
by Hohland2020
Problem solved with replaced code from 1.14.7, I didn’t do anything special, only type ./configure ))
Thank you.