[Paraview] Compiling the cvs

Berk Geveci berk.geveci at kitware.com
Tue Mar 24 14:29:36 EDT 2009


Can you try adding an include for stdlib.h on top of XdmfDataDesc.h?
Something like:

#include <stdlib.h>

Please let me know if this works.

-berk

On Mon, Mar 23, 2009 at 5:11 AM, Alin M Elena
<alinm.elena at googlemail.com> wrote:
> Hi
>
> I try to compile the CVS version of paraview with all the plugins.
>
> I use  the cvs of cmake, qt45 and intel 11 compilers.
>
>
> -- Plugin: Array enabled
> -- Plugin: ChartViewFrame enabled
> -- Plugin: ClientAttributeView enabled
> -- Plugin: ClientChartView enabled
> -- Plugin: ClientGeoView enabled
> -- Plugin: ClientGeoView2D enabled
> -- Plugin: ClientGraphView enabled
> -- Plugin: ClientHierarchyView enabled
> -- Plugin: ClientRecordView enabled
> -- Plugin: ClientTableView enabled
> -- Plugin: CommonToolbar enabled
> -- Plugin: Cosmology Filters enabled
> -- Plugin: GraphLayoutFilterPanel enabled
> -- Plugin: Infovis enabled
> -- Plugin: Filters for Flux and Circulation Fields enabled
> -- Plugin: netCDFReaders enabled
> -- Plugin: Prism enabled
> -- Plugin: SLACTools enabled
> -- Plugin: SQLDatabaseGraphSourcePanel enabled
> -- Plugin: SQLDatabaseTableSourcePanel enabled
> -- Plugin: SplitTableFieldPanel enabled
> -- Plugin: StatisticsToolbar enabled
> -- Plugin: TableToGraphPanel enabled
> -- Plugin: TableToSparseArrayPanel enabled
> -- Plugin: ThresholdTablePanel enabled
> -- Application: Standard ParaView Client enabled
> -- Application: OverView Informatics Client enabled
> -- Application: Streaming ParaView Application enabled
> -- Configuring done
>
> Everything seems to be fine up to the Xdmf
>
> [ 46%] Building CXX object
> Utilities/Xdmf2/libsrc/CMakeFiles/Xdmf.dir/XdmfArray.o
> cd /home/alin/ParaView3/build/Utilities/Xdmf2/libsrc && /opt/intel-
> openmpi/bin/mpic++   -DXdmf_EXPORTS -DVTK_PYTHON_BUILD -DMPICH_IGNORE_CXX_SEEK
> -DLinux -D_HPUX_SOURCE -fPIC -I/home/alin/ParaView3/Utilities/Xdmf2/libsrc -
> I/home/alin/ParaView3/build -I/home/alin/ParaView3/build/VTK/Utilities -
> I/usr/include/python2.6 -I/opt/intel-openmpi/include -I/opt/intel-
> openmpi/include/openmpi -I/home/alin/ParaView3/Utilities/Xdmf2/Ice -
> I/home/alin/ParaView3/build/Utilities/Xdmf2/Ice -
> I/home/alin/ParaView3/build/Utilities/Xdmf2/libsrc -
> I/home/alin/ParaView3/Utilities/Xdmf2/vtk -
> I/home/alin/ParaView3/build/Utilities/Xdmf2/vtk -I/home/alin/ParaView3/VTK -
> I/home/alin/ParaView3/build/VTK -I/home/alin/ParaView3/VTK/Utilities -
> I/home/alin/ParaView3/VTK/Common -I/home/alin/ParaView3/build/VTK/Common -
> I/home/alin/ParaView3/VTK/Filtering -I/home/alin/ParaView3/build/VTK/Filtering
> -I/home/alin/ParaView3/VTK/GenericFiltering -
> I/home/alin/ParaView3/build/VTK/GenericFiltering -I/home/alin/ParaView3/VTK/IO
> -I/home/alin/ParaView3/build/VTK/IO -I/home/alin/ParaView3/VTK/Imaging -
> I/home/alin/ParaView3/build/VTK/Imaging -I/home/alin/ParaView3/VTK/Rendering -
> I/home/alin/ParaView3/build/VTK/Rendering -I/home/alin/ParaView3/VTK/Parallel
> -I/home/alin/ParaView3/build/VTK/Parallel -I/home/alin/ParaView3/VTK/Graphics
> -I/home/alin/ParaView3/build/VTK/Graphics -I/home/alin/ParaView3/VTK/Hybrid -
> I/home/alin/ParaView3/build/VTK/Hybrid -
> I/home/alin/ParaView3/VTK/VolumeRendering -
> I/home/alin/ParaView3/build/VTK/VolumeRendering -
> I/home/alin/ParaView3/VTK/Widgets -I/home/alin/ParaView3/build/VTK/Widgets -
> I/home/alin/ParaView3/VTK/Infovis -I/home/alin/ParaView3/build/VTK/Infovis -
> I/home/alin/ParaView3/VTK/Views -I/home/alin/ParaView3/build/VTK/Views -
> I/usr/include/libxml2   -o CMakeFiles/Xdmf.dir/XdmfArray.o -c
> /home/alin/ParaView3/Utilities/Xdmf2/libsrc/XdmfArray.cxx
> /home/alin/ParaView3/Utilities/Xdmf2/libsrc/XdmfDataDesc.h(195): error:
> identifier "strcmp" is undefined
>    XdmfSetStringMacro(HeavyDataSetName);
>    ^
>
> /home/alin/ParaView3/Utilities/Xdmf2/libsrc/XdmfDataDesc.h(195): error:
> identifier "strlen" is undefined
>    XdmfSetStringMacro(HeavyDataSetName);
>    ^
>
> /home/alin/ParaView3/Utilities/Xdmf2/libsrc/XdmfDataDesc.h(195): error:
> identifier "strcpy" is undefined
>    XdmfSetStringMacro(HeavyDataSetName);
>    ^
>
> /home/alin/ParaView3/Utilities/Xdmf2/libsrc/XdmfArray.h(391): error:
> identifier "strlen" is undefined
>      this->SetNumberOfElements( strlen( String ) + 1 );
>                                 ^
>
> /home/alin/ParaView3/Utilities/Xdmf2/libsrc/XdmfArray.h(392): error:
> identifier "strcpy" is undefined
>      strcpy((XdmfString)this->GetDataPointer(), String );
>      ^
>
> /home/alin/ParaView3/Utilities/Xdmf2/libsrc/XdmfArray.cxx(99): error:
> identifier "memcpy" is undefined
>      memcpy( NewList, this->List, this->ListLength * sizeof( XdmfArrayList
> ));
>      ^
>
> /home/alin/ParaView3/Utilities/Xdmf2/libsrc/XdmfArray.cxx(115): error:
> identifier "memmove" is undefined
>      memmove( &this->List[ i ],
>      ^
>
> /home/alin/ParaView3/Utilities/Xdmf2/libsrc/XdmfArray.cxx(132): error:
> identifier "strlen" is undefined
>  istrstream   Tag(TagName, strlen(TagName));
>                            ^
>
> /home/alin/ParaView3/Utilities/Xdmf2/libsrc/XdmfArray.cxx(549): error:
> identifier "strlen" is undefined
>  char* NewValues = new char [ strlen(Values) + 1 ];
>                               ^
>
> /home/alin/ParaView3/Utilities/Xdmf2/libsrc/XdmfArray.cxx(550): error:
> identifier "strcpy" is undefined
>  strcpy(NewValues, Values);
>  ^
>
> /home/alin/ParaView3/Utilities/Xdmf2/libsrc/XdmfArray.cxx(956): error:
> identifier "strlen" is undefined
>  ReturnString = new char[ strlen( Ptr ) + 2 ];
>                           ^
>
> /home/alin/ParaView3/Utilities/Xdmf2/libsrc/XdmfArray.cxx(957): error:
> identifier "strcpy" is undefined
>  strcpy( ReturnString, Ptr );
>  ^
>
> /home/alin/ParaView3/Utilities/Xdmf2/libsrc/XdmfArray.cxx(1151): error:
> identifier "memcpy" is undefined
>    memcpy( Target, Ptr, Size );
>    ^
>
> /home/alin/ParaView3/Utilities/Xdmf2/libsrc/XdmfArray.cxx(1176): error:
> identifier "memcpy" is undefined
>  memcpy( NewArray->GetDataPointer(0),
>  ^
>
> compilation aborted for
> /home/alin/ParaView3/Utilities/Xdmf2/libsrc/XdmfArray.cxx (code 2)
> make[2]: *** [Utilities/Xdmf2/libsrc/CMakeFiles/Xdmf.dir/XdmfArray.o] Error 2
> make[2]: Leaving directory `/home/alin/ParaView3/build'
> make[1]: *** [Utilities/Xdmf2/libsrc/CMakeFiles/Xdmf.dir/all] Error 2
> make[1]: Leaving directory `/home/alin/ParaView3/build'
> make: *** [all] Error 2
>
>
> Any thoughts?
>
> Alin
>
> --
>  ______________________________________________________________________
>  "If the Universities will not study useless subjects, who will?"
>                             G. F. FitzGerald, Nature, 45/46, 392 (1892)
>  ______________________________________________________________________
>  Mr  Alin M ELENA
>  Irish Centre for High-End Computing -- www.ichec.ie
>  The Design Tower, Trinity Technology & Enterprise Campus
>  Grand Canal Quay,  Dublin 2, Ireland
>  Tel:   +353 (0) 1 5241608 ext 29
>  Fax: +353 (0) 1 7645845
>  http://alin.elenaworld.net
>  alin.elena at ichec.ie
>  alinm.elena at gmail.com
>  ______________________________________________________________________
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>


More information about the ParaView mailing list