No subject


Tue Nov 1 15:57:14 EDT 2011


steps,
basically all of the steps are done in the internal configuration of the
Project you are working with in Visual Studio ( and for both modes =
=91Debug=92
and =91Release=92 ) , the bad point is that you have to repeat each step =
each
time you build a new project.

=20

That error sounds familiar to me, please first  check if that file is =
inside
the folder =91 FFTW_LIBS=92 (  which must be inside the project visual =
studio
folder).

=20

If it is inside another idea that came to my mind is to first create a
system environment variable of the system and associated it to the =
folder
FFTW_LIBS and call it =93PATH_FFTW_LIBS=94. Then, in Visual Studio , go =
to
=93Tools > Options > Projects and Solutions > VC++ Directories > Show
directories for :=20

=20

-          =93Inclusion files=94

-          =93Library files=94

o   And in both places write : $(PATH_FFTW_LIBS)

=20

Tell me if it works!

=20

You=92re welcome!

=20

Antonio

=20

De: Calvin Lefebvre [mailto:calvin.lefebvr7 at gmail.com]=20
Enviado el: martes, 22 de noviembre de 2011 6:13
Para: Antonio G=F3mez Barquero
CC: insight-users at itk.org
Asunto: Re: [Insight-users] Insight-users Digest Questions - Problems
Building FFTW From Review

=20

Hi Antonio G=F3mez Barquero,

Just an update. I completed your steps 1-6 and the project built for the
first time but now when I go to debug a window pops up and has the =
following
message

`The program can't start because libfftw3-3.dll is missing from your
computer. Try reinstalling the program to fix this problem.'=20

I did not touch libfftw3-3.dll so I am not sure what happened. Did you =
ever
get this error?

Thanks for your help again,

Calvin

ps Sorry for sending twice but I forgot to include insight-users at itk.org

2011/11/21 Calvin Lefebvre <calvin.lefebvr7 at gmail.com>

Hi Antonio G=F3mez Barquero,

Thank you for your help, I really appreciate it. I just had 3 more =
question
if you do not mind.

Question 1

I understand up until your step 3 but then there is a gap between step 3 =
and
step 4.

After step 3 I configure ITK with CMake and I set ITK_USE_REVIEW, =
USE_FFTWD
and USE_FFTWF to "On" but the problem is CMake can not find

FFTWD_LIB

FFTWD_THREADS_LIB

FFTWF_LIB=20

FFTWF_THREADS_LIB

FTTW_INCLUDE_PATH

They are located in FFTW_LIBS so did you have to manually set them to a =
lib?
If yes, then which one did you set each of them to?

Question 2

Also, another question so in order to use ITK in visual studios I have =
to do
the following steps

A.Configure ITK in CMake
B.Build ITK in visual studios
C.Configure my project in CMake
D. Build my project in visual studios

In your steps 4,5,6 you are setting Additional dependencies, Additional =
libs
directory and Environment do you do this for both building itk in visual
studios and building your project in visual studios?

Question 3

I just wanted to check if there was a difference in your step 5b and 6?

Thanks again,

Calvin

=20

2011/11/21 Antonio G=F3mez Barquero <agb1 at alu.upct.es>

=20

Hi Calvin

=20

I also had the same problem some months ago, and I solved it making some
changes in the configuration of =91Visual Studio 2008=92, here I tell =
you the
process:

=20

1.       Download the file =93fftw-3.3dll32.zip from fftw org website (
<http://www.fftw.org/install/windows.html>
http://www.fftw.org/install/windows.html)

=20

2.       In order to link to these .dll files from Visual C++, you need =
to
create .lib "import libraries" for them, and can do so with the "lib"
command that comes with VC++.  In particular, run:

     lib /def:libfftw3-3.def

     lib /def:libfftw3f-3.def

     lib /def:libfftw3l-3.def

=20

In =93Tools > Visual Studio 2008 Command Prompt=94 without opening any =
project,
just Visual. Once you are in the console, you go with the =91cd=92 =
command to
the root where the folder is placed and once there you run the three =
lines
above, and then the =91lib files are created.

=20

3.       Copy the folder where the libs are created and then copy it =
inside
the project folder where we want to use it and rename the folder to
=93FFTW_LIBS=94. In this folder the necessary files are the ones that =
have the
=91*.dll=92 , =91*.lib=92 and the =91fftw3.h=92.

=20

4.       Inclusion of the libs in the project: =93Project > Properties >
Configuration Properties > Linker > Entry > Additional dependencies=94 =
and
then we include the three new libs files:

=20

libfftw3-3.lib=20

libfftw3f-3.lib

libfftw3l-3.lib

=20

5.       Inclusion of the path where the libs are:

a.       =93Project > Properties > Configuration Properties > Linker > =
General
> Additional libs directory=94 , and there we write =93./FFTW_LIBS=94.

b.      =93Project > Properties > Configuration Properties > Depuration =
>
Environment=94 , and there we write =93./FFTW_LIBS=94.

=20

6.       Inclusion of the path where the =91.dll=92 file is. In =
=93Project >
Properties > Configuration Properties > Depuration > Environment=94. In =
the
variable =91enviroment=92 we have to specify where the file =
=91libfftw3-3.dll=92 and
we write =93PATH =3D .\FFTW_LIBS=94

=20

After all of this steps, you just have to add =93 #include fftw3.h=94 =
and use
the fftw functions!

My visual Studio is in Spanish, so sorry if any of the word is not =
perfect
translated.

=20

Hope it helps!

=20

Antonio G=F3mez Barquero

=20

=20

=20

=20

De: insight-users-bounces at itk.org [mailto:insight-users-bounces at itk.org] =
En
nombre de Calvin Lefebvre
Enviado el: viernes, 18 de noviembre de 2011 19:07
Para: insight-users at itk.org
Asunto: [Insight-users] Insight-users Digest Questions - Problems =
Building
FFTW From Review

=20

Hi Insight-users,

=20

I am currently trying to use FFTW from the "Review" directory option but =
I
am having a great deal of difficulty and I would appreciate any help.

=20

Attempt1

=20

Step 1

=20

I download the windows version for FFTW dll files from
http://www.fftw.org/install/windows.html and used lib.exe to create the =
.lib
(import libraries). So now I have the following new three lib files:

=20

libfftw3-3.lib

libfftw3f-3.lib

libfftw3l-3.lib

=20

Step 2

=20

I then modified the CMakelist for compiling the ITK by adding=20


SET(CMAKE_MODULE_PATH ${ITK_SOURCE_DIR}/CMake)=20
OPTION(USE_FFTWD "Use double precision FFTW if found" ON)=20
OPTION(USE_FFTWF "Use single precision FFTW if found" ON)=20
FIND_PACKAGE( FFTW )=20

IF(USE_FFTWF)=20
    LINK_LIBRARIES(${FFTWF_LIB})=20
ENDIF(USE_FFTWF)=20

IF(USE_FFTWD)=20
    LINK_LIBRARIES(${FFTWD_LIB})=20
ENDIF(USE_FFTWD)

=20

Step 3

=20

Next I configure ITK in CMake. I set ITK_USE_REVIEW, USE_FFTWD and =
USE_FFTWF
to "On". I get the following error

=20

CMake Error: The following variables are used in this project, but they =
are
set to NOTFOUND.

Please set them or make sure they are set and tested correctly in the =
CMake
files:

FFTWD_LIB (ADVANCED)

linked by target "ITKAlgorithms" in directory
C:/Users/clefebvr/Desktop/InsightToolkit-3.20.1/Code/Algorithms

FFTWF_LIB (ADVANCED)

linked by target "ITKAlgorithms" in directory
C:/Users/clefebvr/Desktop/InsightToolkit-3.20.1/Code/Algorithms

FFTW_INCLUDE_PATH

...

=20

So, in CMake it mentions that it cannot find FFTWD_LIB, =
FFTWD_THREADS_LIB,
FFTWF_LIB, FFTWF_THREADS_LIB and FTTW_INCLUDE_PATH. So I set the path
in CMake          as the following

=20

FFTWD_LIB, FFTWD_THREADS_LIB to libfftw3-3.lib

FFTWF_LIB, FFTWF_THREADS_LIB to libfftw3f-3.lib

FTTW_INCLUDE_PATH to directory of fftw3.h

=20

I configured and generated in CMake without any errors and there was no
problem building ITK in visual studios 2008. When I try and build my own
project with itkFFTWComplexToComplexImageFilter.h                  I get =
I
get several errors that are similar to the following

=20

itkGaborImageSourceTest.obj : error LNK2019: unresolved external symbol
__imp_fftwf_destroy_plan referenced in function "protected: virtual =
__cdecl
itk::FFTWComplexToComplexImageFilter<float,2>::~FFTWComplexToComplexImage=
Fil
ter<float,2>(void)" =
(??1?$FFTWComplexToComplexImageFilter at M$01 at itk@@MEAA at XZ)

=20

Attempt 2

=20

I also tried a different modification to the CMakelist file for the ITK
configuration by adding=20

=20

SET(CMAKE_MODULE_PATH ${ITK_SOURCE_DIR}/CMake)

option(USE_FFTWD "Use double precision fftw if found" ON)

option(USE_FFTWF "Use single precision fftw if found" ON)

option(USE_SYSTEM_FFTW "Use an installed version of fftw" OFF)

if (USE_FFTWD OR USE_FFTWF)

        if(USE_SYSTEM_FFTW)

       find_package( FFTW )

       link_directories(${FFTW_LIBDIR})

        else(USE_SYSTEM_FFTW)

       link_directories(${ITK_DIR}/fftw/lib)

       include_directories(${ITK_DIR}/fftw/include)

        endif(USE_SYSTEM_FFTW)

endif(USE_FFTWD OR USE_FFTWF)

=20

It did not show any FFTWD_LIB, FFTWD_THREADS_LIB, FFTWF_LIB,
FFTWF_THREADS_LIB and FTTW_INCLUDE_PATH errors in CMake. Regardless I
continued and no errors occurred generating in CMake, and building ITK =
in
visual studio. Again, when I tried to build my project with
itkFFTWComplexToComplexImageFilter.h from the Review folder I get =
several
errors that are similar to the following

=20

itkGaborImageSourceTest.obj : error LNK2019: unresolved external symbol
__imp_fftwf_destroy_plan referenced in function "protected: virtual =
__cdecl
itk::FFTWComplexToComplexImageFilter<float,2>::~FFTWComplexToComplexImage=
Fil
ter<float,2>(void)" =
(??1?$FFTWComplexToComplexImageFilter at M$01 at itk@@MEAA at XZ)

=20

=20

I compiled CMake with the Visual Studios 2008 64 bit option.

=20

Thanks for the help,

=20

Calvin

=20

=20

=20


------=_NextPart_000_0016_01CCA8FC.E814BD40
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1"><meta name=3DGenerator content=3D"Microsoft Word =
14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Texto de globo Car";
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{mso-style-priority:34;
	margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:36.0pt;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
span.EstiloCorreo18
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.TextodegloboCar
	{mso-style-name:"Texto de globo Car";
	mso-style-priority:99;
	mso-style-link:"Texto de globo";
	font-family:"Tahoma","sans-serif";
	mso-fareast-language:ES;}
span.apple-style-span
	{mso-style-name:apple-style-span;}
span.apple-converted-space
	{mso-style-name:apple-converted-space;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
	{page:WordSection1;}
/* List Definitions */
@list l0
	{mso-list-id:1044449194;
	mso-list-type:hybrid;
	mso-list-template-ids:288643502 -1618818612 201981955 201981957 =
201981953 201981955 201981957 201981953 201981955 201981957;}
@list l0:level1
	{mso-level-start-at:0;
	mso-level-number-format:bullet;
	mso-level-text:-;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	margin-left:53.25pt;
	text-indent:-18.0pt;
	font-family:"Calibri","sans-serif";
	mso-fareast-font-family:Calibri;}
@list l0:level2
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	margin-left:89.25pt;
	text-indent:-18.0pt;
	font-family:"Courier New";}
@list l0:level3
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	margin-left:125.25pt;
	text-indent:-18.0pt;
	font-family:Wingdings;}
@list l0:level4
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	margin-left:161.25pt;
	text-indent:-18.0pt;
	font-family:Symbol;}
@list l0:level5
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	margin-left:197.25pt;
	text-indent:-18.0pt;
	font-family:"Courier New";}
@list l0:level6
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	margin-left:233.25pt;
	text-indent:-18.0pt;
	font-family:Wingdings;}
@list l0:level7
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	margin-left:269.25pt;
	text-indent:-18.0pt;
	font-family:Symbol;}
@list l0:level8
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	margin-left:305.25pt;
	text-indent:-18.0pt;
	font-family:"Courier New";}
@list l0:level9
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	margin-left:341.25pt;
	text-indent:-18.0pt;
	font-family:Wingdings;}
ol
	{margin-bottom:0cm;}
ul
	{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DES link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Hi!,<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>From your last reply I assume that you solved the problems of all the =
steps, basically all of the steps are done in the internal configuration =
of the Project you are working with in Visual Studio ( and for both =
modes &#8216;Debug&#8217; and &#8216;Release&#8217; ) , the bad point is =
that you have to repeat each step each time you build a new =
project.<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>That error sounds familiar to me, please first=A0 check if that file =
is inside the folder &#8216; FFTW_LIBS&#8217; (=A0 which must be inside =
the project visual studio folder).<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>If it is inside another idea that came to my mind is to first create =
a &nbsp;system environment variable of the system and associated it to =
the folder FFTW_LIBS and call it &#8220;PATH_FFTW_LIBS&#8221;. Then, in =
Visual Studio , go to &#8220;Tools &gt; Options &gt; Projects and =
Solutions &gt; VC++ Directories &gt; Show directories for : =
<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoListParagraph =
style=3D'margin-left:53.25pt;text-indent:-18.0pt;mso-list:l0 level1 =
lfo1'><![if !supportLists]><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><span style=3D'mso-list:Ignore'>-<span style=3D'font:7.0pt "Times New =
Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</span></span></span><![endif]><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&#8220;Inclusion files&#8221;<o:p></o:p></span></p><p =
class=3DMsoListParagraph =
style=3D'margin-left:53.25pt;text-indent:-18.0pt;mso-list:l0 level1 =
lfo1'><![if !supportLists]><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><span style=3D'mso-list:Ignore'>-<span style=3D'font:7.0pt "Times New =
Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</span></span></span><![endif]><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&#8220;Library files&#8221;<o:p></o:p></span></p><p =
class=3DMsoListParagraph =
style=3D'margin-left:89.25pt;text-indent:-18.0pt;mso-list:l0 level2 =
lfo1'><![if !supportLists]><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Courier New";color:#1F497D'><span =
style=3D'mso-list:Ignore'>o<span style=3D'font:7.0pt "Times New =
Roman"'>&nbsp;&nbsp; </span></span></span><![endif]><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>And in both places write : $(PATH_FFTW_LIBS)<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Tell me if it works!<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>You&#8217;re welcome!<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Antonio<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De:</span></=
b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> =
Calvin Lefebvre [mailto:calvin.lefebvr7 at gmail.com] <br><b>Enviado =
el:</b> martes, 22 de noviembre de 2011 6:13<br><b>Para:</b> Antonio =
G=F3mez Barquero<br><b>CC:</b> insight-users at itk.org<br><b>Asunto:</b> =
Re: [Insight-users] Insight-users Digest Questions - Problems Building =
FFTW From Review<o:p></o:p></span></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal =
style=3D'margin-bottom:12.0pt'><span style=3D'color:black'>Hi =
</span><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'=
>Antonio G=F3mez Barquero,</span><br><br>Just an update. I completed =
your steps 1-6 and the project built for the first time but now when I =
go to debug a window pops up and has the following message<br><br>`The =
program can't start because libfftw3-3.dll is missing from your =
computer. Try reinstalling the program to fix this problem.' <br><br>I =
did not touch libfftw3-3.dll so I am not sure what happened. Did you =
ever get this error?<span style=3D'color:black'><br><br>Thanks for your =
help again,<br><br>Calvin<br><br>ps Sorry for sending twice but I forgot =
to include <a =
href=3D"mailto:insight-users at itk.org">insight-users at itk.org</a></span><o:=
p></o:p></p><div><p class=3DMsoNormal>2011/11/21 Calvin Lefebvre &lt;<a =
href=3D"mailto:calvin.lefebvr7 at gmail.com">calvin.lefebvr7 at gmail.com</a>&g=
t;<o:p></o:p></p><p class=3DMsoNormal =
style=3D'margin-bottom:12.0pt'><span style=3D'color:black'>Hi =
</span><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'=
>Antonio G=F3mez Barquero,<br><br>Thank you for your help, I really =
appreciate it. I just had 3 more question if you do not =
mind.<br><br><u>Question 1</u><br><br>I understand up until your step 3 =
but then there is a gap between step 3 and step 4.<br></span><span =
style=3D'color:black'><br>After step 3 I configure ITK with CMake and I =
set ITK_USE_REVIEW, USE_FFTWD and USE_FFTWF to<span =
style=3D'background:white'> </span>&quot;On&quot; but the problem is =
CMake can not find</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
style=3D'color:black'>FFTWD_LIB<o:p></o:p></span></p><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
style=3D'color:black'>FFTWD_THREADS_LIB<o:p></o:p></span></p><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
style=3D'color:black'>FFTWF_LIB <o:p></o:p></span></p><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
style=3D'color:black'>FFTWF_THREADS_LIB<o:p></o:p></span></p><p =
class=3DMsoNormal style=3D'margin-bottom:12.0pt'><span =
style=3D'color:black'>FTTW_INCLUDE_PATH<br><br>They are located in =
</span><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'=
>FFTW_LIBS so did you have to manually set them to a lib? If yes, then =
which one did you set each of them to?<br><br><u>Question =
2</u></span><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><br></span><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'=
><br>Also, another question so in order to use ITK in visual studios I =
have to do the following steps<br><br>A.Configure ITK in =
CMake<br>B.Build ITK in visual studios<br>C.Configure my project in =
CMake<br>D. Build my project in visual studios<br><br>In your steps =
4,5,6 you are setting Additional dependencies, Additional libs directory =
and Environment do you do this for both building itk in visual studios =
and building your project in visual studios?<br><br><u>Question =
3</u><br><br>I just wanted to check if there was a difference in your =
step 5b and 6?<br><br>Thanks again,<br></span><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#88888=
8'><br>Calvin</span><o:p></o:p></p><div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><p =
class=3DMsoNormal>2011/11/21 Antonio G=F3mez Barquero &lt;<a =
href=3D"mailto:agb1 at alu.upct.es" =
target=3D"_blank">agb1 at alu.upct.es</a>&gt;<o:p></o:p></p><div><div><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Hi Calvin</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>I also had the same problem some months ago, and I solved it making =
some changes in the configuration of &#8216;Visual Studio 2008&#8217;, =
here I tell you the process:</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;</span><o:p></o:p></p><p style=3D'text-align:justify'><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>1.</span><span lang=3DEN-US =
style=3D'font-size:7.0pt;color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp; </span><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Download the file &#8220;fftw-3.3dll32.zip from fftw org website =
(</span><a href=3D"http://www.fftw.org/install/windows.html" =
target=3D"_blank"><span =
lang=3DEN-US>http://www.fftw.org/install/windows.html</span></a><span =
lang=3DEN-US>)</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:ju=
stify'><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;</span><o:p></o:p></p><p style=3D'text-align:justify'><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>2.</span><span lang=3DEN-US =
style=3D'font-size:7.0pt;color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp; </span><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>In order to link to these .dll files from Visual C++, you need to =
create .lib &quot;import libraries&quot; for them, and can do so with =
the &quot;lib&quot; command that comes with VC++.&nbsp; In particular, =
run:</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:7=
0.8pt;text-align:justify'><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;&nbsp;&nbsp;&nbsp; lib =
/def:libfftw3-3.def</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:7=
0.8pt;text-align:justify'><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;&nbsp;&nbsp;&nbsp; lib =
/def:libfftw3f-3.def</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:7=
0.8pt;text-align:justify'><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;&nbsp;&nbsp;&nbsp; lib =
/def:libfftw3l-3.def</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:7=
0.8pt;text-align:justify'><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:7=
0.8pt;text-align:justify'><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>In &#8220;Tools &gt; Visual Studio 2008 Command Prompt&#8221; without =
opening any project, just Visual. Once you are in the console, you go =
with the &#8216;cd&#8217; command to the root where the folder is placed =
and once there you run the three lines above, and then the &#8216;lib =
files are created.</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:ju=
stify'><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;</span><o:p></o:p></p><p style=3D'text-align:justify'><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>3.</span><span lang=3DEN-US =
style=3D'font-size:7.0pt;color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp; </span><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Copy the folder where the libs are created and then copy it inside =
the project folder where we want to use it and rename the folder to =
&#8220;FFTW_LIBS&#8221;. In this folder the necessary files are the ones =
that have the &#8216;*.dll&#8217; , &#8216;*.lib&#8217; and the =
&#8216;fftw3.h&#8217;.</span><o:p></o:p></p><p =
style=3D'text-align:justify'><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;</span><o:p></o:p></p><p style=3D'text-align:justify'><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>4.</span><span lang=3DEN-US =
style=3D'font-size:7.0pt;color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp; </span><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Inclusion of the libs in the project: &#8220;Project &gt; Properties =
&gt; Configuration Properties &gt; Linker &gt; Entry &gt; Additional =
dependencies&#8221; and then we include the three new libs =
files:</span><o:p></o:p></p><p style=3D'text-align:justify'><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:3=
5.4pt;text-align:justify'><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>libfftw3-3.lib </span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:3=
5.4pt;text-align:justify'><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>libfftw3f-3.lib</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:3=
5.4pt;text-align:justify'><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>libfftw3l-3.lib</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:ju=
stify'><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;</span><o:p></o:p></p><p style=3D'text-align:justify'><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>5.</span><span lang=3DEN-US =
style=3D'font-size:7.0pt;color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp; </span><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Inclusion of the path where the libs are:</span><o:p></o:p></p><p =
style=3D'margin-left:72.0pt;text-align:justify'><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>a.</span><span lang=3DEN-US =
style=3D'font-size:7.0pt;color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp; </span><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&#8220;Project &gt; Properties &gt; Configuration Properties &gt; =
Linker &gt; General &gt; Additional libs directory&#8221; , and there we =
write &#8220;./FFTW_LIBS&#8221;.</span><o:p></o:p></p><p =
style=3D'margin-left:72.0pt;text-align:justify'><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>b.</span><span lang=3DEN-US =
style=3D'font-size:7.0pt;color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</span><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&#8220;Project &gt; Properties &gt; Configuration Properties &gt; =
Depuration &gt; Environment&#8221; , and there we write =
&#8220;./FFTW_LIBS&#8221;.</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:ju=
stify'><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;</span><o:p></o:p></p><p style=3D'text-align:justify'><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>6.</span><span lang=3DEN-US =
style=3D'font-size:7.0pt;color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp; </span><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Inclusion of the path where the &#8216;.dll&#8217; file is. In =
&#8220;Project &gt; Properties &gt; Configuration Properties &gt; =
Depuration &gt; Environment&#8221;. In the variable =
&#8216;enviroment&#8217; we have to specify where the file =
&#8216;libfftw3-3.dll&#8217; and we write &#8220;PATH =3D =
.\FFTW_LIBS&#8221;</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:ju=
stify'><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:ju=
stify'><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>After all of this steps, you just have to add &#8220; #include =
fftw3.h&#8221; and use the fftw functions!</span><o:p></o:p></p><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:ju=
stify'><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>My visual Studio is in Spanish, so sorry if any of the word is not =
perfect translated.</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:ju=
stify'><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:ju=
stify'><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Hope it helps!</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:ju=
stify'><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:ju=
stify'><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Antonio G=F3mez Barquero</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:ju=
stify'><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De:</span></=
b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a =
href=3D"mailto:insight-users-bounces at itk.org" =
target=3D"_blank">insight-users-bounces at itk.org</a> [mailto:<a =
href=3D"mailto:insight-users-bounces at itk.org" =
target=3D"_blank">insight-users-bounces at itk.org</a>] <b>En nombre de =
</b>Calvin Lefebvre<br><b>Enviado el:</b> viernes, 18 de noviembre de =
2011 19:07<br><b>Para:</b> <a href=3D"mailto:insight-users at itk.org" =
target=3D"_blank">insight-users at itk.org</a><br><b>Asunto:</b> =
[Insight-users] Insight-users Digest Questions - Problems Building FFTW =


More information about the Insight-users mailing list