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.
Compiling error makemkv-oss 1.15.0
-
- Posts: 4075
- Joined: Wed Nov 26, 2008 2:26 am
- Contact:
Re: Compiling error makemkv-oss 1.15.0
1. Please post your qt version
2. Likely workaround - remove "a", i.e. change "asprintf" to "sprintf".
2. Likely workaround - remove "a", i.e. change "asprintf" to "sprintf".
-
- Posts: 3
- Joined: Thu Mar 05, 2020 8:09 pm
Re: Compiling error makemkv-oss 1.15.0
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
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
-
- Posts: 4075
- Joined: Wed Nov 26, 2008 2:26 am
- Contact:
Re: Compiling error makemkv-oss 1.15.0
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:
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);
-
- Posts: 3
- Joined: Thu Mar 05, 2020 8:09 pm
Re: Compiling error makemkv-oss 1.15.0
Problem solved with replaced code from 1.14.7, I didn’t do anything special, only type ./configure ))
Thank you.
Thank you.