cosmoscout / cosmoscout-vr

:milky_way: A virtual universe which lets you explore, analyze and present huge planetary datasets and large simulation data in real-time.
Other
351 stars 27 forks source link

Support the MinGW Compiler Toolchain #307

Open JonasGilg opened 1 year ago

JonasGilg commented 1 year ago

In order to support MinGW all of our dependencies have to work with the pipeline. This issue will track the progress on the dependencies and documents all important information for future users.

JonasGilg commented 1 year ago

Environment

Install MSYS2

Install dependencies

JonasGilg commented 1 year ago

Ok, OpenSG is problematic, as it has a lot of these errors:


OSGSystem/OSGImage.inl:105:49: error: specialization of 'void osg::SField<SFieldTypeT, fieldNameSpace>::pushValueByStr(const osg::Char8*) [with FieldTypeT = osg:: FCPtr<osg::AttachementContainerPtr, osg::Image>; int fieldNameSpace = 0; osg::Char8 = char]' after instantiation
  105 | void SFImagePtr::pushValueByStr(const Char8 *str)
      |                                                 ^
JonasGilg commented 1 year ago

All libraries except CEF can be compiled for MinGW. CEF seems to be very difficult, but there might be a workaround using the Windows binaries: https://bitbucket.org/chromiumembedded/cef/issues/1718/add-cross-compilation-support-to-cef#comment-27305080