← Back to team overview

kicad-developers team mailing list archive

[PATCH] Github support for mingw-w64

 

Hi Guys,

Attached is the current patch I can commit to enable Github plugin support
for MinGW.

It enables OpenSSL, which can be pointed to by setting the OPENSSL_ROOT_DIR
when configuring with CMake. I've not done any work on getting OpenSSL to
compile under windows as it cross-compiles under Linux just fine.

The boost build steps are a bit different to Linux and OSX. On windows we
need to specify library subsets to b2 rather than bootstrap using a --with-
prefix for all required libraries.

The installation of boost headers is slightly different under MinGW too, we
end up with an include directory of ${BOOST_ROOT}/include/boost-1_54/
instead of just the include base directory.

There were some linking problems with github where I had to add
${wxWidgets_LIBRARIES}. I guess that is safe to do across all platforms?
boost::asio requires us to link in a socket layer under MinGW too, so
ws2_32 is added for MinGW only.

Dick, if you've got time to review, could you give me your views and any
suggestions for change?

I should also add - this will not work with mingw32 as far as I have
tested. The compilation of a subset of boost libraries does not work for me
under the mingw32. This is probably a major problem as I expect most people
who are using MinGW are still using the MinGW32 project and not the
mingw-w64 project. With mingw32 using dwarf-2 though it doesn't really make
any sense to me to use that project.

Best Regards,

Brian.

Attachment: github-mingw.diff
Description: Binary data


Follow ups