[Paraview] problem compiling from cvs
Andy Heather
a.heather at opencfd.co.uk
Wed Jun 25 10:51:40 EDT 2008
Are you using gcc 4.3.x?
Try adding the <cstring> and <cstdlib> headers to
/Utilities/Xdmf2/libsrc/XdmfObject.h
i.e. for my linux box, i needed to update the header to:
# ifdef UNIX
# include "sys/file.h"
# include "strings.h"
# include <cstring> // ADDED
# include <cstdlib> // ADDED
# define STRCASECMP strcasecmp
# define STRNCASECMP strncasecmp
# define STRCMP strcmp
# define STRNCMP strncmp
# endif
Ricardo Reis wrote:
>
> I've retrieved the sources from cvs. deleted everything I had on disk
> previously. I got this error compiling:
>
> [ 47%] Built target ViewsCxxTests
> [ 47%] Built target paraview_pyc
> [ 47%] Built target H5detect
> [ 48%] Built target vtkhdf5
> [ 48%] Building CXX object
> Utilities/Xdmf2/libsrc/CMakeFiles/Xdmf.dir/XdmfArray.o
> In file included from
> /home/rreis/on_hold/src/paraview/ParaView3/Utilities/Xdmf2/libsrc/XdmfArray.cxx:25:
>
> /home/rreis/on_hold/src/paraview/ParaView3/Utilities/Xdmf2/libsrc/XdmfArray.h:
> In member function 'void XdmfArray::SetDataPointer(void*)':
> /home/rreis/on_hold/src/paraview/ParaView3/Utilities/Xdmf2/libsrc/XdmfArray.h:89:
> error: 'free' was not declared in this scope
> /home/rreis/on_hold/src/paraview/ParaView3/Utilities/Xdmf2/libsrc/XdmfArray.cxx:
> In destructor 'virtual XdmfArray::~XdmfArray()':
> /home/rreis/on_hold/src/paraview/ParaView3/Utilities/Xdmf2/libsrc/XdmfArray.cxx:238:
> error: 'free' was not declared in this scope
> /home/rreis/on_hold/src/paraview/ParaView3/Utilities/Xdmf2/libsrc/XdmfArray.cxx:
> In member function 'XdmfInt32 XdmfArray::Allocate()':
> /home/rreis/on_hold/src/paraview/ParaView3/Utilities/Xdmf2/libsrc/XdmfArray.cxx:292:
> error: 'realloc' was not declared in this scope
> /home/rreis/on_hold/src/paraview/ParaView3/Utilities/Xdmf2/libsrc/XdmfArray.cxx:294:
> error: 'malloc' was not declared in this scope
> make[2]: *** [Utilities/Xdmf2/libsrc/CMakeFiles/Xdmf.dir/XdmfArray.o]
> Error 1
> make[1]: *** [Utilities/Xdmf2/libsrc/CMakeFiles/Xdmf.dir/all] Error 2
> make: *** [all] Error 2
>
> I've read some previous posts and put
>
> VTK_USE_64BIT_IDS OFF
>
> but the output is the one above. any ideas?
>
> thanks,
>
>
> Ricardo Reis
>
> 'Non Serviam'
>
> PhD student @ Lasef
> Computational Fluid Dynamics, High Performance Computing, Turbulence
> http://www.lasef.ist.utl.pt
>
> &
>
> Cultural Instigator @ Rádio Zero
> http://www.radiozero.pt
>
> http://www.flickr.com/photos/rreis/
> ------------------------------------------------------------------------
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
--
Best regards,
Andy
Andrew Heather
OpenCFD Ltd.
9 Albert Road,
Caversham,
Reading RG4 7AN.
Tel: +44 (0)118 9471030
Email: A.Heather at OpenCFD.co.uk
URL: http://www.OpenCFD.co.uk
More information about the ParaView
mailing list