Offline Linux Building - make Requires Internet

Asked by Jason Lund

Short version:
Can't build KiCAD 4.0.6 offline due to download dependencies (boost is the first I encountered). Is there an option to disable these downloads?

Long version:
Building the KiCAD 4.0.6 source from scratch, it appears that the instructions here are not sufficient for offline builds:

http://docs.kicad-pcb.org/doxygen/md_Documentation_development_compiling.html

I am able to perform the cmake command as specified, but make errors out:

-------------------------------------------------------------------------------

[ 0%] Performing download step (download, verify and extract) for 'boost'
-- downloading...
     src='http://downloads.sourceforge.net/project/boost/boost/1.54.0/boost_1_54_0.tar.bz2'
     dst='/root/kicad-4.0.6/.downloads-by-cmake/boost_1_54_0.tar.bz2'
     timeout='1200 seconds'
CMake Error at boost-stamp/download-boost.cmake:9 (file):
  file DOWNLOAD HASH mismatch

    for file: [/root/kicad-4.0.6/.downloads-by-cmake/boost_1_54_0.tar.bz2]
      expected hash: [15cb8c0803064faef0c4ddf5bc5ca279]
        actual hash: [d41d8cd98f00b204e9800998ecf8427e]

make[2]: *** [../.downloads-by-cmake/boost_1_54_0/src/boost-stamp/boost-download] Error 1
make[1]: *** [CMakeFiles/boost.dir/all] Error 2
make: *** [all] Error 2

-------------------------------------------------------------------------------

Is there a cmake, make, configure, etc. option I can use to disable this check? Or, is there a preferred method for offline compilation of KiCAD?

Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
KiCad Edit question
Assignee:
No assignee Edit question
Solved by:
Jason Lund
Solved:
Last query:
Last reply:
Revision history for this message
Jason Lund (jasonrlund) said :
#1

A follow up/solution - it turns out that one can manually download these and move them into the .downloads-from-cmake directory.

Revision history for this message
Wayne Stambaugh (stambaughw) said :
#2

I'm not sure why your are building 4.0.6 when 4.0.7 is the latest stable release. You can force the KiCad build to use boost installed on your system by adding -DKICAD_SKIP_BOOST=ON to the cmake command. This will attempt to find boost installed on your system instead of downloading and patching a known working version of boost which is the default. There is one caveat, if the version of boost installed on your system is greater than 1.57, KiCad will not build so you may have to install an older version of boost on your system.

Revision history for this message
Jason Lund (jasonrlund) said :
#3

Wayne, thanks for the info. Truth be told, I know there is a new version, but the KiCAD source download still lists 4.0.6 as the most current stable release (the other pre-packaged downloads indicate 4.0.7 though):

http://kicad-pcb.org/download/source/

I was able to get the 4.0.7 source by manually changing the 4.0.6 URL, but wasn't sure if there was a reason 4.0.6 was still listed. Sounds like this isn't intentional?

Revision history for this message
Wayne Stambaugh (stambaughw) said :
#4

On 9/21/2017 8:27 AM, Jason Lund wrote:
> Question #658426 on KiCad changed:
> https://answers.launchpad.net/kicad/+question/658426
>
> Jason Lund posted a new comment:
> Wayne, thanks for the info. Truth be told, I know there is a new
> version, but the KiCAD source download still lists 4.0.6 as the most
> current stable release (the other pre-packaged downloads indicate 4.0.7
> though):
>
> http://kicad-pcb.org/download/source/
>
> I was able to get the 4.0.7 source by manually changing the 4.0.6 URL,
> but wasn't sure if there was a reason 4.0.6 was still listed. Sounds
> like this isn't intentional?
>

Our web devs must have overlooked that. You can also download the
source archives from the developers website: https://launchpad.net/kicad