View Issue Details

IDProjectCategoryView StatusLast Update
0003294Slicer4Core: Building (CMake, Superbuild)public2017-06-07 23:27
Reporterfedorov Assigned Tojcfr  
PrioritylowSeveritytrivialReproducibilityalways
Status closedResolutionfixed 
Product Version 
Target VersionSlicer 4.3.1Fixed in VersionSlicer 4.3.1 
Summary0003294: Swig fails to configure with octave installed unless octave-headers are installed
Description

from slicer-devel communication Aug 13, 2013:

Brad Lowekamp:

Andriy,

I have seen that error once before. The Swig configure options has these type of options:

--without-octave Disable Octave
--with-octave=path Set location of Octave executable
--without-java Disable Java

I might as well disable everything but python to prevent this type of error, where no dev libraries are installed for a language.

Wantto create a Mantis issue and assign it to me?

Thanks,
Brad

On Aug 13, 2013, at 5:29 PM, Andriy Fedorov <fedorov@bwh.harvard.edu> wrote:

Hi,

I think this turned out to be a special case. I just had time to look
into this now. Here's the error log with 1 thread:

checking for octave... octave
checking for mkoctfile... configure: error: mkoctfile is not installed
[ 85%] Performing build step for 'Swig'
make[4]: *** No targets specified and no makefile found. Stop.

googling for mkoctfile brought me to this post:
http://ubuntuforums.org/showthread.php?t=955385

"sudo apt-get install octave-headers" -- and the Swig build works as expected.

AF

On Tue, Aug 13, 2013 at 2:26 PM, Steve Pieper <pieper@ibility.net> wrote:

Hi Andrey -

Maybe there is some network issue - I just enabled simpleitk on a ubuntu
13.04 build and simpleITK built fine, but the checkout of SimpleFilters from
github is hanging (both from inside slicer's build and when I try to check
it out on the command line). A git checkout of SimpleFilters on a mac is
working fine.

-Steve

On Tue, Aug 13, 2013 at 1:28 PM, Bradley Lowekamp <blowekamp@mail.nih.gov>
wrote:

I believe you are correct that SimpleITK is the only super build target
which requires Swig.

It would appear that something when wrong during the download or
configuration phase of the Swig Superbuild. Have you been able to build this
before? Or did this just start to happen?

Perhaps just deleting the Swig and Swig-prefix directories will resolve
it? Can you determine if you were able to download and extract the swig tar
ball from midas?

Brad

On Aug 13, 2013, at 12:26 PM, Andriy Fedorov <fedorov@bwh.harvard.edu>
wrote:

Indeed, turning SimpleITK off allows me to proceed with the build.

On Tue, Aug 13, 2013 at 12:19 PM, Andriy Fedorov
<fedorov@bwh.harvard.edu> wrote:

Hi,

I am trying to build on Ubuntu 12.04LTS with SimpleITK on, and I have
the following build error:

[ 73%] Performing build step for 'Swig'
make[3]: No targets specified and no makefile found. Stop.
make[2]:
[Swig-prefix/src/Swig-stamp/Swig-build] Error 2
make[1]: [CMakeFiles/Swig.dir/all] Error 2
make:
[all] Error 2

Configured with cmake 2.8.11.2.

AF

TagsNo tags attached.

Activities

jcfr

jcfr

2013-09-02 20:25

administrator   ~0009808

Reminder sent to: blowekamp

Hi Brad,

Should we consider this issue as resolved ? Thks

blowekamp

blowekamp

2013-09-03 05:05

developer   ~0009820

Unfortunately, my change never made it off my computer. So its not fixed yet.

jcfr

jcfr

2013-09-03 05:19

administrator   ~0009822

Thanks for the update. We gonna probably do a patch release in the coming one or two weeks, if you think you will have a chance to work on this, we can keep it targeted for 4.3.1. Otherwise, we can re-targeted for 4.4.0.

jcfr

jcfr

2013-09-03 05:58

administrator   ~0009825

@Andriy: When you have a chance, could you try the patch proposed by Brad. See https://github.com/blowekamp/Slicer/commit/8235eb5b359c12e05607bc21d53b6f5164dc2df4

fedorov

fedorov

2013-09-03 06:23

developer   ~0009827

@jcfr: I uninstalled octave-headers: swig configure breaks in master, but everything works fine in Brad's branch, so it resolves the issue I had.

jcfr

jcfr

2013-09-23 12:01

administrator   ~0010067

Last edited: 2013-09-23 12:02

@fedorov: Thanks for testing.

Fixed in r22479
See http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&amp;revision=22479

jcfr

jcfr

2017-06-07 23:27

administrator   ~0014580

Fix committed to 2145-support-for-installing-extension-from-file branch.

Related Changesets

Slicer: 2145-support-for-installing-extension-from-file ad40f158

2013-09-23 16:00:54

jcfr

Details Diff
BUG: Explicitly disable using octave during Swig configure

Fix: 0003294

Also explicitly specify Slicer python to swig configuration.

From: Bradley Lowekamp <blowekamp@mail.nih.gov>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22479 3bd1e089-480b-0410-8dfb-8563597acbee
mod - SuperBuild/External_Swig.cmake Diff File
mod - SuperBuild/swig_configure_step.cmake.in Diff File

Issue History

Date Modified Username Field Change
2013-08-13 14:38 fedorov New Issue
2013-08-13 14:38 fedorov Status new => assigned
2013-08-13 14:38 fedorov Assigned To => jcfr
2013-08-13 14:39 fedorov Assigned To jcfr => blowekamp
2013-08-14 13:37 jcfr Target Version => Slicer 4.3.0
2013-09-02 20:24 jcfr Target Version Slicer 4.3.0 => Slicer 4.3.1
2013-09-02 20:25 jcfr Note Added: 0009808
2013-09-03 05:05 blowekamp Note Added: 0009820
2013-09-03 05:19 jcfr Note Added: 0009822
2013-09-03 05:58 jcfr Note Added: 0009825
2013-09-03 05:58 jcfr Status assigned => feedback
2013-09-03 06:23 fedorov Note Added: 0009827
2013-09-03 06:23 fedorov Status feedback => assigned
2013-09-23 12:01 jcfr Note Added: 0010067
2013-09-23 12:02 jcfr Note Edited: 0010067
2013-09-23 12:03 fedorov Status assigned => closed
2013-09-23 12:03 fedorov Resolution open => fixed
2013-09-23 12:03 fedorov Fixed in Version => Slicer 4.3.1
2017-06-07 23:27 jcfr Changeset attached => Slicer 2145-support-for-installing-extension-from-file ad40f158
2017-06-07 23:27 jcfr Note Added: 0014580
2017-06-07 23:27 jcfr Assigned To blowekamp => jcfr