hugopl / RubyCreator

Plugins to add Ruby language support to QtCreator IDE.
http://hugopl.github.io/RubyCreator/
GNU Lesser General Public License v3.0
44 stars 11 forks source link

Building fails from source #59

Closed martoko closed 7 years ago

martoko commented 8 years ago

System OS: Arch Linux x86_64 Kernel Release: 4.5.1-1-ARCH

Building from source gives the following error, after following instructions from the readme.

Output

g++ -c -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -std=gnu++0x -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_CREATOR -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -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.0.0/src/libs -I/home/martoko/RubyCreator/build/qt-creator-opensource-src-4.0.0/tools -Iqt-creator-opensource-src-4.0.0/src/plugins -I. -isystem /usr/include/qt -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtConcurrent -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtCore -I.moc/release-shared -I/usr/lib/qt/mkspecs/linux-g++ -o .obj/release-shared/RubyAmbiguousMethodAssistProvider.o ../editor/RubyAmbiguousMethodAssistProvider.cpp
../editor/RubyAmbiguousMethodAssistProvider.cpp: In constructor ‘Ruby::AmbigousMethodProposal::AmbigousMethodProposal(int, const QList<TextEditor::AssistProposalItem*>&)’:
../editor/RubyAmbiguousMethodAssistProvider.cpp:27:43: error: no matching function for call to ‘TextEditor::GenericProposal::GenericProposal(int&, const QList<TextEditor::AssistProposalItem*>&)’
         : GenericProposal(cursorPos, items)
                                           ^
In file included from ../editor/RubyAmbiguousMethodAssistProvider.cpp:10:0:
qt-creator-opensource-src-4.0.0/src/plugins/texteditor/codeassist/genericproposal.h:41:5: note: candidate: TextEditor::GenericProposal::GenericProposal(int, const QList<TextEditor::AssistProposalItemInterface*>&)
     GenericProposal(int cursorPos, const QList<AssistProposalItemInterface *> &items);
     ^
qt-creator-opensource-src-4.0.0/src/plugins/texteditor/codeassist/genericproposal.h:41:5: note:   no known conversion for argument 2 from ‘const QList<TextEditor::AssistProposalItem*>’ to ‘const QList<TextEditor::AssistProposalItemInterface*>&’
qt-creator-opensource-src-4.0.0/src/plugins/texteditor/codeassist/genericproposal.h:40:5: note: candidate: TextEditor::GenericProposal::GenericProposal(int, TextEditor::GenericProposalModel*)
     GenericProposal(int cursorPos, GenericProposalModel *model);
     ^
qt-creator-opensource-src-4.0.0/src/plugins/texteditor/codeassist/genericproposal.h:40:5: note:   no known conversion for argument 2 from ‘const QList<TextEditor::AssistProposalItem*>’ to ‘TextEditor::GenericProposalModel*’
qt-creator-opensource-src-4.0.0/src/plugins/texteditor/codeassist/genericproposal.h:37:25: note: candidate: constexpr TextEditor::GenericProposal::GenericProposal(const TextEditor::GenericProposal&)
 class TEXTEDITOR_EXPORT GenericProposal : public IAssistProposal
                         ^
qt-creator-opensource-src-4.0.0/src/plugins/texteditor/codeassist/genericproposal.h:37:25: note:   candidate expects 1 argument, 2 provided
../editor/RubyAmbiguousMethodAssistProvider.cpp: At global scope:
../editor/RubyAmbiguousMethodAssistProvider.cpp:48:10: error: ‘void Ruby::AmbigousMethodProposalItem::apply(TextEditor::TextEditorWidget*, int) const’ marked ‘override’, but does not override
     void apply(TextEditor::TextEditorWidget*, int) const Q_DECL_OVERRIDE
          ^
Makefile:1000: recipe for target '.obj/release-shared/RubyAmbiguousMethodAssistProvider.o' failed
make: *** [.obj/release-shared/RubyAmbiguousMethodAssistProvider.o] Error 1

screenshot from 2016-05-13 23-54-42

Upon building from AUR, I recieve the following error

Output

==> Making package: rubycreator-git VERSION-1 (Fri 13 May 23:47:43 CEST 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning RubyCreator git repo...
Cloning into bare repository '/var/cache/pacman/pkg/rubycreator-git16344/rubycreator-git/RubyCreator'...
==> Validating source files with md5sums...
    RubyCreator ... Skipped
==> Extracting sources...
  -> Creating working copy of RubyCreator git repo...
Cloning into 'RubyCreator'...
done.
fatal: Cannot update paths and switch to branch 'makepkg' at the same time.
Did you intend to checkout 'origin/qtc-3.5' which can not be resolved as commit?
==> ERROR: Failure while creating working copy of RubyCreator git repo
    Aborting...
hugopl commented 8 years ago

Thanks for the report, I'll test the aur package soon and put some feedback here when the issue gets fixed.

martoko commented 8 years ago

Great. Thanks for the quick response. :smiley:

Just going to point out, in case I wasn't clear:

hugopl commented 8 years ago

Ah, BTW just noticed that QtCreator was bumped to version 4.0.0 on ArchLinux, I didn't ported it to v4.0.0 yet, but I'll surely do ASAP, since I'm also an ArchLinux user...

in other words, if you have QtC 4.0.0 the plugin doesn't work yet.

hugopl commented 8 years ago

Try to compile from master branch now, it's working with QtC 4.0.0

The PKGBUILD need some adjustments, I'll do ASAP... you need to change the URL from: 'git+https://github.com/hugopl/RubyCreator.git#branch=qtc-3.5' to 'git+https://github.com/hugopl/RubyCreator.git'

hugopl commented 7 years ago

Works for me ;-)