Giter Club home page Giter Club logo

Comments (19)

mcorino avatar mcorino commented on June 3, 2024

All the information you need is described in the INSTALL document.
Pay particular attention to this section.

from wxruby3.

mcorino avatar mcorino commented on June 3, 2024

from wxruby3.

mishelhiti avatar mishelhiti commented on June 3, 2024

now i'm getting this:
Generating wxRuby3 reference documentation...Error occurred: undefined method []' for nil:NilClass and i traced it back to : rakelib/lib/generate/doc.rb:807:in block in gen_constants_doc'

do you know what could be the reason?

from wxruby3.

mishelhiti avatar mishelhiti commented on June 3, 2024

and when trying to require the gem i get:
undefined symbol: _ZThn688_N14wxTextCtrlBase8overflowEi
in:
wxruby3-0.9.8/lib/wxruby_core.so

from wxruby3.

mcorino avatar mcorino commented on June 3, 2024

from wxruby3.

mcorino avatar mcorino commented on June 3, 2024

from wxruby3.

mcorino avatar mcorino commented on June 3, 2024

from wxruby3.

mcorino avatar mcorino commented on June 3, 2024

Ok, first off, SLES12 is ancient and I have not tested anything on any Linux version that old. Your mileage may vary.

That said, if you can successfully build both a compatible wxWidgets version (3.2+; which it seems you can) and install a modern Ruby version I feel it should be possible to build wxRuby3 on this system.

There are 3 things I notice:

  1. The 2 "INFO: Cannot find..." messages while building wxRuby3 are unexpected as you say you are using wxWidgets 3.2.4 and for this version these messages should not show; they are however relatively harmless and we should first see if we can fix other problems.
  2. The message "Installation of binary gem with-wxwin requires an installed version of the patchelf utility." is fatal ass this tool is required for wxruby setup to successfully install the wxRuby3 extension libraries (and the embedded wxWidgets libraries). You say you downloaded and installed the 'patchelf' utility but have you tested if it actually works? Also does SLES12 have the standard utility command installed. The wxRuby3 build procedure executes command -v patchelf to see if the 'patchelf' tool is installed. If that fails it assumes the tool is not installed and the wxRuby3 installation fails.
  3. Why have you downloaded and build wxWidgets yourself? In case a system does not have a (compatible) wxWidgets version installed the default wxruby setup command will automatically download (git clone) the latest stable release (which is 3.2.4 currently) and build that for embedded deployment with tested configure options.

from wxruby3.

mishelhiti avatar mishelhiti commented on June 3, 2024

hi,
i've managed to set it up in linux and it works so thanks a lot!!
now i'm facing windows issues
-- Ruby level backtrace information ----------------------------------------
src/UserInterface/Avalancher.rb:7697:in <main>' C:/AVL/lib/gems/wxruby3-0.9.8/lib/wx/core/app.rb:51:in run'
C:/AVL/lib/gems/wxruby3-0.9.8/lib/wx/core/app.rb:51:in `main_loop'

-- C level backtrace information -------------------------------------------
C:\WINDOWS\SYSTEM32\ntdll.dll(ZwWaitForSingleObject+0x14) [0x00007ffb88a2f3e4]
C:\WINDOWS\System32\KERNELBASE.dll(WaitForSingleObjectEx+0x8e) [0x00007ffb85e4421e]
C:\Ruby27-x64\bin\x64-msvcrt-ruby270.dll(rb_vm_bugreport+0x34b) [0x00007ffb2a4f7adb]
C:\Ruby27-x64\bin\x64-msvcrt-ruby270.dll(rb_bug_for_fatal_signal+0x7f) [0x00007ffb2a3104ff]
C:\Ruby27-x64\bin\x64-msvcrt-ruby270.dll(ruby_sysinit+0x790) [0x00007ffb2a4517b0]
[0x00007ff73c681f32]
C:\WINDOWS\System32\KERNELBASE.dll(UnhandledExceptionFilter+0x1ec) [0x00007ffb85f6ca6c]
C:\WINDOWS\SYSTEM32\ntdll.dll(LdrResolveDelayLoadsFromDll+0x1472) [0x00007ffb88a6a312]
C:\WINDOWS\SYSTEM32\ntdll.dll(KiUserApcDispatcher+0xb0) [0x00007ffb88a33310]
C:\WINDOWS\SYSTEM32\ntdll.dll(chkstk+0x12f) [0x00007ffb88a3440f]
C:\WINDOWS\SYSTEM32\ntdll.dll(RtlFindCharInUnicodeString+0xa96) [0x00007ffb889ae466]
C:\WINDOWS\SYSTEM32\ntdll.dll(KiUserExceptionDispatcher+0x2e) [0x00007ffb88a333fe]
C:\AVL\lib\gems\wxruby3-0.9.8\ext\wxmsw32u_core_gcc_custom.dll(ZN12wxDropTarget6RevokeEP6HWND
_+0x25) [0x00007ffac00b05e5]
C:\AVL\lib\gems\wxruby3-0.9.8\ext\wxmsw32u_core_gcc_custom.dll(ZN8wxWindow16MSWHandleMessageEPxjyx+0xfac) [0x00007ffac00e9fec]
C:\AVL\lib\gems\wxruby3-0.9.8\ext\wxmsw32u_core_gcc_custom.dll(ZN10wxTextCtrl16MSWHandleMessageEPxjyx+0x2a) [0x00007ffac01c776a]
C:\AVL\lib\gems\wxruby3-0.9.8\ext\wxmsw32u_core_gcc_custom.dll(ZN8wxWindow13MSWWindowProcEjyx+0x2f) [0x00007ffac00d529f]
C:\WINDOWS\System32\USER32.dll(DispatchMessageW+0x741) [0x00007ffb87878961]
C:\WINDOWS\System32\USER32.dll(DispatchMessageW+0x3fc) [0x00007ffb8787861c]
C:\WINDOWS\System32\USER32.dll(GetClassLongW+0x58d) [0x00007ffb87883b5d]
C:\WINDOWS\SYSTEM32\ntdll.dll(KiUserCallbackDispatcher+0x24) [0x00007ffb88a333a4]
C:\WINDOWS\System32\win32u.dll(NtUserDestroyWindow+0x14) [0x00007ffb864f2754]
C:\AVL\lib\gems\wxruby3-0.9.8\ext\wxmsw32u_core_gcc_custom.dll(ZN8wxWindowD1Ev+0x40) [0x00007ffac00e3d80]
C:\AVL\lib\gems\wxruby3-0.9.8\ext\wxmsw32u_core_gcc_custom.dll(ZN7wxFrameD0Ev+0x2d) [0x00007ffac015bbed]
C:\AVL\lib\gems\wxruby3-0.9.8\ext\wxbase32u_gcc_custom.dll(ZN16wxAppConsoleBase20DeletePendingObjectsEv+0x4e) [0x00007ffb2a89375e]
C:\AVL\lib\gems\wxruby3-0.9.8\ext\wxbase32u_gcc_custom.dll(ZN16wxAppConsoleBase11ProcessIdleEv+0x58) [0x00007ffb2a8937f8]
C:\AVL\lib\gems\wxruby3-0.9.8\ext\wxmsw32u_core_gcc_custom.dll(ZN9wxAppBase11ProcessIdleEv+0x13) [0x00007ffac01f2263]
C:\AVL\lib\gems\wxruby3-0.9.8\ext\wxbase32u_gcc_custom.dll(ZN17wxEventLoopManual5DoRunEv+0x126) [0x00007ffb2a8c7f46]
C:\AVL\lib\gems\wxruby3-0.9.8\ext\wxbase32u_gcc_custom.dll(ZN15wxEventLoopBase3RunEv+0x5b) [0x00007ffb2a8c7bcb]
C:\AVL\lib\gems\wxruby3-0.9.8\ext\wxbase32u_gcc_custom.dll(ZN16wxAppConsoleBase8MainLoopEv+0x72) [0x00007ffb2a895822]
C:\AVL\lib\gems\wxruby3-0.9.8\ext\wxbase32u_gcc_custom.dll(Z12wxInitializev+0xa6) [0x00007ffb2a90f3a6]
C:\AVL\lib\gems\wxruby3-0.9.8\lib\wxruby_core.so(Init_wxGUIEventLoop+0x1ca5) [0x00007ffac0a0abd5]
C:\Ruby27-x64\bin\x64-msvcrt-ruby270.dll(rb_error_arity+0x353) [0x00007ffb2a4d0063]
C:\Ruby27-x64\bin\x64-msvcrt-ruby270.dll(rb_add_method+0x21f) [0x00007ffb2a4e618f]
C:\Ruby27-x64\bin\x64-msvcrt-ruby270.dll(rb_vm_exec+0x9cf) [0x00007ffb2a4db37f]
C:\Ruby27-x64\bin\x64-msvcrt-ruby270.dll(rb_call_end_proc+0x140) [0x00007ffb2a314b20]
C:\Ruby27-x64\bin\x64-msvcrt-ruby270.dll(ruby_run_node+0x95) [0x00007ffb2a319835]
[0x00007ff73c6827f9]
[0x00007ff73c6813b1]
[0x00007ff73c6814e6]
C:\WINDOWS\System32\KERNEL32.DLL(BaseThreadInitThunk+0x1d) [0x00007ffb87dc257d]

i receive this error while trying to run the app (the gui opens up then loads something without me touching it and crashes)
i've installed msys2 with mingw-w64-ucrt-x86_64-gcc and finished the setup fine i think, i had some problems regarding wh_setup path again but i changed it to the real path and the setup has finished
also my friend when he tried running the app received:
c:/Ruby27-x64/lib/ruby/site_ruby/2.7.0/ruby_installer/runtime/dll_directory.rb:104:in `add_dll_directory_winapi': AddDllDirectory failed for C:/AVL/lib/gems/wxruby3-0.9.8/ext (RubyInstaller::Runtime::DllDirectory::WinApiError)
he doesn't have msys installed and just tried to use my installed gem as the gem lib is in a shared repo between us
do you have any idea what could be the problem?

from wxruby3.

mcorino avatar mcorino commented on June 3, 2024

from wxruby3.

mcorino avatar mcorino commented on June 3, 2024

from wxruby3.

mishelhiti avatar mishelhiti commented on June 3, 2024

i installed everything all over again:
https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.6-1/rubyinstaller-devkit-2.7.6-1-x64.exe
with this version of ruby with msys in it
the setup finished with success but still we face the same issue of ntdl.dll as before & the local tests don't pass

Failure: test_bitmap_data(TestBitmapData):
Fetched out bitmap.
is not true.
C:/AVL/lib/gems/wxruby3-0.9.8/tests/test_clipboard.rb:100:in test_bitmap_data' 97: end 98: 99: out_bmp = d_obj_2.bitmap => 100: assert out_bmp.ok?, "Fetched out bitmap" 101: assert_equal height, out_bmp.height 102: assert_equal width, out_bmp.width 103: end C:/AVL/lib/gems/wxruby3-0.9.8/tests/lib/wxapp_runner.rb:21:in call'
C:/AVL/lib/gems/wxruby3-0.9.8/tests/lib/wxapp_runner.rb:21:in on_init' C:/AVL/lib/gems/wxruby3-0.9.8/lib/wx/core/app.rb:30:in on_ruby_init'
C:/AVL/lib/gems/wxruby3-0.9.8/lib/wx/core/app.rb:51:in main_loop' C:/AVL/lib/gems/wxruby3-0.9.8/lib/wx/core/app.rb:51:in run'
C:/AVL/lib/gems/wxruby3-0.9.8/tests/lib/wxapp_runner.rb:39:in `block in class:Runner'

F

Failure: test_data_object_composite(TestDataObjectComposite): is not true.
C:/AVL/lib/gems/wxruby3-0.9.8/tests/test_clipboard.rb:236:in block in test_data_object_composite' 233: 234: d_iarr = MySimpleIntArrayObject.new 235: Wx::Clipboard.open do | clip | => 236: assert clip.supported?(MY_INT_ARRAY_FORMAT) 237: clip.fetch d_iarr 238: end 239: C:/AVL/lib/gems/wxruby3-0.9.8/lib/wx/core/clipboard.rb:31:in open'
C:/AVL/lib/gems/wxruby3-0.9.8/tests/test_clipboard.rb:235:in test_data_object_composite' C:/AVL/lib/gems/wxruby3-0.9.8/tests/lib/wxapp_runner.rb:21:in call'
C:/AVL/lib/gems/wxruby3-0.9.8/tests/lib/wxapp_runner.rb:21:in on_init' C:/AVL/lib/gems/wxruby3-0.9.8/lib/wx/core/app.rb:30:in on_ruby_init'
C:/AVL/lib/gems/wxruby3-0.9.8/lib/wx/core/app.rb:51:in main_loop' C:/AVL/lib/gems/wxruby3-0.9.8/lib/wx/core/app.rb:51:in run'
C:/AVL/lib/gems/wxruby3-0.9.8/tests/lib/wxapp_runner.rb:39:in `block in class:Runner'

F

Failure: test_text_data(TestTextData)
C:/AVL/lib/gems/wxruby3-0.9.8/tests/test_clipboard.rb:26:in test_text_data' 23: Wx::Clipboard.open do | clip | 24: clip.fetch td_2 25: end => 26: assert_equal("WXRUBY", td_2.text) 27: 28: Wx::Clipboard.open do | clip | 29: clip.clear C:/AVL/lib/gems/wxruby3-0.9.8/tests/lib/wxapp_runner.rb:21:in call'
C:/AVL/lib/gems/wxruby3-0.9.8/tests/lib/wxapp_runner.rb:21:in on_init' C:/AVL/lib/gems/wxruby3-0.9.8/lib/wx/core/app.rb:30:in on_ruby_init'
C:/AVL/lib/gems/wxruby3-0.9.8/lib/wx/core/app.rb:51:in main_loop' C:/AVL/lib/gems/wxruby3-0.9.8/lib/wx/core/app.rb:51:in run'
C:/AVL/lib/gems/wxruby3-0.9.8/tests/lib/wxapp_runner.rb:39:in `block in class:Runner'
<"WXRUBY"> expected but was
<"">

Finished in 0.1730129 seconds.

the weWidgets the was installed via the wxruby setup is v3.2.4-with-msvs2012-fix
do you have any idea what can i try to make it work?

from wxruby3.

mcorino avatar mcorino commented on June 3, 2024

I'll be able to look into this some more coming week.
In the mean time please provide me with all details concerning your installation/setup:

  • Windows version
  • Ruby installer version (latest 2.7 release?)
  • wxRuby3 setup commands

from wxruby3.

mishelhiti avatar mishelhiti commented on June 3, 2024

Thanks a lot!!
I have windows 11
rubyinstaller-2.7.6-1-x64 this is the ruby installer i downloaded with ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a)
and i used the wxruby setup as is with nothing added

from wxruby3.

mcorino avatar mcorino commented on June 3, 2024

Ah, wxRuby3 has not been tested yet for Windows 11.
You may be a victim of some Windows 11 (clipboard) problems that have been reported for wxWidgets 3.2.4.
Unfortunately I have no Windows 11 available so I cannot test myself (have not found any CI runners yet either).
I'll see if I can find something out from the wxWidgets code.
Also I hope wxWidgets 3.2.5 gets released the coming week after which I plan to release wxRuby3 1.0.0 and than we can see if the problem still exists there.

from wxruby3.

mcorino avatar mcorino commented on June 3, 2024

What happens if you run the wxRuby3 'dragdrop' sample app?

from wxruby3.

mishelhiti avatar mishelhiti commented on June 3, 2024

i think it works

from wxruby3.

mishelhiti avatar mishelhiti commented on June 3, 2024

i found what causes the crash of the app, don't know why but when we do:
TextCtrl.new(win, -1, "", Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, Wx::TE_RICH)
it gets seg fault
without Wx::TE_RICH it works
this is so far, we need to test the whole app but just to let you know

from wxruby3.

mcorino avatar mcorino commented on June 3, 2024

i found what causes the crash of the app, don't know why but when we do: TextCtrl.new(win, -1, "", Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, Wx::TE_RICH) it gets seg fault without Wx::TE_RICH it works this is so far, we need to test the whole app but just to let you know

Good catch!
Can you please try running the wxRuby3 'widgets' sample and test the 'Text' page there. With that you can test the Wx::TextCtrl with and without styles like Wx::TE_RICH. I am curious to see if that sample crashes as well in your setup. It does NOT crash in my setup with Windows 10.

from wxruby3.

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.