unable to compile latest version from git
My system: 4.8.15-1 #1 SMP PREEMPT Mon Jan 2 18:08:41 UTC 2017 x86_64 GNU/Linux
I cloned the latest git repo for libvlcpp, medialibrary and vlmc. Libvlcpp and medialibrary compiled successfully. Unfortunately vlmc exits with an error every time. The error below begins appearing after commit "37615c86".
src/Main/Core.cpp: In constructor ‘Core::Core()’: src/Main/Core.cpp:50:71: error: invalid new-expression of abstract class type ‘Library’ m_library = new Library( m_settings, m_currentProject->settings() ); ^ In file included from src/Main/Core.cpp:36:0: ./src/Library/Library.h:51:7: note: because the following virtual functions are pure within ‘Library’: class Library : public QObject, private medialibrary::IMediaLibraryCb ^ In file included from ./src/Library/Library.h:37:0, from src/Main/Core.cpp:36: /usr/include/medialibrary/IMediaLibrary.h:141:18: note: virtual void medialibrary::IMediaLibraryCb::onReloadStarted(const string&) virtual void onReloadStarted( const std::string& entryPoint ) = 0; ^ /usr/include/medialibrary/IMediaLibrary.h:147:18: note: virtual void medialibrary::IMediaLibraryCb::onReloadCompleted(const string&) virtual void onReloadCompleted( const std::string& entryPoint ) = 0; ^ /usr/include/medialibrary/IMediaLibrary.h:154:18: note: virtual void medialibrary::IMediaLibraryCb::onEntryPointRemoved(const string&, bool) virtual void onEntryPointRemoved( const std::string& entryPoint, bool success ) = 0; ^ /usr/include/medialibrary/IMediaLibrary.h:160:18: note: virtual void medialibrary::IMediaLibraryCb::onEntryPointBanned(const string&, bool) virtual void onEntryPointBanned( const std::string& entryPoint, bool success ) = 0; ^ /usr/include/medialibrary/IMediaLibrary.h:166:18: note: virtual void medialibrary::IMediaLibraryCb::onEntryPointUnbanned(const string&, bool) virtual void onEntryPointUnbanned( const std::string& entryPoint, bool success ) = 0; ^ make[1]: *** [Makefile:2105: src/Main/vlmc-Core.o] Error 1
Prior to that commit there was a different error (posted below).
src/Library/Library.cpp: In constructor ‘Library::Library(Settings*, Settings*)’: src/Library/Library.cpp:54:50: error: ‘VideoType’ is not a member of ‘medialibrary::IMedia::Type’ m_videoModel = new MediaLibraryModel( *m_ml, medialibrary::IMedia::Type::VideoType, this ) ^ src/Library/Library.cpp:55:50: error: ‘AudioType’ is not a member of ‘medialibrary::IMedia::Type’ m_audioModel = new MediaLibraryModel( *m_ml, medialibrary::IMedia::Type::AudioType, this ) ^ src/Library/Library.cpp: In member function ‘virtual void Library::onMediaAdded(std::vector<std::shared_ptr<medialibrary::IMedia> >)’: src/Library/Library.cpp:219:14: error: ‘VideoType’ is not a member of ‘medialibrary::IMedia::Type’ case medialibrary::IMedia::Type::VideoType: ^ src/Library/Library.cpp:222:14: error: ‘AudioType’ is not a member of ‘medialibrary::IMedia::Type’ case medialibrary::IMedia::Type::AudioType: ^ src/Library/Library.cpp: In member function ‘virtual void Library::onMediaUpdated(std::vector<std::shared_ptr<medialibrary::IMedia> >)’: src/Library/Library.cpp:238:14: error: ‘VideoType’ is not a member of ‘medialibrary::IMedia::Type’ case medialibrary::IMedia::Type::VideoType: ^ src/Library/Library.cpp:241:14: error: ‘AudioType’ is not a member of ‘medialibrary::IMedia::Type’ case medialibrary::IMedia::Type::AudioType: ^ make[1]: *** [Makefile:2077: src/Library/vlmc-Library.o] Error 1