[Insight-users] Install Errors with WrapITK
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Tue Apr 17 15:21:35 EDT 2007
Hi Jaety,
Le 17 avr. 07 à 21:05, Jaety Edwards a écrit :
> Hello Gaetan,
> Thanks again for your help, but it appears that I spoke too soon. I
> thought I had turned on the WrapITK build last time, but in fact I was
> just compiling ITK. As far as I can tell, I am using the same
> configuration as you specified in a previous email. CableSwig and ITK
> are from CVS. The others have the same version numbers as you
> specified. I just wondered if you had any other suggestions. Maybe the
> difference is in the flags you're setting or not setting for the build
> compared to me? The changes I made in the ccmake gui were:
>
> * Turn SHARING on.
> * Turn Testing off
> * In Advanced, turn ITK_CSWIG_JAVA to ON
ITK_CSWIG_JAVA is the old wrapping system. It is set to OFF in my build
> * In Advanced, turn USE_WRAP_ITK to ON
> * In Advanced, turn ITK_USE_REVIEW to ON
also be sure to have WRAP_ITK_JAVA to ON.
Please let me know if it work that way - I'll add a conflict with the
old wrapping system.
Thanks,
Gaëtan
>
> when I try to build the configuration files with ccmake, after getting
> the warning about wrapitk being experimental, I get the same errors,
> see following:
>
> CMake Error: Attempt to add link target SwigRuntimeJava of type:
> MODULE_LIBRARY
> to target VXLNumericsJava. You can only link to STATIC or SHARED
> libraries.
> To allow linking of modules set CMAKE_BACKWARDS_COMPATIBILITY to
> 2.2 or lower
>
>
> CMake Error: Attempt to add link target SwigRuntimeJava of type:
> MODULE_LIBRARY
> to target BaseJava. You can only link to STATIC or SHARED libraries.
> To allow linking of modules set CMAKE_BACKWARDS_COMPATIBILITY to
> 2.2 or lower
>
> Thanks again,
> Jaety
>
>
>
>
> On 4/16/07, Jaety Edwards <jaety at cs.berkeley.edu> wrote:
>> Hi Gaetan,
>> Following up, the problem does seem to be because I was trying to use
>> the last stable version listed on the website. When I compile against
>> the cvs repository versions of itk and cableswig, I do get it to
>> compile all the way.
>> Thanks,
>> Jaety
>>
>> On 4/13/07, Jaety Edwards <jaety at cs.berkeley.edu> wrote:
>> > Hi Gaetan, I'll try it with the version of itk, cswig, etc. from
>> CVS
>> > and get back to you (I'm currently using the latest stable version
>> > downloaded from the website).
>> > -Jaety
>> >
>> > On 4/13/07, Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr> wrote:
>> > >
>> > > Hi Jaety,
>> > >
>> > > It build without problem for me, and the tests are also running
>> > > without problems, with the following elements :
>> > > - Red Hat Enterprise Linux AS release 4 (Nahant Update 4) 64
>> bits
>> > > - gcc 3.4.6
>> > > - cmake 2.4.6
>> > > - java 1.6.0-b105 64 bits
>> > > - cable swig cvs
>> > > - ITK cvs
>> > >
>> > > Are you using the wrapitk included in ITK ?
>> > >
>> > > Gaëtan
>> > >
>> > >
>> > > Le 11 avr. 07 à 18:19, Jaety Edwards a écrit :
>> > >
>> > > > Hi Gaetan,
>> > > > I'm using cmake version 2.4-patch 6
>> > > >
>> > > > -Jaety
>> > > >
>> > > > On 4/11/07, Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr> wrote:
>> > > >> Hi,
>> > > >>
>> > > >> Le 9 avr. 07 à 18:35, Jaety Edwards a écrit :
>> > > >>
>> > > >> > I am trying to build itk 3.2 with the WrapITK wrappers
>> for Java,
>> > > >> and I
>> > > >> > get the following error from CMake. I've tried googling for
>> > > >> clues, but
>> > > >> > without much success. I am building on a 64 bit amd machine,
>> > > >> RHEL 4.
>> > > >> > Does anyone have a suggestion as to what might be going on?
>> > > >> > Thanks,
>> > > >> > Jaety
>> > > >> >
>> > > >> > **ERROR FOLLOWS**
>> > > >> >
>> > > >> > CMake Error: Attempt to add link target SwigRuntimeJava
>> of type:
>> > > >> > MODULE_LIBRARY
>> > > >> > to target VXLNumericsJava. You can only link to STATIC or
>> SHARED
>> > > >> > libraries.
>> > > >> > To allow linking of modules set
>> CMAKE_BACKWARDS_COMPATIBILITY to
>> > > >> > 2.2 or lower
>> > > >> >
>> > > >> >
>> > > >> > CMake Error: Attempt to add link target SwigRuntimeJava
>> of type:
>> > > >> > MODULE_LIBRARY
>> > > >>
>> > > >> I can't remember have seen that error before, and both
>> > > >> VXLNumericsJava and SwigRuntimeJava are declared "SHARED".
>> > > >>
>> > > >> What is your cmake version ?
>> > > >>
>> > > >> Thanks,
>> > > >>
>> > > >> Gaëtan
>> > > >>
>> > > >>
>> > > >> --
>> > > >> Gaëtan Lehmann
>> > > >> Biologie du Développement et de la Reproduction
>> > > >> INRA de Jouy-en-Josas (France)
>> > > >> tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
>> > > >> http://voxel.jouy.inra.fr
>> > > >>
>> > > >>
>> > > >>
>> > > >>
>> > > >>
>> > >
>> > > --
>> > > Gaëtan Lehmann
>> > > Biologie du Développement et de la Reproduction
>> > > INRA de Jouy-en-Josas (France)
>> > > tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
>> > > http://voxel.jouy.inra.fr
>> > >
>> > >
>> > >
>> > >
>> > >
>> >
>>
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: =?ISO-8859-1?Q?Ceci_est_une_signature_=E9lectronique_PGP?=
Url : http://public.kitware.com/pipermail/insight-users/attachments/20070417/69c8874c/PGP.pgp
More information about the Insight-users
mailing list