1.15.2 fails to compile

The place to discuss linux version of MakeMKV
Post Reply
plittlefield
Posts: 68
Joined: Wed May 10, 2017 11:04 am

1.15.2 fails to compile

Post by plittlefield »

Latest release 1.15.2 fails to compile in Ubuntu Linux.

Lots of errors but here are the last few lines...

Code: Select all

In file included from ./libmatroska/inc/matroska/KaxCluster.h:41:0,
                 from ./libmakemkv/inc/libmkv/internal.h:36,
                 from libmakemkv/src/version.cpp:22:
./libmatroska/inc/matroska/KaxBlock.h:146:24: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
     ~KaxBlockGroup() = default;
                        ^
In file included from ./libmakemkv/inc/libmkv/internal.h:42:0,
                 from libmakemkv/src/version.cpp:22:
./libmatroska/inc/matroska/KaxInfoData.h:57:36: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
     KaxPrevUID(EBML_EXTRA_PARAM) = default;
                                    ^
./libmatroska/inc/matroska/KaxInfoData.h:67:36: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
     KaxNextUID(EBML_EXTRA_PARAM) = default;
                                    ^
In file included from libmakemkv/src/stdstring.cpp:21:0:
./libmakemkv/inc/lgpl/stdstring.h:50:27: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
         inline string() = delete;
                           ^
./libmakemkv/inc/lgpl/stdstring.h:51:44: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
         inline string(const char* value) = delete;
                                            ^
./libmakemkv/inc/lgpl/stdstring.h:67:29: error: expected ‘,’ or ‘...’ before ‘&&’ token
         inline string(string&& value) { data = value.data; value.data = (char*)emptyString; }
                             ^
./libmakemkv/inc/lgpl/stdstring.h:67:37: error: invalid constructor; you probably meant ‘buf::string (const buf::string&)’
         inline string(string&& value) { data = value.data; value.data = (char*)emptyString; }
                                     ^
libffabi/src/ffabi.c: In function ‘ffm_init’:
libffabi/src/ffabi.c:153:5: warning: ‘avcodec_register_all’ is deprecated [-Wdeprecated-declarations]
     avcodec_register_all();
     ^
In file included from libffabi/src/ffabi.c:22:0:
/tmp/ffmpeg/include/libavcodec/avcodec.h:4159:6: note: declared here
 void avcodec_register_all(void);
      ^
Makefile:75: recipe for target 'out/libmakemkv.so.1.full' failed
make: *** [out/libmakemkv.so.1.full] Error 1
As a test, I ran the same procedure for 1.15.1 and that compiled fine.

Paully
plittlefield
Posts: 68
Joined: Wed May 10, 2017 11:04 am

Re: 1.15.2 fails to compile

Post by plittlefield »

CFLAGS="-std=gnu++11" fixed it for me.

So, my full command line (for no gui) is...

Code: Select all

CFLAGS="-std=gnu++11" PKG_CONFIG_PATH="/tmp/ffmpeg/lib/pkgconfig" ./configure --disable-gui
make
sudo make install
Thanks!
mdPlusPlus
Posts: 5
Joined: Fri Sep 18, 2020 10:23 am

Re: 1.15.2 fails to compile

Post by mdPlusPlus »

I'm still getting the following error when compiling makemkv-oss:

Code: Select all

/usr/bin/ld: -lQt5Core kann nicht gefunden werden
collect2: error: ld returned 1 exit status
make: *** [Makefile:94: out/makemkv.full] Fehler 1
bib1963
Posts: 10
Joined: Sun Aug 04, 2013 3:50 pm

Re: 1.15.2 fails to compile

Post by bib1963 »

That should not be difficult for someone to fix.

You do not have the Qt5Core devel libs installed.

On opensuse, it's something like libQt5Core-devel-5.blahblahblah.rpm

If you do have it installed, then I assume you need a '-L' to the directory where is is installed for the linker.
mdPlusPlus
Posts: 5
Joined: Fri Sep 18, 2020 10:23 am

Re: 1.15.2 fails to compile

Post by mdPlusPlus »

bib1963 wrote:
Sun Sep 20, 2020 11:33 am
That should not be difficult for someone to fix.

You do not have the Qt5Core devel libs installed.

On opensuse, it's something like libQt5Core-devel-5.blahblahblah.rpm

If you do have it installed, then I assume you need a '-L' to the directory where is is installed for the linker.
I have `libqt5core5a` installed (Ubuntu 20.04). There doesn't seem to be a dev package, judging by `apt search libqt | grep dev`.
I also tried several methods of linking `/usr/lib/x86_64-linux-gnu` like recommended in other forums, but so far I'm out of luck.
bib1963
Posts: 10
Joined: Sun Aug 04, 2013 3:50 pm

Re: 1.15.2 fails to compile

Post by bib1963 »

Post "find / -name libQt5Core\*"
mdPlusPlus
Posts: 5
Joined: Fri Sep 18, 2020 10:23 am

Re: 1.15.2 fails to compile

Post by mdPlusPlus »

bib1963 wrote:
Sun Sep 27, 2020 11:57 am
Post "find / -name libQt5Core\*"

Code: Select all

$ find /usr -name libQt5Core\*
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12.8
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5
/usr/lib/x86_64-linux-gnu/libQt5Core.prl
mdPlusPlus
Posts: 5
Joined: Fri Sep 18, 2020 10:23 am

Re: 1.15.2 fails to compile

Post by mdPlusPlus »

A simple

Code: Select all

sudo apt reinstall qtbase5-dev
seems to have fixed my issue. I have no idea how I haven't tried that sooner.
Post Reply