[Paraview] 'getenv' error when building Paraview from source

Matthew Sinclair msinc.nz at gmail.com
Thu Nov 24 10:12:25 EST 2011


Hi,

I'm trying to use the plugin Superquadric Tensor Glyph Filter with
ParaView, which requires Paraview to be built from source. I followed the
instructions on the website:

http://www.vtk.org/Wiki/ParaView:Build_And_Install<https://kclmail.kcl.ac.uk/owa/redir.aspx?C=7c62667ea12c4bf0a54c84e3939be0ff&URL=http%3a%2f%2fwww.vtk.org%2fWiki%2fParaView%3aBuild_And_Install>


and have the Paraview source from git. I was hoping to get some help with
an error I encountered right at the end of compiling:


[100%] Built target ParaViewOnlineHelp
[100%] Generating ui_ParaViewMainWindow.h
[100%] Generating qrc_paraview_generated.cxx
[100%] Generating qrc_paraview_configuration.cxx
[100%] Generating qrc_paraview_help.cxx
[100%] Generating moc_ParaViewMainWindow.cxx
Scanning dependencies of target paraview
[100%] Building CXX object
Applications/ParaView/CMakeFiles/paraview.dir/paraview_main.cxx.o
/home/Matt/Apps/ParaView_bin/Applications/ParaView/paraview_main.cxx: In
function ‘int main(int, char**)’:
/home/Matt/Apps/ParaView_bin/Applications/ParaView/paraview_main.cxx:58:
error: ‘getenv’ was not declared in this scope
make[2]: ***
[Applications/ParaView/CMakeFiles/paraview.dir/paraview_main.cxx.o] Error 1
make[1]: *** [Applications/ParaView/CMakeFiles/paraview.dir/all] Error 2
make: *** [all] Error 2


Of interest is the fourth line from the bottom, containing " error:
‘getenv’ was not declared in this scope "

The source of this error seems to be that the file paraview_main.cxx does
not have the command: #include <stdlib.h>. However, paraview_main.cxx is
automatically generated every time I build Paraview, therefore manually
including the aforementioned command has no effect. Any suggestions?


Regards,

Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20111124/87e1f0b8/attachment.htm>


More information about the ParaView mailing list