[Insight-users] Can InsightApplication-2.4.0 build with fltk-1.1.6?

Eduardo Suarez eduardo at ctm.ulpgc.es
Tue Mar 14 11:28:34 EST 2006


I'm having the same problem.

Thanks in advance,
-Eduardo
-----------------------------------------------------------------------------
* fltk configure command:
./configure --enable-debug --enable-shared
--prefix=/usr/local/itk-2.4.0/04install-fltk-1.1.4

* cmake --version
cmake version 2.2-patch 3

* InsightApplications-2.4.0 and InsightToolkit-2.4.0 from tar.gz of itk.org

* make
...
/usr/local/itk-2.4.0/InsightApplications-2.4.0/SNAP/UserInterface/ImageIOWizard/ImageIOWizardLogic.txx: 

In member function \u2018virtual void
ImageIOWizardLogic<TPixel>::OnDICOMPageEnter()\u2019:
/usr/local/itk-2.4.0/InsightApplications-2.4.0/SNAP/UserInterface/ImageIOWizard/ImageIOWizardLogic.txx:565: 

error: \u2018class Fl_Choice\u2019 has no member named \u2018find_item\u2019
/usr/local/itk-2.4.0/InsightApplications-2.4.0/SNAP/UserInterface/ImageIOWizard/ImageIOWizardLogic.txx: 

In member function \u2018void
ImageIOWizardLogic<TPixel>::OnDICOMPageEnter() [with TPixel = short
int]\u2019:
/usr/local/itk-2.4.0/InsightApplications-2.4.0/SNAP/UserInterface/ImageIOWizard/GreyImageIOWizardLogic.cxx:25: 

    instantiated from here
/usr/local/itk-2.4.0/InsightApplications-2.4.0/SNAP/UserInterface/ImageIOWizard/ImageIOWizardLogic.txx:567: 

error: invalid conversion from \u2018const Fl_Menu_Item*\u2019 to
\u2018int\u2019
/usr/local/itk-2.4.0/InsightApplications-2.4.0/SNAP/UserInterface/ImageIOWizard/ImageIOWizardLogic.txx:567: 

error:   initializing argument 1 of \u2018int Fl_Choice::value(int)\u2019
make[2]: ***
[SNAP/CMakeFiles/InsightSNAP.dir/UserInterface/ImageIOWizard/GreyImageIOWizardLogic.o] 

Error 1
make[1]: *** [SNAP/CMakeFiles/InsightSNAP.dir/all] Error 2
make: *** [all] Error 2

* gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-java-awt=gtk-default
--enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre
--enable-mpfr --disable-werror --with-tune=i686
--enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.3 20060212 (prerelease) (Debian 4.0.2-9)


Karthik Krishnan wrote:
> You built FLTK for debug and you are building InsightApplications for
> release. Please build both for the same configuration.
> 
> On Sun, 2006-01-08 at 13:09 +0100, Chunyan Jiang wrote:
> 
>>Hi Karthik,
>>Thank you for your reply. I checked fltk directory. There is
>>fltkimagesd.lib, but no  fltk_images.lib. I don't know why
>>InsightApplications_2.4.0 asks for fltk_images.lib. In CMake
>>configeration, there is Path setting for FLTK_IMAGES_LIB, I set it as
>>fltkimagesd.lib. It is same as I do for fltk_1.1.4.
>>But when I use fltk-1.1.4, there is no such errors.
>>
>>Best 
>>Chunyan
>>
>>On 1/7/06, Karthik Krishnan <Karthik.Krishnan at kitware.com> wrote:
>>        Check in the fltk binary directory if you have
>>        fltk_images.lib . If not
>>        your fltk hasn't been built properly yet. In that case, please
>>        elaborate
>>        on how you went about building fltk.
>>        
>>        -karthik
>>        
>>        Chunyan Jiang wrote: 
>>        
>>        > Dear ITK users,
>>        > I want to build InsightApplication-2.4.0 with fltk-1.1.6.
>>        There is
>>        > always one error messge:
>>        > Can not open "fltk_images.lib"
>>        > When I build InsightApplication-2.4.0 with fltk-1.1.4, there
>>        is no
>>        > such problem.
>>        > In one application of InsightApplication-2.4.0, it uses
>>        "find_item",
>>        > but it is not member of FL_Choice.h. Some one told me I
>>        should use
>>        > fltk-1.1.6, and the problem can be solved.
>>        > But when I build it with fltk-1.1.6, the new problem comes,
>>        as I
>>        > described above.
>>        >
>>        > Could some one tell me how to figure it?
>>        >
>>        >
>>        > Best regards, 
>>        > Chunyan
>>        >
>>        >------------------------------------------------------------------------
>>        >
>>        >_______________________________________________
>>        >Insight-users mailing list
>>        >Insight-users at itk.org
>>        >http://www.itk.org/mailman/listinfo/insight-users
>>        >
>>        >
>>
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3302 bytes
Desc: S/MIME Cryptographic Signature
Url : http://public.kitware.com/pipermail/insight-users/attachments/20060314/cba08e0f/smime.bin


More information about the Insight-users mailing list