[Vv] Problems building vv : need help
Thomas BAUDIER
thomas.baudier at creatis.insa-lyon.fr
Thu Apr 7 17:17:32 CEST 2016
Hi Matthieu,
The error is due to the function "sg_get_process_stats". This part of
the code isn't necessary, it's just to know the memory usage. It seems
that the problem comes from libstatgrab. I propose you different
solutions:
- if you're not interested by the memory consumption:
* Maybe you can see with ccmake the tag "CLITK_MEMORY_INFO" : set
it to OFF
* or after a ccmake configuration/generation, do "cmake
-DCLITK_MEMORY_INFO=OFF [../vv_src]" (change to adapt the path of the
source code)
* or the last chance: add the line: "set(CLITK_MEMORY_INFO OFF)"
in the file [vv_src]/common/clitkMemoryUsage.cxx at the line 56 (ie.
just after the "endif()") and recompile
- if you absolutely want the memory info:
* Be sure with ccmake that the path to libstatgrab is correct
* Be sure that libstatgrab is installed correctly, or you have the
latest version (I use libstatgrab6, ie v.0.17-8.1.3)
* Try to reinstall libstatgrab (you can find it here:
http://www.i-scream.org/libstatgrab/) and recompile with this version.
Cheers
Thomas BAUDIER
On 2016-04-06 11:42, Matthieu Dondey wrote:
> Dear VV users, sorry my mail was sent a bit too quickly without proper
> greetings,
>
> here it is again :)
>
> Dear VV users,
>
> I can't manage to build VV correctly and it seems that I've tried
> all what my newbie abilities in software building could allow.
>
> I've tried building step by step following what was recommended on the
> site, building from source.
>
> In the end, VTK and ITK build okay but VV crashes during the building
> process.
>
> Here are the errors that I have while building VV (along with many
> other warnings) :
>
> make[2]: ***
> [tools/CMakeFiles/clitkCropImageLib.dir/clitkCropImageGenericFilter.cxx.o]
> Erreur 1
>
> make[1]: *** [tools/CMakeFiles/clitkCropImageLib.dir/all] Erreur 2
>
> /home/myplace/mesProgs/vv/vv-src/common/clitkMemoryUsage.cxx:48:38:
> error: cannot convert ‘int*’ to ‘size_t* {aka long unsigned
> int*}’ for argument ‘1’ to ‘sg_process_stats*
> sg_get_process_stats(size_t*)’ make[2]: ***
> [common/CMakeFiles/clitkCommon.dir/clitkMemoryUsage.cxx.o] Erreur 1
>
> make[1]: *** [common/CMakeFiles/clitkCommon.dir/all] Erreur 2
>
> and it stops at around 28 % with
>
> Linking CXX static library ../lib/libclitkAffineRegistrationLib.a
>
> [ 28%] Built target clitkAffineRegistrationLib
>
> make: *** [all] Erreur 2
>
> Here are the versions of the packages that I use :
>
> - cmake : 2.8.12.2
>
> - gcc and g++ : I was using by default the 4.8 version but I had to
> use the 4.6 in order to build ITK
>
> - qt : 4
>
> - VTK : 5.10
>
> - ITK : 3.2
>
> - VV : October 2012 release
>
> VTK and ITK are installed locally in my /usr/local folder and from
> what I'm guessing it seems that the VV build has trouble finding all
> the ITK files needed to build correctly.
>
> Maybe there's a linking part that I should have done, but I have no
> idea how to do it … maybe something I should add in my .bashrc file
> … I dunno :'(
>
> If anyone could help, it would be greatly appreciated.
>
> Cheers,
>
> Matthieu
> _______________________________________________
> 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