fxruby icon indicating copy to clipboard operation
fxruby copied to clipboard

The dll files are not included in the mswin gem

Open samuelintheforest opened this issue 5 years ago • 1 comments
trafficstars

Hi @larskanis @lylejohnson @IgorJorobus !

In windows fxruby usually installed from the rubyinstaller's ruby. This ruby uses MinGW / Msys2 for building. But when I build ruby from source in windows (using x64 Native Visual Studio command line) my platform type will be not x64_mingw but rather mswin. So, if I would like to install fxruby gem on my own built ruby than (if I'm correct) I'l get a normal (not the x64_mingw) version of the gem for windows. But the problem is that this gem version doesn't contains any dll libaries.

So do you know any solution for this issue? To install fxruby gem on a native built ruby environment in Windows?

Anyway, thank you for this project. I've just tried out the OpenGL (FXGlCanvas) part of it (with modern opengl) and works like a charm 👌😁.

Greetings, Samuel from Budapest 😁

samuelintheforest avatar Sep 17 '20 08:09 samuelintheforest

Sorry for my late answer! It is possible to native build fxruby on Windows. You have to provide libfox in order to build it. We do that on Appveyor and install libfox and swig from MSYS2-MINGW packages. swig is not necessary for installing the gem, but for compiling from git. See the appveyor.yml file how it works.

The fat binary gem for x64-mingw is build on Linux per cross compiler. I can not support the mswin build that way, but if you get the build running on that platform, I'm open to integrate your patches.

larskanis avatar Nov 27 '20 17:11 larskanis