From 38d211b5e1e5662fc7282fdef65b33fa58d48ccc Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Wed, 7 Mar 2018 21:03:04 -0500 Subject: [PATCH] Document workaround for Windows compilation issues with OCE --- Documentation/development/compiling.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/development/compiling.md b/Documentation/development/compiling.md index c31d80cc09..3ae03fa508 100644 --- a/Documentation/development/compiling.md +++ b/Documentation/development/compiling.md @@ -338,6 +338,20 @@ configure pacman to prevent upgrading the 64-bit Boost package by adding: to your /etc/pacman.conf file. +### Building OCE from source + +KiCad requires OCE by default, and the version installed by `pacman` can cause build errors in +x86_64 systems as of March 2018. In order to work around this, you can build OCE from source on +these systems. Building OCE on Windows requires that you place the source code in a very short +directory path, otherwise you will run into errors caused by the maximum path length on Windows. +In the example below, the `MINGW-packages` repository is cloned to `/c/mwp`, which is equivalent to +`C:\mwp` in Windows path terminology. You may wish to change the destination of the `git clone` +command if you do not want to place it on the root of your C drive, but if you run in to strange +compilation errors about missing files, it is probably because your path is too long. + + git clone https://github.com/Alexpux/MINGW-packages /c/mwp + cd /c/mwp/mingw-w64-oce + makepkg-mingw -is # Building KiCad on macOS # {#build_osx}