Ideas for Wiki Improvement - Topic: Build Instructions

Hi there!

I am referencing to this page:

I finally figured out how to build Slicer!!! (Ubuntu 18.04) Anyway, it took me soo long to fix my problem. The following notes would have helped a lot:

BUILD Slicer

$ make -j

When you use the -j option of make you won’t typically see the error message so run make without -j to see where it actually errors out. Source: [Installation issues: macOS Mojave 10.14.6]

Second I had to face this problem:
So it would be really nice to find a note for Ubuntu >=18.04 :

  • open Slicer-SuperBuild/LibArchive/libarchive/archive_pack_dev.c
  • do the following changes (see line 55 and following):
    #include <string.h>
    #ifdef HAVE_SYS_TYPES_H
    //#include <sys/types.h>
    #include <sys/sysmacros.h>
    #ifdef HAVE_SYS_STAT_H
    #include <sys/stat.h>

I think these hints aren’t given anywhere in the wiki. Maybe they could be helpful.

1 Like

Hi @marie - thanks for the suggestions. I added your note about -j plus a little extra info to the wiki.

For the libarchive issue, hopefully people will find this thread to learn this workaround. Longer term it would be great to have a real fix to the build so the workaround isn’t needed. Lately we have been keeping more info here in discourse where multiple people can comment but not necessarily duplicating it in the wiki.

We are hoping to transition documentation into git for better version control so it will be clearer which workaround are required for which specific slicer versions. We definitely appreciate help with this.

1 Like

@marie @pieper Could you please check if updating LibArchive to v3.4.0 fixes the issue? See pull request here:

1 Like

Ubuntu 18.04.3
CMake v3.15.5
git v2.17.1
Qt v5.11.0 (as recommended)
subversion v1.9.7-4 and libapache2-mod-svn v1.9.7-4
gcc v7.4.0

Slicer-SuperBuild/LibArchive/libarchive/archive_pack_dev.c remained untouched.
I built the master branch including your changes and it worked! Thanks!