<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Dne 14.2.2011 13:55, bharath napsal(a):
<blockquote
cite="mid:AANLkTinGVnujWtzcRo4yL9kJh8UgU8xvknNuQ60s6kpk@mail.gmail.com"
type="cite">Hi VVusers!, <br>
<br>
Nice to come back to vv !.. <br>
<br>
to answer Michal questions, here are a few possible pointers that
may work regarding your errors in MSVC.<br>
<br>
1) for the error "please convert the source file to either DOS or
UNIX format"<br>
You could try to convert the line endings to Windows CR LF or
Macintosh(i dont remember which one worked!). from
File->Advanced Save Options->LIne Endings. <br>
<br>
2) for the error on "clitkAffineRegistrationLib" , you could turn
off Registration option off in the cmake gui and then recompile.<br>
<br>
3) for "fatal error LNK1181: cannot open input file
'ITKAlgorithms.lib'", make sure you compiled ITK in the same
configuration as <br>
with VV. I think you compiled ITK in Debug, and hence clitk works
with Debug configuation. Make sure you compile ITK in Release to <br>
supress the error.<br>
alternatively you may want to have a look at this link..<a
moz-do-not-send="true"
href="http://www.itk.org/pipermail/insight-users/2007-March/021248.html">
http://www.itk.org/pipermail/insight-users/2007-March/021248.html</a><br>
<br>
4)for fatal error C1128: number of sections exceeded object file
format limit : compile with /bigobj. Try including this option
/bigobj in Project properties->C++ ->Linker settings
->Command line ...<br>
Hope this helps..<br>
<br>
Regards<br>
Bharath<br>
<br>
<br>
Regarding the r<br>
<div class="gmail_quote">On Mon, Feb 14, 2011 at 12:00 PM, <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:vv-request@creatis.insa-lyon.fr">vv-request@creatis.insa-lyon.fr</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">Send vv mailing list submissions to<br>
<a moz-do-not-send="true"
href="mailto:vv@creatis.insa-lyon.fr">vv@creatis.insa-lyon.fr</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a moz-do-not-send="true"
href="http://www.creatis.insa-lyon.fr/mailman/listinfo/vv"
target="_blank">http://www.creatis.insa-lyon.fr/mailman/listinfo/vv</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a moz-do-not-send="true"
href="mailto:vv-request@creatis.insa-lyon.fr">vv-request@creatis.insa-lyon.fr</a><br>
<br>
You can reach the person managing the list at<br>
<a moz-do-not-send="true"
href="mailto:vv-owner@creatis.insa-lyon.fr">vv-owner@creatis.insa-lyon.fr</a><br>
<br>
When replying, please edit your Subject line so it is more
specific<br>
than "Re: Contents of vv digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Compiling src of VV - almost successful (Michal Srna)<br>
2. Re: Compiling src of VV - almost successful (David
Sarrut)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sun, 13 Feb 2011 14:07:24 +0100<br>
From: Michal Srna <<a moz-do-not-send="true"
href="mailto:michal@srna.info">michal@srna.info</a>><br>
To: <a moz-do-not-send="true"
href="mailto:vv@creatis.insa-lyon.fr">vv@creatis.insa-lyon.fr</a><br>
Subject: [Vv] Compiling src of VV - almost successful<br>
Message-ID: <<a moz-do-not-send="true"
href="mailto:4D57D78C.2090907@srna.info">4D57D78C.2090907@srna.info</a>><br>
Content-Type: text/plain; charset=ISO-8859-2; format=flowed<br>
<br>
Hello,<br>
<br>
I have compiled/installed and prepared all prerequisites
needed for VV<br>
compilation from src (Qt, VTK, ITK, Gengetopt) step by step
described on<br>
VV web. I am on Windows 7 (64b) with MSVC++ 2008 Express
Edition.<br>
<br>
Now I have 3 questions and it will really help me, if someone
could<br>
answer me:<br>
<br>
1) When I download src zip file from this site<br>
<a moz-do-not-send="true"
href="http://www.creatis.insa-lyon.fr/rio/vv?action=AttachFile&do=view&target=vvSource-1.1.tar.gz"
target="_blank">http://www.creatis.insa-lyon.fr/rio/vv?action=AttachFile&do=view&target=vvSource-1.1.tar.gz</a><br>
and run CMake it says me, that Gengetopt is not installed (but
I have<br>
installed it, I also tried to add it in PATH) - so I manually
select<br>
path to the X:\GnuWin32\bin (is it OK?) and run Generate in
CMake.<br>
<br>
Then I open generated solution in my MSVC++ and everything is
OK, I will<br>
select Debug mode and build the solution (F7) -> it will
create .exe<br>
file and I can run VV (works like a charm).<br>
<br>
But when I select Release mode (in Solution Configurations),
it will<br>
write one error at the end of building: "fatal error LNK1181:
cannot<br>
open input file 'ITKAlgorithms.lib'". I don't know, what am I
doing<br>
wrong... maybe I can not use Release mode for VV building and
I need to<br>
use only Debug?<br>
<br>
2) When I downloaded src from CVS (clitk3) and did everything
same as in<br>
step 1) (where I used src from zip file), it will build no
vv.exe file<br>
and it will write 2 errors in part of building vv project:<br>
<br>
itkBinaryThinningImageFilter3D.h : error C4335: Mac file
format<br>
detected: please convert the source file to either DOS or UNIX
format<br>
<br>
itkBinaryThinningImageFilter3D.h : error C4335: Mac file
format<br>
detected: please convert the source file to either DOS or UNIX
format<br>
<br>
I will get also one more error in part of bulding<br>
clitkAffineRegistrationLib, the error is:<br>
<br>
c:\program files (x86)\microsoft visual studio<br>
9.0\vc\include\vector(1261) : fatal error C1128: number of
sections<br>
exceeded object file format limit : compile with /bigobj<br>
<br>
Could it be the problem, that I am doing it on files from CVS
- I<br>
downloaded whole folder clitk3? Should I use only
vvSource-1.1.tar.gz<br>
file, which works for me?<br>
<br>
3) I would like to make some changes in the code - is it
better to do<br>
that directly in src files (for example directly open the .cxx
file I<br>
need to change) or can I make these changes in Solution, which
was<br>
generated by CMake after I opened it in my MSVC++?<br>
<br>
Thanks for answer on my questions!<br>
<br>
<br>
--<br>
S pozdravem Bc. Michal Srna<br>
<br>
Fotografick? portfolio:<br>
<a moz-do-not-send="true" href="http://michalsrna.cz"
target="_blank">http://michalsrna.cz</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Mon, 14 Feb 2011 08:17:00 +0100<br>
From: David Sarrut <<a moz-do-not-send="true"
href="mailto:David.Sarrut@creatis.insa-lyon.fr">David.Sarrut@creatis.insa-lyon.fr</a>><br>
To: vv <<a moz-do-not-send="true"
href="mailto:vv@creatis.insa-lyon.fr">vv@creatis.insa-lyon.fr</a>><br>
Subject: Re: [Vv] Compiling src of VV - almost successful<br>
Message-ID:<br>
<<a moz-do-not-send="true"
href="mailto:AANLkTinjn381vJKg4AdaJeC%2BKJ3s%2BNE7-MGvvrUOCYO6@mail.gmail.com">AANLkTinjn381vJKg4AdaJeC+KJ3s+NE7-MGvvrUOCYO6@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hello Michal,<br>
<br>
first, thanks for you interest in VV !<br>
<br>
Our Windows specialist is not here until few weeks, so I am
afraid that you<br>
will have few replies regarding Windows issues.<br>
<br>
Regarding the landmarks, we decided to use mm because it
remains usable even<br>
if you display the landmarks on a resampled image. It is
generally a better<br>
way to express coordinates in mm rather in pixels. I think it
is important<br>
to not change this behavior. However, we can anyway include
pixel<br>
coordinates as additional columns when writing the landmarks
file. It also<br>
requires that those additional columns are ignored when
importing a set of<br>
landmarks. Is that ok for you ?<br>
<br>
The next VV version will probably be released in few
weeks/months, so<br>
I suggest that you continue to try the cvs version. If you
manage to compile<br>
(I am sure you will with help of others people in the list),
it will then be<br>
easy for you to update the cvs.<br>
<br>
Sincerely,<br>
David<br>
<br>
On Sun, Feb 13, 2011 at 2:07 PM, Michal Srna <<a
moz-do-not-send="true" href="mailto:michal@srna.info">michal@srna.info</a>>
wrote:<br>
<br>
> Hello,<br>
><br>
> I have compiled/installed and prepared all prerequisites
needed for VV<br>
> compilation from src (Qt, VTK, ITK, Gengetopt) step by
step described on VV<br>
> web. I am on Windows 7 (64b) with MSVC++ 2008 Express
Edition.<br>
><br>
> Now I have 3 questions and it will really help me, if
someone could answer<br>
> me:<br>
><br>
> 1) When I download src zip file from this site<br>
> <a moz-do-not-send="true"
href="http://www.creatis.insa-lyon.fr/rio/vv?action=AttachFile&do=view&target=vvSource-1.1.tar.gzand"
target="_blank">http://www.creatis.insa-lyon.fr/rio/vv?action=AttachFile&do=view&target=vvSource-1.1.tar.gzand</a>
run CMake it says me, that Gengetopt is not installed (but I
have<br>
> installed it, I also tried to add it in PATH) - so I
manually select path to<br>
> the X:\GnuWin32\bin (is it OK?) and run Generate in
CMake.<br>
><br>
> Then I open generated solution in my MSVC++ and
everything is OK, I will<br>
> select Debug mode and build the solution (F7) -> it
will create .exe file<br>
> and I can run VV (works like a charm).<br>
><br>
> But when I select Release mode (in Solution
Configurations), it will write<br>
> one error at the end of building: "fatal error LNK1181:
cannot open input<br>
> file 'ITKAlgorithms.lib'". I don't know, what am I doing
wrong... maybe I<br>
> can not use Release mode for VV building and I need to
use only Debug?<br>
><br>
> 2) When I downloaded src from CVS (clitk3) and did
everything same as in<br>
> step 1) (where I used src from zip file), it will build
no vv.exe file and<br>
> it will write 2 errors in part of building vv project:<br>
><br>
> itkBinaryThinningImageFilter3D.h : error C4335: Mac file
format detected:<br>
> please convert the source file to either DOS or UNIX
format<br>
><br>
> itkBinaryThinningImageFilter3D.h : error C4335: Mac file
format detected:<br>
> please convert the source file to either DOS or UNIX
format<br>
><br>
> I will get also one more error in part of bulding<br>
> clitkAffineRegistrationLib, the error is:<br>
><br>
> c:\program files (x86)\microsoft visual studio
9.0\vc\include\vector(1261)<br>
> : fatal error C1128: number of sections exceeded object
file format limit :<br>
> compile with /bigobj<br>
><br>
> Could it be the problem, that I am doing it on files from
CVS - I<br>
> downloaded whole folder clitk3? Should I use only
vvSource-1.1.tar.gz file,<br>
> which works for me?<br>
><br>
> 3) I would like to make some changes in the code - is it
better to do that<br>
> directly in src files (for example directly open the .cxx
file I need to<br>
> change) or can I make these changes in Solution, which
was generated by<br>
> CMake after I opened it in my MSVC++?<br>
><br>
> Thanks for answer on my questions!<br>
><br>
><br>
> --<br>
> S pozdravem Bc. Michal Srna<br>
><br>
> Fotografick? portfolio:<br>
> <a moz-do-not-send="true" href="http://michalsrna.cz"
target="_blank">http://michalsrna.cz</a><br>
><br>
> _______________________________________________<br>
> vv mailing list<br>
> <a moz-do-not-send="true"
href="mailto:vv@creatis.insa-lyon.fr">vv@creatis.insa-lyon.fr</a><br>
> <a moz-do-not-send="true"
href="http://www.creatis.insa-lyon.fr/mailman/listinfo/vv"
target="_blank">http://www.creatis.insa-lyon.fr/mailman/listinfo/vv</a><br>
><br>
<br>
<br>
<br>
--<br>
David Sarrut, Phd<br>
Charg? de recherche CNRS<br>
Laboratoire CREATIS, UMR CNRS 5220, Inserm U 1044<br>
Centre de lutte contre le cancer L?on B?rard<br>
28 rue La?nnec, 69373 Lyon cedex 08<br>
Tel : 04 78 78 51 51 / 06 74 72 05 42<br>
<a moz-do-not-send="true"
href="http://www.creatis.insa-lyon.fr/rio" target="_blank">http://www.creatis.insa-lyon.fr/rio</a><br>
_________________________________<br>
"2 + 2 = 5, for extremely large values of 2"<br>
_________________________________<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a moz-do-not-send="true"
href="http://www.creatis.insa-lyon.fr/pipermail/vv/attachments/20110214/0808a082/attachment-0001.html"
target="_blank">http://www.creatis.insa-lyon.fr/pipermail/vv/attachments/20110214/0808a082/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
vv mailing list<br>
<a moz-do-not-send="true"
href="mailto:vv@creatis.insa-lyon.fr">vv@creatis.insa-lyon.fr</a><br>
<a moz-do-not-send="true"
href="http://www.creatis.insa-lyon.fr/mailman/listinfo/vv"
target="_blank">http://www.creatis.insa-lyon.fr/mailman/listinfo/vv</a><br>
<br>
<br>
End of vv Digest, Vol 11, Issue 6<br>
*********************************<br>
</blockquote>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
vv mailing list
<a class="moz-txt-link-abbreviated" href="mailto:vv@creatis.insa-lyon.fr">vv@creatis.insa-lyon.fr</a>
<a class="moz-txt-link-freetext" href="http://www.creatis.insa-lyon.fr/mailman/listinfo/vv">http://www.creatis.insa-lyon.fr/mailman/listinfo/vv</a>
</pre>
</blockquote>
Thanks.<br>
<br>
Compiling ITK in release mode (from zip src) really helped and now I
can compile vv also in Release. <br>
<br>
But I have one more problem regarding compiling the source from CVS,
when compiling (Release mode) I get this error:<br>
<br>
7>g:\libraries\vv_cvs_release\vv_source_dir\itk\clitkSegmentationUtils.txx(491)
: error C2244: 'clitk::ExtractSlices' : unable to match function
definition to an existing declaration<br>
7>
g:\libraries\vv_cvs_release\vv_source_dir\itk\clitkSegmentationUtils.h(207)
: see declaration of 'clitk::ExtractSlices'<br>
7>g:\libraries\vv_cvs_release\vv_source_dir\itk\clitkSegmentationUtils.txx(512)
: error C2244: 'clitk::JoinSlices' : unable to match function
definition to an existing declaration<br>
7>
g:\libraries\vv_cvs_release\vv_source_dir\itk\clitkSegmentationUtils.h(217)
: see declaration of 'clitk::JoinSlices'<br>
<br>
Don't you know, what can cause it?<br>
<br>
<pre class="moz-signature" cols="72">--
S pozdravem Bc. Michal Srna
Fotografické portfolio:
<a class="moz-txt-link-freetext" href="http://michalsrna.cz">http://michalsrna.cz</a></pre>
</body>
</html>