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]
open Slicer-SuperBuild/LibArchive/libarchive/archive_pack_dev.c
do the following changes (see line 55 and following): #include <string.h> #endif #ifdef HAVE_SYS_TYPES_H //#include <sys/types.h> #include <sys/sysmacros.h> #endif #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.
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.