Giter VIP home page Giter VIP logo

Comments (11)

raa0121 avatar raa0121 commented on June 11, 2024
  • Windows 10 (x64)

ちょっと試してはいないのですが、x86_64 環境でも、 i686 向けRuby は動きますし、
そちらをインストールすると、wxruby-ruby19 がインストールできると思います。

from bcdice.

ochaochaocha3 avatar ochaochaocha3 commented on June 11, 2024

らぁさん、ご指摘ありがとうございます。確かにx86版Rubyを入れれば動きますね。ただ、他の用途でx64版Rubyを使いたい場合にどうするか、というのが気になりました。

wxWidgets 3.0に対応したgemとしてはrwxというものもあるようなので、切り替えを試してみるのもいいかもしれないと思いました。

from bcdice.

raa0121 avatar raa0121 commented on June 11, 2024

ただ、他の用途でx64版Rubyを使いたい場合にどうするか、というのが気になりました。

PATH を自分で切り替えるか、https://bitbucket.org/jonforums/uru を使うのがいいと思います。
Windowsで Ruby を使うのに、PATH を管理するのは割りと基本だと思ってます。

from bcdice.

ochaochaocha3 avatar ochaochaocha3 commented on June 11, 2024

Windowsではx86版Rubyでなんとかなりそうというのは分かったのですが、他のOSについてはいかがでしょうか。対応できないならばその旨を明記すると現在の状態が分かりやすいです。

from bcdice.

torgtaitai avatar torgtaitai commented on June 11, 2024

基本的にWindowsでしか検証ができていないのが実情です。
RubyでデフォルトのGUI環境がTcl/Tkのように存在すれば早いのですが…
rwxが乗り換え先として使えるのであれば、それはそれで検討してみたいところですが、それはまた後の話としたいです。

やはりお茶さんの提案通り、CLIベースのツールとして、ラッパーのGUIを別途管理、しかないのですかねぇ。

from bcdice.

raa0121 avatar raa0121 commented on June 11, 2024

rwx を導入するなら、RUBY_PLATFORM で分岐させれば、Windows i686 以外を対象にできるので、そういう方針もありかもしれません。

from bcdice.

raa0121 avatar raa0121 commented on June 11, 2024

rwx もここ数年、gem をリリースしてないプロダクトなので、あまり当てにしないほうがいいかもしれないですね…

from bcdice.

torgtaitai avatar torgtaitai commented on June 11, 2024

手堅くいくならCUIツールにするしかないんですかねぇ。切ないものです。

from bcdice.

ochaochaocha3 avatar ochaochaocha3 commented on June 11, 2024

@raa0121 改めてRuby Installerからi686-mingw32版2.4.1をインストールし、uruで切り替えて試してみましたが、gemのインストールができても起動できない状態のようです。

# mingw32のbash
# 一部パスを隠してあります($HOME -> ホームディレクトリ)

$ cd ~/Documents/ruby/BCDice/src

$ ruby --version
ruby 2.4.1p111 (2017-03-22 revision 58053) [i386-mingw32]

$ bundle install
Fetching gem metadata from https://rubygems.org/..............
Fetching version metadata from https://rubygems.org/..
Fetching rake 12.0.0
Installing rake 12.0.0
Fetching net-irc 0.0.9
Installing net-irc 0.0.9
Fetching wxruby-ruby19 2.0.1 (x86-mingw32)
Installing wxruby-ruby19 2.0.1 (x86-mingw32)
Fetching ocra 1.3.8
Installing ocra 1.3.8
Fetching power_assert 1.0.2
Installing power_assert 1.0.2
Using bundler 1.15.1
Fetching test-unit 3.2.4
Installing test-unit 3.2.4
Bundle complete! 5 Gemfile dependencies, 7 gems now installed.
Bundled gems are installed into ./vendor/bundle.

$ bundle exec ruby bcdice.rb
$HOME/Documents/ruby/BCDice/src/vendor/bundle/ruby/2.4.0/gems/wxruby-ruby19-2.0.1-x86-mingw32/lib/wx.rb:12:in `require': 126: 指定されたモジュールが見つかりません。   - $HOME/Documents/ruby/BCDice/src/vendor/bundle/ruby/2.4.0/gems/wxruby-ruby19-2.0.1-x86-mingw32/lib/wxruby2.so (LoadError)
        from $HOME/Documents/ruby/BCDice/src/vendor/bundle/ruby/2.4.0/gems/wxruby-ruby19-2.0.1-x86-mingw32/lib/wx.rb:12:in `<top (required)>'
        from $HOME/Documents/ruby/BCDice/src/bcdiceGui.rb:5:in `require'
        from $HOME/Documents/ruby/BCDice/src/bcdiceGui.rb:5:in `<top (required)>'
        from bcdice.rb:53:in `require'
        from bcdice.rb:53:in `<main>'

# 「モジュールが見つからない」と指摘されたファイル自体は存在する
$ ls $HOME/Documents/ruby/BCDice/src/vendor/bundle/ruby/2.4.0/gems/wxruby-ruby19-2.0.1-x86-mingw32/lib/wxruby2.so
$HOME/Documents/ruby/BCDice/src/vendor/bundle/ruby/2.4.0/gems/wxruby-ruby19-2.0.1-x86-mingw32/lib/wxruby2.so

エラーメッセージから、共有ライブラリ内の関数が呼び出せていないように見えました。これは新しいRubyにはAPIの面で対応していないという状態かもしれません。

竹流さんと同じ環境にしようとRuby Installerから1.9.3を入れても、既にgemのインストールすら難しい状態です(同梱のgemコマンドはSSLエラーで動かない、最新バージョンのrubygemsはマジックコメントなしでUTF-8で書かれているため、1.9系では invalid byte sequence in UTF-8 のエラーで動かない)。

以上より、やはり今からWindows環境でBCDiceのソースコードをダウンロードしてGUI版を起動するのは厳しいと言わざるを得ません。

from bcdice.

ochaochaocha3 avatar ochaochaocha3 commented on June 11, 2024

ロードマップ上、GUIサポートは打ち切りの方向のため、対応は難しそうです。

from bcdice.

ysakasin avatar ysakasin commented on June 11, 2024

bcdice/bcdice-irc にて対応

from bcdice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.