[vtkusers] SystemTools.cxx:326:51: error: ‘realpath’ was not declared in this scope

Andrew J. Buckler (Elucid Bioimaging) andrew.buckler at elucidbio.com
Sat Oct 31 11:24:20 EDT 2015


Hello,
I was able to build VTK, which is great, but now have the same problem with ITK.  I did look at the VTK patch, to see if it could be applied to ITK as well, but it is more complex than I am conformable with.  I did also do a web search, but do not find anything obvious.  Cory or others, is there another patch or approach for ITK?

Thank you,
Andy

From: Andrew J. Buckler (Elucid Bioimaging)
Sent: Friday, October 30, 2015 6:30 PM
To: 'Cory Quammen'
Cc: vtkusers at vtk.org
Subject: RE: [vtkusers] SystemTools.cxx:326:51: error: ‘realpath’ was not declared in this scope

That did it, thank you!

From: Cory Quammen [mailto:cory.quammen at kitware.com]
Sent: Friday, October 30, 2015 12:10 PM
To: Andrew J. Buckler (Elucid Bioimaging)
Cc: vtkusers at vtk.org<mailto:vtkusers at vtk.org>
Subject: Re: [vtkusers] SystemTools.cxx:326:51: error: ‘realpath’ was not declared in this scope

Hi Andy,

I don't know if cygwin is officially supported anymore. VTK isn't being tested against cygwin on a regular basis.

Perhaps this page will help:

http://hvrl.ics.keio.ac.jp/kimura/vtk/vtk-6.3.0.html.

Cory

On Fri, Oct 30, 2015 at 10:12 AM, Andrew J. Buckler (Elucid Bioimaging) <andrew.buckler at elucidbio.com<mailto:andrew.buckler at elucidbio.com>> wrote:
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<tel:%2B1-978-468-0508>
Mobile: +1-978-473-1986<tel:%2B1-978-473-1986>
Fax: +1-978-468-0527<tel:%2B1-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.


_______________________________________________
Powered by www.kitware.com<http://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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers



--
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151031/94682708/attachment-0001.html>


More information about the vtkusers mailing list