[Vv] Compiling src of VV - almost successful
Simon Rit
simon.rit at creatis.insa-lyon.fr
Sun Feb 20 22:17:08 CET 2011
Hi Michal,
I have compiled the same sources with the same compiler / OS so it
should work. Answers:
1 - For ggo, yes, it's correct. We have used the wrong cmake command
to locate the executable and you actually have to provide the path of
the containing folder and not the path of the program. Easily fixable
but todo...
For the compilation problem, it looks like you have not compiled itk
in release mode. You need to compile itk and vtk in release mode to
compile vv in release mode.
2 - I have seen this problem before and this is one of these ms
mysteries to me. In cmake, I have added /bigobj in the CMAKE_CXX_FLAGS
(as suggested by the error message) and it works fine.
3 - I guess it comes down to the same thing. Opening the solution
opens msvc++ which is (among other things) an editor for your source
files.
Good luck and don't hesitate to shoot more questions.
Simon
2011/2/13 Michal Srna <michal at srna.info>:
> Hello,
>
> I have compiled/installed and prepared all prerequisites needed for VV
> compilation from src (Qt, VTK, ITK, Gengetopt) step by step described on VV
> web. I am on Windows 7 (64b) with MSVC++ 2008 Express Edition.
>
> Now I have 3 questions and it will really help me, if someone could answer
> me:
>
> 1) When I download src zip file from this site
> http://www.creatis.insa-lyon.fr/rio/vv?action=AttachFile&do=view&target=vvSource-1.1.tar.gz
> and run CMake it says me, that Gengetopt is not installed (but I have
> installed it, I also tried to add it in PATH) - so I manually select path to
> the X:\GnuWin32\bin (is it OK?) and run Generate in CMake.
>
> Then I open generated solution in my MSVC++ and everything is OK, I will
> select Debug mode and build the solution (F7) -> it will create .exe file
> and I can run VV (works like a charm).
>
> But when I select Release mode (in Solution Configurations), it will write
> one error at the end of building: "fatal error LNK1181: cannot open input
> file 'ITKAlgorithms.lib'". I don't know, what am I doing wrong... maybe I
> can not use Release mode for VV building and I need to use only Debug?
>
> 2) When I downloaded src from CVS (clitk3) and did everything same as in
> step 1) (where I used src from zip file), it will build no vv.exe file and
> it will write 2 errors in part of building vv project:
>
> itkBinaryThinningImageFilter3D.h : error C4335: Mac file format detected:
> please convert the source file to either DOS or UNIX format
>
> itkBinaryThinningImageFilter3D.h : error C4335: Mac file format detected:
> please convert the source file to either DOS or UNIX format
>
> I will get also one more error in part of bulding
> clitkAffineRegistrationLib, the error is:
>
> c:\program files (x86)\microsoft visual studio 9.0\vc\include\vector(1261) :
> fatal error C1128: number of sections exceeded object file format limit :
> compile with /bigobj
>
> Could it be the problem, that I am doing it on files from CVS - I downloaded
> whole folder clitk3? Should I use only vvSource-1.1.tar.gz file, which works
> for me?
>
> 3) I would like to make some changes in the code - is it better to do that
> directly in src files (for example directly open the .cxx file I need to
> change) or can I make these changes in Solution, which was generated by
> CMake after I opened it in my MSVC++?
>
> Thanks for answer on my questions!
>
>
> --
> S pozdravem Bc. Michal Srna
>
> Fotografické portfolio:
> http://michalsrna.cz
>
> _______________________________________________
> vv mailing list
> vv at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/vv
>
More information about the vv
mailing list