[Insight-users] A problem about FLTK_BASE_LIBRARY option in CMake.

Julien Jomier jjomier at cs . unc . edu
Tue, 6 Aug 2002 09:54:46 -0400


Hi Zhao,

This looks familiar...
Did you specify the fltk include directory in CMake as
...\fltk-1.0.11\ ?
(I guess you set ...\fltk-1.0.11\FL\)

If you include fltk-x.x.xx\FL\ , the compiler will include
Fl\math.h as the default math.h (and not the correct one),
I think that's the problem.

Let me know if it works

Julien

----- Original Message -----
From: "zhao" <zhao_c_g@263.net>
To: "itk" <insight-users@public.kitware.com>
Sent: Wednesday, November 21, 2001 9:41 AM
Subject: Re: Re: [Insight-users] A problem about FLTK_BASE_LIBRARY option in
CMake.


Thanks, Julien.

But the compiling errors still exist. They are as follows(under MSVC6.0):

--------------------Configuration: RawImageReaderViewer - Win32
Debug--------------------

Performing Custom Build Step on "E:\Visual
Human\ITKSourceWin32Beta2\InsightBeta2\Examples\RawImageReaderViewer\itkRawI
mageReaderViewerGUI.fl"
Performing Custom Build Step on "E:\Visual
Human\ITKSourceWin32Beta2\InsightBeta2\Examples\RawImageReaderViewer\CMakeLi
sts.txt"

Compiling...
RawImageReaderViewer.cxx
E:\Visual Human\fltk-1.0.11\fltk-1.0.11\FL\math.h(52) : error C2065: 'floor'
: undeclared identifier
E:\Visual
Human\ITKSourceWin32Beta2\InsightBeta2\Code\Numerics\vxl\vnl/vnl_math.h(149)
: error C2039: 'sqrt' : is not a member of '`global namespace''
E:\Visual
Human\ITKSourceWin32Beta2\InsightBeta2\Code\Numerics\vxl\vnl/vnl_math.h(149)
: error C2065: 'sqrt' : undeclared identifier
E:\Visual
Human\ITKSourceWin32Beta2\InsightBeta2\Code\Numerics\vxl\vnl/vnl_math.h(153)
: error C2039: 'exp' : is not a member of '`global namespace''
.....
.....
.....
.....

'floor' is a function decleared in system file math.h, which is included by
...\FL\math.h. So, I think the first error about 'floor' are not reasonable.
What's wrong?

The other two errors is about two routines, i.e., "sqrt", "exp". But these
two functions really are not in the file of "vnl_math.h"

Who has ever encountered the similar problem? Thanks in advance for your
help.

>Hi Zhao,
>
>FLTK_BASE_LIBRARY means the main library of FLTK,
>(i.e. fltk.lib under windows and fltk.a under linux)
>
>You must select, in your case,
>...\fltk-1.0.11\lib\Release\fltk.lib
>
>Hope this helps
>
>Julien
>
>----- Original Message -----
>From: "zhao" <zhao_c_g@263.net>
>To: "itk" <insight-users@public.kitware.com>
>Sent: Wednesday, November 21, 2001 4:21 AM
>Subject: [Insight-users] A problem about FLTK_BASE_LIBRARY option in CMake.
>
>
>> Hi All,
>>
>> I encountered many compiling errors with the example of
>"RawImageReaderViewer". Maybe some options I set in CMake are not correct.
>Not knowing what FLTK_BASE_LIBRARY means, I just selected
>...\fltk-1.0.11\lib\fltkdlld.exp. Is it correct? Thanks for any reply.
>>
>> Regards,
>> Zhao
>>
>>
>> _______________________________________________
>> Insight-users mailing list
>> Insight-users@public.kitware.com
>> http://public.kitware.com/mailman/listinfo/insight-users

= = = = = = = = = = = = = = = = = = = =


¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÖÂ
Àñ£¡


¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡zhao
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡zhao_c_g
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2001-11-21



_______________________________________________
Insight-users mailing list
Insight-users@public.kitware.com
http://public.kitware.com/mailman/listinfo/insight-users