Groterik / qtcreator-dlangeditor

QtCreator plugin for D language support (dlang)
MIT License
20 stars 5 forks source link

Can't build plugin with QtCreator master source #1

Closed stonemaster closed 10 years ago

stonemaster commented 10 years ago

I can't build the plugin using QtCreator master and your build instructions:

Output from make:

g++ -c -m64 -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I. -I/usr/lib/x86_64-linux-gnu/qtcreator/src -I../qt-creator/src/libs -I/home/astein/build/qt-creator/tools -I../qt-creator/src/plugins -I../qt-creator/src/libs/3rdparty -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtConcurrent -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I.moc/release-shared -o .obj/release-shared/dlangeditorplugin.o dlangeditorplugin.cpp
dlangeditorplugin.cpp: In member function ‘virtual bool DlangEditor::Internal::DlangEditorPlugin::initialize(const QStringList&, QString*)’:
dlangeditorplugin.cpp:42:31: error: cannot allocate an object of abstract type ‘DlangEditor::DlangCompletionAssistProvider’
     addAutoReleasedObject(new DlangCompletionAssistProvider);
                               ^
In file included from dlangeditorplugin.cpp:6:0:
dlangcompletionassistprovider.h:8:7: note:   because the following virtual functions are pure within ‘DlangEditor::DlangCompletionAssistProvider’:
 class DlangCompletionAssistProvider : public TextEditor::CompletionAssistProvider
       ^
In file included from ../qt-creator/src/plugins/texteditor/codeassist/completionassistprovider.h:33:0,
                 from dlangcompletionassistprovider.h:4,
                 from dlangeditorplugin.cpp:6:
../qt-creator/src/plugins/texteditor/codeassist/iassistprovider.h:50:18: note:  virtual bool TextEditor::IAssistProvider::supportsEditor(Core::Id) const
     virtual bool supportsEditor(Core::Id editorId) const = 0;