Closed edwinacunav closed 4 years ago
Are you trying to compile what branch? What version of QtCreator do you have installed in your system?
On Fri, Oct 19, 2018 at 3:56 AM Ed notifications@github.com wrote:
When I tried to compile the plugin this was its output. What can I do to make it compile successfully?
Project configured under build directory, go there and call make. RubyCreator-master/build$ make g++ -c -pipe -Wno-noexcept-type -O2 -std=gnu++1y -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -D'RELATIVE_PLUGIN_PATH="../lib/qtcreator/plugins"' -D'RELATIVE_LIBEXEC_PATH="../libexec/qtcreator"' -D'RELATIVE_DATA_PATH="../share/qtcreator"' -D'RELATIVE_DOC_PATH="../share/doc/qtcreator"' -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_CREATOR -DQT_NO_CAST_TO_ASCII -DQT_RESTRICTED_CAST_FROM_ASCII -DQT_DISABLE_DEPRECATED_BEFORE=0x050600 -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/src -Iqt-creator-opensource-src-4.5.2/src -Iqt-creator-opensource-src-4.5.2/src/libs -I/home/edwin/Downloads/RubyCreator-master/build/qt-creator-opensource-src-4.5.2/tools -Iqt-creator-opensource-src-4.5.2/src/plugins -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtConcurrent -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.moc/release-shared -isystem /usr/include/libdrm -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o .obj/release-shared/RubyPlugin.o ../RubyPlugin.cpp Assembler messages: Fatal error: can't create .obj/release-shared/RubyPlugin.o: Permission denied In file included from ../RubyPlugin.cpp:6:0: ../editor/RubyCodeStylePreferencesFactory.h:16:13: error: ‘QString Ruby::CodeStylePreferencesFactory::snippetProviderGroupId() const’ marked ‘override’, but does not override QString snippetProviderGroupId() const override; ^
~~~~~ In file included from ../RubyPlugin.cpp:14:0: ../projectmanager/RubyProject.h:38:10: error: ‘bool Ruby::Project::needsBuildConfigurations() const’ marked ‘final’, but is not virtual bool needsBuildConfigurations() const final { return false; } ^~~~~~~~ In file included from ../RubyPlugin.cpp:16:0: ../projectmanager/RubyRunConfiguration.h:18:51: error: ‘RunConfigurationCreationInfo’ in namespace ‘ProjectExplorer’ does not name a type void doAdditionalSetup(const ProjectExplorer::RunConfigurationCreationInfo &info) override; ^~~~~~~~ ../projectmanager/RubyRunConfiguration.h:18:10: error: ‘void Ruby::RunConfiguration::doAdditionalSetup(const int&)’ marked ‘override’, but does not override void doAdditionalSetup(const ProjectExplorer::RunConfigurationCreationInfo &info) override; ^~~~~ ../projectmanager/RubyRunConfiguration.h:22:1: error: expected class-name before ‘{’ token { ^ ../RubyPlugin.cpp: In member function ‘void Ruby::Plugin::initializeToolsSettings()’: ../RubyPlugin.cpp:110:24: error: invalid new-expression of abstract class type ‘Ruby::CodeStylePreferencesFactory’ auto factory = new CodeStylePreferencesFactory; ^~~~~~~ In file included from ../RubyPlugin.cpp:6:0: ../editor/RubyCodeStylePreferencesFactory.h:8:7: note: because the following virtual functions are pure within ‘Ruby::CodeStylePreferencesFactory’: class CodeStylePreferencesFactory : public TextEditor::ICodeStylePreferencesFactory ^~~~~~~ In file included from ../editor/RubyCodeStylePreferencesFactory.h:4:0, from ../RubyPlugin.cpp:6: qt-creator-opensource-src-4.5.2/src/plugins/texteditor/icodestylepreferencesfactory.h:50:30: note: virtual TextEditor::SnippetProvider TextEditor::ICodeStylePreferencesFactory::snippetProvider() const virtual SnippetProvider snippetProvider() const = 0; ^~~~~~~ Makefile:767: recipe for target '.obj/release-shared/RubyPlugin.o' failed make: *** [.obj/release-shared/RubyPlugin.o] Error 2— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hugopl/RubyCreator/issues/122, or mute the thread https://github.com/notifications/unsubscribe-auth/AAsbAQG0Uowq46o3fp0lMNXRQ_SGVG3Eks5umXeOgaJpZM4Xvxm_ .
-- Hugo Parente Lima
Maybe I'm quite a bit late with this but it seems you also suffer from compatibility and deployment issues with your Qt Creator plugin. I just wanted to tell you that I found a viable solution which allows me to deploy binaries for Linux, Windows and Mac and people can directly download an run it. People are happy with it and I can focus on more useful things than chasing up a moving target. In case you're interested here is more information https://github.com/rochus-keller/VerilogCreator/blob/master/README.md and https://github.com/rochus-keller/QtcVerilog.
I'm going to create a docker image based on archlinux, to easy the procedure for people that just want to try it without the burden of deal with different versions and compile problems.
That's a possible approach of course, but it has a couple of disadvantages. Since your plugin - like mine - only depends on minimal Qtc stuff, using a stripped-down Qtc version is feasible and works natively on all platforms. Good luck.
When I tried to compile the plugin this was its output. What can I do to make it compile successfully? Since pasting the code here is a mess, I have uploaded the file with all of the output information I could gather... rubycreatoroutput.txt