Hi Francesco,

try following,
download Cmake-GUI from synaptic package manager.
open Cmake-GUI and browse to your build directory:
Build directory: /home/francesco/MITK-superbuild/

then, in Cmake-GUI, enter VTK into the search bar.
As a result something like "USE_VTK_5_8_FOR_SUPERBUILD" shall occur.
Enable this flag.

then run standard procedure:
-> configure
-> generate
-> make

hope that helps
iggy




On May 17, 2012, at 4:10 PM, Mr Francesco Grussu wrote:

Hello everybody,
I was trying to complete the superbuild for MITK on Ubuntu 11.10 but I got
some errors.
Firstly, I made sure I had the three prerequisites listed here:
http://docs.mitk.org/nightly-qt4/BuildInstructionsPage.html ,
downloading them from the ubuntu software center.
After that, I cloned the MITK folder in my home folder with
$ git clone http://git.mitk.org/MITK.git
and then I created a new directory
named MITK-superbuild and I moved into it:

$ mkdir MITK-superbuild
$ cd MITK-superbuild
$ ccmake ../MITK

I typed twice c (configure) and then g (generate).
Finally, in the MITK-superbuild directory I gave
$ make

These are the errors that occurred:

.....
[ 15%] Building CXX object
Utilities/vtkmetaio/CMakeFiles/vtkmetaio.dir/metaUtils.cxx.o
/home/francesco/MITK-superbuild/VTK-src/Utilities/vtkmetaio/metaUtils.cxx:
In function ‘bool vtkmetaio::MET_StringToWordArray(const char*, int*,
char***)’:
/home/francesco/MITK-superbuild/VTK-src/Utilities/vtkmetaio/metaUtils.cxx:805:3:
error: ‘ptrdiff_t’ was not declared in this scope
/home/francesco/MITK-superbuild/VTK-src/Utilities/vtkmetaio/metaUtils.cxx:805:3:
note: suggested alternatives:
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
‘std::ptrdiff_t’
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note:
‘std::ptrdiff_t’
/home/francesco/MITK-superbuild/VTK-src/Utilities/vtkmetaio/metaUtils.cxx:805:13:
error: expected ‘;’ before ‘l’
/home/francesco/MITK-superbuild/VTK-src/Utilities/vtkmetaio/metaUtils.cxx:807:13:
error: expected ‘;’ before ‘p’
/home/francesco/MITK-superbuild/VTK-src/Utilities/vtkmetaio/metaUtils.cxx:808:9:
error: ‘p’ was not declared in this scope
/home/francesco/MITK-superbuild/VTK-src/Utilities/vtkmetaio/metaUtils.cxx:808:11:
error: ‘l’ was not declared in this scope
/home/francesco/MITK-superbuild/VTK-src/Utilities/vtkmetaio/metaUtils.cxx:814:13:
error: expected ‘;’ before ‘pp’
/home/francesco/MITK-superbuild/VTK-src/Utilities/vtkmetaio/metaUtils.cxx:816:9:
error: ‘pp’ was not declared in this scope
/home/francesco/MITK-superbuild/VTK-src/Utilities/vtkmetaio/metaUtils.cxx:816:12:
error: ‘l’ was not declared in this scope
/home/francesco/MITK-superbuild/VTK-src/Utilities/vtkmetaio/metaUtils.cxx:829:3:
error: ‘pp’ was not declared in this scope
/home/francesco/MITK-superbuild/VTK-src/Utilities/vtkmetaio/metaUtils.cxx:829:6:
error: ‘l’ was not declared in this scope
/home/francesco/MITK-superbuild/VTK-src/Utilities/vtkmetaio/metaUtils.cxx:845:13:
error: expected ‘;’ before ‘i’
/home/francesco/MITK-superbuild/VTK-src/Utilities/vtkmetaio/metaUtils.cxx:846:7:
error: ‘i’ was not declared in this scope
/home/francesco/MITK-superbuild/VTK-src/Utilities/vtkmetaio/metaUtils.cxx:848:8:
error: ‘p’ was not declared in this scope
/home/francesco/MITK-superbuild/VTK-src/Utilities/vtkmetaio/metaUtils.cxx:854:11:
error: ‘p’ was not declared in this scope
/home/francesco/MITK-superbuild/VTK-src/Utilities/vtkmetaio/metaUtils.cxx:858:5:
error: ‘j’ was not declared in this scope
/home/francesco/MITK-superbuild/VTK-src/Utilities/vtkmetaio/metaUtils.cxx:859:11:
error: ‘p’ was not declared in this scope
make[5]: ***
[Utilities/vtkmetaio/CMakeFiles/vtkmetaio.dir/metaUtils.cxx.o] Error 1
make[4]: *** [Utilities/vtkmetaio/CMakeFiles/vtkmetaio.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [VTK-cmake/src/VTK-stamp/VTK-build] Error 2
make[1]: *** [CMakeFiles/VTK.dir/all] Error 2
make: *** [all] Error 2
$
....

Does anyone have an idea how to fix it?
Thank you in advance

Francesco



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
mitk-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/mitk-users


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to