2008年5月30日 星期五

用NetBeans開發qtruby4 GUI

雖然NetBeans的gem管理系統很好很強大,可是說實在有一點外強中乾的感覺,裝起來以後都會出問題……

我現在遇到的問題是已經在ruby下裝好qtruby4 for win32,然後用NetBeans 6.1開一個專案、直譯器選ruby 1.8,然後require 'Qt4',就被送這個訊息:

c:/ruby/lib/ruby/gems/1.8/gems/qtruby4-1.4.9-x86-mswin32/lib/qtruby4.so: 126: 找不到指定的模組。 - c:/ruby/lib/ruby/gems/1.8/gems/qtruby4-1.4.9-x86-mswin32/lib/qtruby4.so (LoadError)

結果搞了半天才發現是NetBeans的Project設定裡,Working Directory設空字串就會不知道跑到哪裡去,上面那行不是說找不到qtruby.so,是qtruby.so找不到他需要的mingwm10.dll……orz
把Working Directory改成DLL在的位置就行了

沒有留言:

CODE { display: block; /* fixes a strange ie margin bug */ font-family: Courier New; font-size: 8pt; overflow:auto; background: #f0f0f0 url(http://klcintw.images.googlepages.com/Code_BG.gif) left top repeat-y; border: 1px solid #ccc; padding: 10px 10px 10px 21px; max-height:200px; height:200px; // for IE6 line-height: 1.2em; } #quote { display: block; /* fixes a strange ie margin bug */ font-family: Verdana; font-size: 10pt; overflow:auto; background: #f7f7f7 url(http://lh5.ggpht.com/_z-VThISftkI/SXUlpyfw9ZI/AAAAAAAABYY/e3GUx9_Z4TE/s288/quote-l.gif) left top no-repeat; border: 4px dotted #ccc; padding: 15px 15px 15px 31px; /*up right bottom left*/ max-height:300px; line-height: 1.2em; }