Compiling error makemkv-oss 1.15.0

The place to discuss linux version of MakeMKV
Post Reply
Hohland2020
Posts: 3
Joined: Thu Mar 05, 2020 8:09 pm

Compiling error makemkv-oss 1.15.0

Post 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.
mike admin
Posts: 4065
Joined: Wed Nov 26, 2008 2:26 am
Contact:

Re: Compiling error makemkv-oss 1.15.0

Post by mike admin »

1. Please post your qt version
2. Likely workaround - remove "a", i.e. change "asprintf" to "sprintf".
Hohland2020
Posts: 3
Joined: Thu Mar 05, 2020 8:09 pm

Re: Compiling error makemkv-oss 1.15.0

Post 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
mike admin
Posts: 4065
Joined: Wed Nov 26, 2008 2:26 am
Contact:

Re: Compiling error makemkv-oss 1.15.0

Post 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);
Hohland2020
Posts: 3
Joined: Thu Mar 05, 2020 8:09 pm

Re: Compiling error makemkv-oss 1.15.0

Post by Hohland2020 »

Problem solved with replaced code from 1.14.7, I didn’t do anything special, only type ./configure ))
Thank you.
Post Reply