[vtkusers] SystemTools.cxx:326:51: error: ‘realpath’ was not declared in this scope
Andrew J. Buckler (Elucid Bioimaging)
andrew.buckler at elucidbio.com
Fri Oct 30 10:12:18 EDT 2015
Hello,
I am building VTK on Windows with Cygwin. I am trying to make the use of cmake and the build process as similar to Mac as possible; I already have it working there. The cmake configuration works fine, but the build fails:
$ make
Scanning dependencies of target VTKData
[ 0%] Built target VTKData
Scanning dependencies of target vtksys
[ 0%] Building C object Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/ProcessUNIX.c.o
[ 0%] Building C object Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/Base64.c.o
[ 0%] Building C object Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/EncodingC.c.o
[ 0%] Building C object Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/MD5.c.o
[ 0%] Building C object Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/System.c.o
[ 0%] Building CXX object Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/Directory.cxx.o
[ 0%] Building CXX object Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/DynamicLoader.cxx.o
[ 0%] Building CXX object Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/EncodingCXX.cxx.o
[ 0%] Building CXX object Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/Glob.cxx.o
[ 0%] Building CXX object Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/RegularExpression.cxx.o
[ 0%] Building CXX object Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/SystemTools.cxx.o
/cygdrive/c/Users/Andrew Buckler/My Documents/projects/VTK-6.3.0/Utilities/KWSys/vtksys/SystemTools.cxx: In function ‘void Realpath(const string&, std::string&, std::string*)’:
/cygdrive/c/Users/Andrew Buckler/My Documents/projects/VTK-6.3.0/Utilities/KWSys/vtksys/SystemTools.cxx:326:51: error: ‘realpath’ was not declared in this scope
char *ret = realpath(path.c_str(), resolved_name);
^
/cygdrive/c/Users/Andrew Buckler/My Documents/projects/VTK-6.3.0/Utilities/KWSys/vtksys/SystemTools.cxx: In function ‘int vtksys::kwsysUnPutEnv(const string&)’:
/cygdrive/c/Users/Andrew Buckler/My Documents/projects/VTK-6.3.0/Utilities/KWSys/vtksys/SystemTools.cxx:518:16: error: ‘putenv’ was not declared in this scope
if(putenv(buf) < 0 && errno != EINVAL)
^
/cygdrive/c/Users/Andrew Buckler/My Documents/projects/VTK-6.3.0/Utilities/KWSys/vtksys/SystemTools.cxx: In member function ‘bool vtksys::kwsysEnv::Put(const char*)’:
/cygdrive/c/Users/Andrew Buckler/My Documents/projects/VTK-6.3.0/Utilities/KWSys/vtksys/SystemTools.cxx:658:25: error: ‘putenv’ was not declared in this scope
return putenv(newEnv) == 0;
^
Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/build.make:302: recipe for target 'Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/SystemTools.cxx.o' failed
make[2]: *** [Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/SystemTools.cxx.o] Error 1
CMakeFiles/Makefile2:193: recipe for target 'Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/all' failed
make[1]: *** [Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Any help?
Best regards,
Andy
-------------------------------------
Andrew J. Buckler, President and CEO
Elucid Bioimaging Inc.
225 Main Street, Suite 15 | Wenham, MA 01984 USA
Office: +1-978-468-0508
Mobile: +1-978-473-1986
Fax: +1-978-468-0527
andrew.buckler at elucidbio.com<mailto:andrew.buckler at elucidbio.com> | www.elucidbio.com<http://www.elucidbio.com/>
This e-mail is from Elucid Bioimaging Inc., a product development and contract research company, and may contain information that is confidential or privileged. If you are not the intended recipient, do not read, copy or distribute the e-mail or any attachments. Instead, please notify the sender and delete the e-mail and any attachments. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151030/7c026cf7/attachment.html>
More information about the vtkusers
mailing list