[Paraview] error making ParaView

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Thu Apr 19 15:40:22 EDT 2012


ParaView doesn't support building with cygwin. Plus you don't need
cygwin for shared libs. I'm sure the plugin will build just fine with
VS. You just need to set the BUILD_SHARED_LIBS cmake variable to true
when building ParaView.

Utkarsh

On Thu, Apr 19, 2012 at 2:37 PM, Celia Bremer <fuwsle at hotmail.com> wrote:
>
> I'm trying to make ParaView 3.12.0 on Cygwin because I want to use it with a plugin that requires shared libraries (this one: http://web678.public1.linz.at/Drupal/?q=node/620). I get the following error:
>
>
> [ 9%] Built target vtkHashSource
> [ 9%] Building CXX object VTK/Utilities/VPIC/CMakeFiles/VPIC.dir/VPICDataSet.cxx.o
> In file included from /home/UN/Paraview-3.14.1-src/VTK/Utilities/VPIC/VPICDataSet.h:11:0,
> from /home/UN/Paraview-3.14.1-src/VTK/Utilities/VPIC/VPICDataSet.cxx:1:
> /home/UN/ParaView-3.14.1-bin/VTK/Utilities/VPIC/VPICDefinition.h:110:19: error: ‘FILE’ was not declared in this scope
> /home/UN/ParaView-3.14.1-bin/VTK/Utilities/VPIC/VPICDefinition.h:110:25: error: ‘filePtr’ was not declared in this scope
> /home/UN/ParaView-3.14.1-bin/VTK/Utilities/VPIC/VPICDefinition.h:110:34: error: expected primary-expression before ‘int’
> /home/UN/ParaView-3.14.1-bin/VTK/Utilities/VPIC/VPICDefinition.h:118:9: error: ‘FILE’ has not been declared
> /home/UN/ParaView-3.14.1-bin/VTK/Utilities/VPIC/VPICDefinition.h:126:9: error: ‘FILE’ has not been declared
> /home/UN/ParaView-3.14.1-bin/VTK/Utilities/VPIC/VPICDefinition.h:134:9: error: ‘FILE’ has not been declared
> /home/UN/ParaView-3.14.1-bin/VTK/Utilities/VPIC/VPICDefinition.h:142:9: error: ‘FILE’ has not been declared
> VTK/Utilities/VPIC/CMakeFiles/VPIC.dir/build.make:54: recipe for target `VTK/Utilities/VPIC/CMakeFiles/VPIC.dir/VPICDataSet.cxx.o' failed
> make[2]: *** [VTK/Utilities/VPIC/CMakeFiles/VPIC.dir/VPICDataSet.cxx.o] Error 1
> CMakeFiles/Makefile2:2788: recipe for target `VTK/Utilities/VPIC/CMakeFiles/VPIC.dir/all' failed
> make[1]: *** [VTK/Utilities/VPIC/CMakeFiles/VPIC.dir/all] Error 2
> Makefile:133: recipe for target `all' failed
> make: *** [all] Error 2
>
> I'm new to compiling and I don't know what to do with this, why FILE etc are not declared or what they should be.
>
>
>
> ---------
> Also: this may have nothing to do with it, but when I was running ccmake, I got this:
>
>
>   CMake Warning at /usr/share/cmake-2.8.7/Modules/Platform/CYGWIN.cmake:15 (message):
>   CMake no longer defines WIN32 on Cygwin!
>
>
>   (1) If you are just trying to build this project, ignore this warning or
>   quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment or in
>   the CMake cache. If later configuration or build errors occur then this
>   project may have been written under the assumption that Cygwin is WIN32.
>   In that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead.
>
>
>
> I tried to do that to see if it fixed the error, but I'm not sure if I did it right. I added the line
>
>   CMAKE_LEGACY_CYGWIN_WIN32=1
>
> to CMakeCache.txt, then went into ccmake, [c], [g]. I looked at CMakeCache.txt again to see if the value is still there. It moved to a different area of the file and changed to
>
>
>   CMAKE_LEGACY_CYGWIN_WIN32:UNINITIALIZED=1
>
>
> I don't know if that's the right type, uninitialized. An attempt to make ParaView gives the same error as before.
> ---------
>
>
>
>
> I would really appreciate any help. Thank you.
> _______________________________________________
> 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