seanchas116 / ruby-qml

A QML / Qt Quick bindings for Ruby
http://seanchas116.github.io/ruby-qml
MIT License
136 stars 17 forks source link

module "QtQuick" is not installed #45

Open scope2229 opened 3 years ago

scope2229 commented 3 years ago

Hey im not too sure what ive done but previously ive used this gem and its worked wonders but recently moving to a new machine I installed qt 2.14 and can run my qml inside a project loaded with QtCreator so i know the QML itself is ok. But when running my app I'm receiving errors i haven't seen before. (it does still run on my old machine but im unable to determine what package is helping and which is not)

Traceback (most recent call last): 22: from ./bin/rha_automation:8:in <main>' 21: from ./bin/rha_automation:8:ineach' 20: from ./bin/rha_automation:8:in block in <main>' 19: from /home/.rvm/gems/ruby-2.7.1@rha_ruby/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:inrequire' 18: from /home/.rvm/gems/ruby-2.7.1@rha_ruby/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:291:in load_dependency' 17: from /home/.rvm/gems/ruby-2.7.1@rha_ruby/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:inblock in require' 16: from /home/.rvm/rubies/ruby-2.7.1/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:155:in require' 15: from /home/.rvm/rubies/ruby-2.7.1/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:155:inrequire' 14: from /home/Documents/rha-ruby/lib/rha.rb:18:in <top (required)>' 13: from /home/Documents/rha-ruby/lib/rha.rb:30:in' 12: from /home/Documents/rha-ruby/lib/rha.rb:31:in <class:Application>' 11: from /home/.rvm/gems/ruby-2.7.1@rha_ruby/gems/qml-1.0.2/lib/qml/application.rb:75:inrun' 10: from /home/.rvm/gems/ruby-2.7.1@rha_ruby/gems/qml-1.0.2/lib/qml/application.rb:75:in tap' 9: from /home/.rvm/gems/ruby-2.7.1@rha_ruby/gems/qml-1.0.2/lib/qml/application.rb:76:inblock in run' 8: from /home/Documents/rha-ruby/lib/rha.rb:32:in block in <class:Application>' 7: from /home/.rvm/gems/ruby-2.7.1@rha_ruby/gems/qml-1.0.2/lib/qml/application.rb:39:inload_path' 6: from /home/.rvm/gems/ruby-2.7.1@rha_ruby/gems/qml-1.0.2/lib/qml/application.rb:26:in load' 5: from /home/.rvm/gems/ruby-2.7.1@rha_ruby/gems/qml-1.0.2/lib/qml/application.rb:26:innew' 4: from /home/.rvm/gems/ruby-2.7.1@rha_ruby/gems/qml-1.0.2/lib/qml/component.rb:28:in initialize' 3: from /home/.rvm/gems/ruby-2.7.1@rha_ruby/gems/qml-1.0.2/lib/qml/component.rb:34:inload_path' 2: from /home/.rvm/gems/ruby-2.7.1@rha_ruby/gems/qml-1.0.2/lib/qml/component.rb:60:in check_error_string' 1: from /home/.rvm/gems/ruby-2.7.1@rha_ruby/gems/qml-1.0.2/lib/qml/component.rb:60:intap' /home/.rvm/gems/ruby-2.7.1@rha_ruby/gems/qml-1.0.2/lib/qml/component.rb:61:in `block in check_error_string': file:///home/Documents/rha-ruby/lib/ui/main.qml:4 module "QtQuick.Window" is not installed (QML::QMLError) file:///home/Documents/rha-ruby/lib/ui/main.qml:3 module "QtQuick.Layouts" is not installed file:///home/Documents/rha-ruby/lib/ui/main.qml:1 module "QtQuick" is not installed file:///home/Documents/rha-ruby/lib/ui/main.qml:4 module "QtQuick.Window" is not installed file:///home/Documents/rha-ruby/lib/ui/main.qml:3 module "QtQuick.Layouts" is not installed file:///home/Documents/rha-ruby/lib/ui/main.qml:1 module "QtQuick" is not installed file:///home/Documents/rha-ruby/lib/ui/main.qml:4 module "QtQuick.Window" is not installed file:///home/Documents/rha-ruby/lib/ui/main.qml:3 module "QtQuick.Layouts" is not installed file:///home/Documents/rha-ruby/lib/ui/main.qml:1 module "QtQuick" is not installed

scope2229 commented 3 years ago

I fixed this error by adding a missing lib i had forgotten but its replaced the error with QML file not found and err file too short

/home/.rvm/rubies/ruby-2.7.1/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:155:in require': cannot load such file -- qml (LoadError) /home/.rvm/gems/ruby-2.7.1@rha_ruby/gems/qml-1.0.2/lib/qml/qml.rb:1:inrequire_relative': /home/.rvm/gems/ruby-2.7.1@rha_ruby/gems/qml-1.0.2/ext/qml/qml.so: file too short - /home/.rvm/gems/ruby-2.7.1@rha_ruby/gems/qml-1.0.2/ext/qml/qml.so (LoadError)