[Paraview-developers] Development ParaView and Manta

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Thu Oct 25 16:46:52 EDT 2012


I've pushed a fix for this issue and the change will go into
git-master after the next gatekeeper review:
http://paraview.org/Bug/view.php?id=13567

Utkarsh

On Wed, Oct 24, 2012 at 11:34 AM, David E DeMarle
<dave.demarle at kitware.com> wrote:
> Grrr, that does look like a problem. Seb and I think that the latest
> ParaView view architecture broke vtkManta.
>
> Can you submit a bug report on the bug tracker?
>
> Then we can try to get it fixed for 4.0. Although we aren't actively
> developing vtkManta, we do try to minimally maintain in so far as
> making sure it stays working as VTK and ParaView grow.
>
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 21 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-881-4909
>
>
> On Wed, Oct 24, 2012 at 11:16 AM, Magician <f_magician at mac.com> wrote:
>> Hi Seb and Dave,
>>
>>
>> Thanks for your replies.
>> Now I find "Manta View" and tried server-client mode.
>>
>> But if I generate Manta View, I got Another Error and ParaView was quitted:
>>> Error: In
>>> /Users/magician/ParaView/VTK/Rendering/Parallel/vtkSynchronizedRenderers.cxx,
>>> line 122
>>> vtkPVClientServerSynchronizedRenderers (0x7fe82ddd62c0): Received non OpenGL
>>> renderer
>> Same error was dumped in Stand-alone mode too.
>>
>>
>> Magician
>>
>>
>> On 2012/10/25, at 0:03, David E DeMarle wrote:
>>
>>> Seb is right, you have to make a manta view window to access the ray
>>> tracer. When you do the controls are activated.
>>>
>>> The little documentation we have is in the source article that came
>>> out when we developed it.
>>> http://www.kitware.com/media/html/RenderedRealismAtNearlyRealTimeRates.html
>>>
>>> The part that is directly to relevant to your question and paraview today is:
>>> "start the ParaView server and connect to it, then use the Tools
>>> -->Plugin manager to load the Manta plug-in on both the client and
>>> server processes. When this is done, close the default 3D view and
>>> create a Manta view in its place.
>>>
>>> There are settings to control the Manta engine (such as the number of
>>> rendering threads, enabling/disabling shadows) on ParaView's options
>>> dialog. There are also settings to control each actor's material
>>> properties (metal, dielectric, refractive indices, reflectivity) on
>>> the bottom of the Display Tab of the object inspector. Note that the
>>> exotic material types are not compatible with color mapped rendering
>>> (because of the need for data fidelity) and thus, they have no effect
>>> unless the object is rendered in solid color mode.
>>> "
>>>
>>> The known bugs and limitations are listed in the ParaView bug tracker.
>>> vtkManta hasn't been under active development for a long while, but
>>> we're always willing to help and or do the work when asked nicely.
>>>
>>> David E DeMarle
>>> Kitware, Inc.
>>> R&D Engineer
>>> 21 Corporate Drive
>>> Clifton Park, NY 12065-8662
>>> Phone: 518-881-4909
>>>
>>>
>>> On Wed, Oct 24, 2012 at 10:57 AM, Sebastien Jourdain
>>> <sebastien.jourdain at kitware.com> wrote:
>>>> Did you delete the 3D view and create the Manta one ? So you can get
>>>> those "Manta View Options" ?
>>>>
>>>> Seb
>>>>
>>>> On Wed, Oct 24, 2012 at 10:53 AM, Magician <f_magician at mac.com> wrote:
>>>>> Hi Dave,
>>>>>
>>>>>
>>>>> For example, any build options, boot options, system settings or other operations
>>>>> to handle MantaView?
>>>>> I just turned on it on "Manage Plugins...", and checked "Preferences.../Manta View".
>>>>> I tested some sources, but no MantaView options were appeared on the Properties tab.
>>>>>
>>>>>
>>>>> Magician
>>>>>
>>>>>
>>>>> On 2012/10/24, at 23:40, David E DeMarle wrote:
>>>>>
>>>>>> Sorry, I don't understand.
>>>>>> What do you mean by "techniques"?
>>>>>>
>>>>>> On 2012/10/24, at 23:34, Magician wrote:
>>>>>>
>>>>>>> Hi Dave,
>>>>>>>
>>>>>>>
>>>>>>> I turned off BUILD_TESTING, and ParaView was successfully built.
>>>>>>>
>>>>>>> But when I activated MantaView, I got errors same as Linux:
>>>>>>>> Generic Warning: In /Users/magician/ParaView/ParaViewCore/ServerManager/Core/vtkSMPropertyHelper.cxx, line 467
>>>>>>>> Failed to locate property: Threads
>>>>>>>>
>>>>>>>>
>>>>>>>> Generic Warning: In /Users/magician/ParaView/ParaViewCore/ServerManager/Core/vtkSMPropertyHelper.cxx, line 467
>>>>>>>> Failed to locate property: EnableShadows
>>>>>>>>
>>>>>>>>
>>>>>>>> Generic Warning: In /Users/magician/ParaView/ParaViewCore/ServerManager/Core/vtkSMPropertyHelper.cxx, line 467
>>>>>>>> Failed to locate property: Samples
>>>>>>>>
>>>>>>>>
>>>>>>>> Generic Warning: In /Users/magician/ParaView/ParaViewCore/ServerManager/Core/vtkSMPropertyHelper.cxx, line 467
>>>>>>>> Failed to locate property: MaxDepth
>>>>>>>
>>>>>>>
>>>>>>> Is there any techniques about MantaView?
>>>>>>>
>>>>>>>
>>>>>>> Magician
>>>>>>>
>>>>>>>
>>>>>>> On 2012/10/24, at 22:19, David E DeMarle wrote:
>>>>>>>
>>>>>>>> Looks like a bug regarding the new modular code structure of VTK/ParaView.
>>>>>>>>
>>>>>>>> From the compilation error message, I suspect it will work if you turn
>>>>>>>> off BUILD_TESTING in your cmake configuration of ParaView.
>>>>>>>>
>>>>>>>> David E DeMarle
>>>>>>>> Kitware, Inc.
>>>>>>>> R&D Engineer
>>>>>>>> 21 Corporate Drive
>>>>>>>> Clifton Park, NY 12065-8662
>>>>>>>> Phone: 518-881-4909
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Oct 24, 2012 at 8:50 AM, Magician <f_magician at mac.com> wrote:
>>>>>>>>> Hi Dave,
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Oh, it's about fundamental Unix/Linux operation!
>>>>>>>>> I updated my ConfigCompilerFlags.cmake and CPUTime.cc,
>>>>>>>>> and Manta was successfully built.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Then I tried to built MantaView with development ParaView,
>>>>>>>>> I still got these errors:
>>>>>>>>>> [ 92%] Building CXX object Plugins/Manta/VTK/Testing/CMakeFiles/MantaCxxTests.dir/ColorMap.cxx.o
>>>>>>>>>> /Users/magician/ParaView/Plugins/Manta/VTK/Testing/ColorMap.cxx:19:10: fatal error:
>>>>>>>>>>    'vtkRegressionTestImage.h' file not found
>>>>>>>>>> #include "vtkRegressionTestImage.h"
>>>>>>>>>>       ^
>>>>>>>>>> 1 error generated.
>>>>>>>>>> make[2]: *** [Plugins/Manta/VTK/Testing/CMakeFiles/MantaCxxTests.dir/ColorMap.cxx.o] Error 1
>>>>>>>>>> make[1]: *** [Plugins/Manta/VTK/Testing/CMakeFiles/MantaCxxTests.dir/all] Error 2
>>>>>>>>>> make: *** [all] Error 2
>>>>>>>>> My vtkRegressionTestImage.h was found at /Users/magician/ParaView//VTK/Testing/Rendering.
>>>>>>>>>
>>>>>>>>> I tried svnversion to Manta and it dumped "2439M".
>>>>>>>>> Any ideas?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Magician
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 2012/10/24, at 2:01, David E DeMarle wrote:
>>>>>>>>>
>>>>>>>>>> patch -p1 < thepatchfile.txt
>>>>>>>>>>
>>>>>>>>>> Or just edit the two files and manual change the line flagged with a
>>>>>>>>>> leading - to the one flagged with the leading +. Or perhaps just the
>>>>>>>>>> one file since you've got a ppc_intrinsics.h handy.
>>>>>>>>>>
>>>>>>>>>> Then rebuild manta and follow up by rebuilding paraview.
>>>>>>>>>>
>>>>>>>>>> David E DeMarle
>>>>>>>>>> Kitware, Inc.
>>>>>>>>>> R&D Engineer
>>>>>>>>>> 21 Corporate Drive
>>>>>>>>>> Clifton Park, NY 12065-8662
>>>>>>>>>> Phone: 518-881-4909
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Tue, Oct 23, 2012 at 10:59 AM, Magician <f_magician at mac.com> wrote:
>>>>>>>>>>> Hi Dave,
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Thanks for your reply.
>>>>>>>>>>>
>>>>>>>>>>>> This patch allows manta 2439 to build on 10.7 = OSX Lion.
>>>>>>>>>>> How to apply it?
>>>>>>>>>>>
>>>>>>>>>>> I found ppc_intrinsics.h is in /usr/include/gcc/darwin/4.2.
>>>>>>>>>>> If I set include path correctly, make may works good.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Magician
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On 2012/10/22, at 23:37, David E DeMarle wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Not sure what is wrong on Linux. But I do know that the manta plugin
>>>>>>>>>>>> works in our 3.14.1 binaries (mac and linux - not windows). Those
>>>>>>>>>>>> errors make me think that you don't have a manta view open and that
>>>>>>>>>>>> the client is trying to access the manta view specific properties
>>>>>>>>>>>> (shadows, threads etc) on a standard 3D view window.
>>>>>>>>>>>>
>>>>>>>>>>>> This patch allows manta 2439 to build on 10.7 = OSX Lion.
>>>>>>>>>>>> Index: CMake/ConfigCompilerFlags.cmake
>>>>>>>>>>>> ===================================================================
>>>>>>>>>>>> --- CMake/ConfigCompilerFlags.cmake     (revision 2439)
>>>>>>>>>>>> +++ CMake/ConfigCompilerFlags.cmake     (working copy)
>>>>>>>>>>>> @@ -173,7 +173,7 @@
>>>>>>>>>>>> SET(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.5.sdk" CACHE
>>>>>>>>>>>> STRING "OS X Sysroot" FORCE)
>>>>>>>>>>>> COMPARE_VERSION_STRINGS(${APPLE_VERSION} "10" APPLE_SNOW_LEOPARD_CMP)
>>>>>>>>>>>> IF (APPLE_SNOW_LEOPARD_CMP GREATER -1)
>>>>>>>>>>>> -      SET(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.6.sdk" CACHE
>>>>>>>>>>>> STRING "OS X Sysroot" FORCE)
>>>>>>>>>>>> +      SET(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.7.sdk" CACHE
>>>>>>>>>>>> STRING "OS X Sysroot" FORCE)
>>>>>>>>>>>> ENDIF(APPLE_SNOW_LEOPARD_CMP GREATER -1)
>>>>>>>>>>>> ELSE(MANTA_TARGET_LEOPARD)
>>>>>>>>>>>> SET(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.4u.sdk" CACHE
>>>>>>>>>>>> STRING "OS X Sysroot" FORCE)
>>>>>>>>>>>> Index: Core/Util/CPUTime.cc
>>>>>>>>>>>> ===================================================================
>>>>>>>>>>>> --- Core/Util/CPUTime.cc        (revision 2439)
>>>>>>>>>>>> +++ Core/Util/CPUTime.cc        (working copy)
>>>>>>>>>>>> @@ -2,7 +2,7 @@
>>>>>>>>>>>> #include <Core/Thread/ThreadError.h>
>>>>>>>>>>>>
>>>>>>>>>>>> #if defined(__APPLE__)
>>>>>>>>>>>> -#include <ppc_intrinsics.h>
>>>>>>>>>>>> +//#include <ppc_intrinsics.h>
>>>>>>>>>>>> #include <mach/mach.h>
>>>>>>>>>>>> #include <mach/mach_time.h>
>>>>>>>>>>>> #elif _WIN32
>>>>>>>>>>>>
>>>>>>>>>>>> David E DeMarle
>>>>>>>>>>>> Kitware, Inc.
>>>>>>>>>>>> R&D Engineer
>>>>>>>>>>>> 21 Corporate Drive
>>>>>>>>>>>> Clifton Park, NY 12065-8662
>>>>>>>>>>>> Phone: 518-881-4909
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Mon, Oct 22, 2012 at 10:19 AM, Magician <f_magician at mac.com> wrote:
>>>>>>>>>>>>> Hi Seb,
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> I'm trying again to build Manta on Mac and Linux (CentOS 6.2).
>>>>>>>>>>>>> Yesterday I set MANTA_SOURCE, but today I'm trying with MANTA_BUILD.
>>>>>>>>>>>>>
>>>>>>>>>>>>> On CentOS, I built Manta and set MANTA_BUILD of ParaView CMake,
>>>>>>>>>>>>> and the building process was completed.
>>>>>>>>>>>>> I used ParaView 3.14.1 Released sources in this case.
>>>>>>>>>>>>> But if I startup ParaView and activate MantaView, no materials are
>>>>>>>>>>>>> selectable, and "Edit->Settings...->Manta View" dumped errors:
>>>>>>>>>>>>>> Generic Warning: In /home/magician/Desktop/ParaView-3.14.1-Source/ParaViewCore/ServerManager/vtkSMPropertyHelper.cxx, line 444
>>>>>>>>>>>>>> Failed to locate property: Threads
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Generic Warning: In /home/magician/Desktop/ParaView-3.14.1-Source/ParaViewCore/ServerManager/vtkSMPropertyHelper.cxx, line 444
>>>>>>>>>>>>>> Failed to locate property: EnableShadows
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Generic Warning: In /home/magician/Desktop/ParaView-3.14.1-Source/ParaViewCore/ServerManager/vtkSMPropertyHelper.cxx, line 444
>>>>>>>>>>>>>> Failed to locate property: Samples
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Generic Warning: In /home/magician/Desktop/ParaView-3.14.1-Source/ParaViewCore/ServerManager/vtkSMPropertyHelper.cxx, line 444
>>>>>>>>>>>>>> Failed to locate property: MaxDepth
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Mac OS 10.7.4, wrong CMAKE_OSX_SYSROOT of CMake of Manta was found.
>>>>>>>>>>>>> That was "/Developer/SDKs/MacOSX10.6.sdk", but XCode 4.3.3 has
>>>>>>>>>>>>> MacOSX10.6.sdk inside.
>>>>>>>>>>>>> So I copied it at /Developer/SDKs and configured.
>>>>>>>>>>>>> But I got errors on make process of Manta:
>>>>>>>>>>>>>> [  1%] Building CXX object Core/CMakeFiles/Manta_Core.dir/Util/CPUTime.o
>>>>>>>>>>>>>> /Users/magician/Documents/ParaViewTest/Manta/Core/Util/CPUTime.cc:5:28: error: ppc_intrinsics.h: No such file or directory
>>>>>>>>>>>>>> make[2]: *** [Core/CMakeFiles/Manta_Core.dir/Util/CPUTime.o] Error 1
>>>>>>>>>>>>>> make[1]: *** [Core/CMakeFiles/Manta_Core.dir/all] Error 2
>>>>>>>>>>>>>> make: *** [all] Error 2
>>>>>>>>>>>>>
>>>>>>>>>>>>> All Manta's revisions are r2439.
>>>>>>>>>>>>> Latest revision (r2540) could be build on Xcode 4.3.3,
>>>>>>>>>>>>> so r2439 may have some problems on latest Xcode.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Magician
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 2012/10/22, at 1:16, Magician wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hi Seb,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Thanks for your advices.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> The first problem is ... I'm not so familiar with Subversion.
>>>>>>>>>>>>>> I tried to check ParaView and Manta's latest revision, but I couldn't.
>>>>>>>>>>>>>> When I boot my ParaView, the name is shown as
>>>>>>>>>>>>>> "ParaView 3.14.1-2219-g76768da 64-bit".
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> And as you mensioned, I found the issue about Manta's revision on ParaView Wiki.
>>>>>>>>>>>>>> It said r2439 is applicable, but I got another error with r2439:
>>>>>>>>>>>>>>> [ 92%] Building CXX object Plugins/Manta/VTK/CMakeFiles/vtkManta.dir/vtkMantaObjectFactory.cxx.o
>>>>>>>>>>>>>>> Linking CXX shared library ../../../lib/libvtkManta-pv3.14.dylib
>>>>>>>>>>>>>>> Undefined symbols for architecture x86_64:
>>>>>>>>>>>>>>> "Manta::MutexPool::MutexPool(char const*, int)", referenced from:
>>>>>>>>>>>>>>> Manta::DynBVH::DynBVH(bool)in vtkMantaActor.cxx.o
>>>>>>>>>>>>>>> "Manta::MutexPool::~MutexPool()", referenced from:
>>>>>>>>>>>>>>> Manta::DynBVH::DynBVH(bool)in vtkMantaActor.cxx.o
>>>>>>>>>>>>>>> ld: symbol(s) not found for architecture x86_64
>>>>>>>>>>>>>>> collect2: ld returned 1 exit status
>>>>>>>>>>>>>>> make[2]: *** [lib/libvtkManta-pv3.14.1.dylib] Error 1
>>>>>>>>>>>>>>> make[1]: *** [Plugins/Manta/VTK/CMakeFiles/vtkManta.dir/all] Error 2
>>>>>>>>>>>>>>> make: *** [all] Error 2
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Magician
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 2012/10/22, at 0:20, Sebastien Jourdain wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> As far as I remember, you shouldn't use the latest version of Manta. Check which one is recommended on the ParaView wiki.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Moreover, what do you mean by ParaView r2219 ?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> This is the latest master sha taken from the dashboard superbuild. 48a09a12f230d4b850588b3a316f8d94569c9870
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Seb
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Oct 21, 2012, at 9:19 AM, Magician <f_magician at mac.com> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Hi all,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I'm trying to build development distribution of ParaView (r2219).
>>>>>>>>>>>>>>>> My environment is Mac OS 10.7.4, Xcode 4.3.3, CMake 2.8.9, Python 2.7.1, and Qt 4.8.2.
>>>>>>>>>>>>>>>> I only activated ENABLE_PYTHON and the building process successfully finished.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Now I'd like to build it with Manta Plug-in.
>>>>>>>>>>>>>>>> I got the latest sources from svn and built it as a stand-alone binary.
>>>>>>>>>>>>>>>> It works very good on my X11 (a metallic red ball was shown).
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> But building with ParaView, I got these errors:
>>>>>>>>>>>>>>>>> [ 92%] Built target vtkMantaPythonD
>>>>>>>>>>>>>>>>> Linking CXX shared module ../../../lib/vtkMantaPython.so
>>>>>>>>>>>>>>>>> [ 92%] Built target vtkMantaPython
>>>>>>>>>>>>>>>>> [ 92%] Building CXX object Plugins/Manta/VTK/Testing/CMakeFiles/MantaCxxTests.dir/ColorMap.cxx.o
>>>>>>>>>>>>>>>>> /Users/magician/ParaView/Plugins/Manta/VTK/Testing/ColorMap.cxx:19:36: error: vtkRegressionTestImage.h: No such file or directory
>>>>>>>>>>>>>>>>> /Users/magician/ParaView/Plugins/Manta/VTK/Testing/ColorMap.cxx: In function ‘int ColorMap(int, char**)’:
>>>>>>>>>>>>>>>>> /Users/magician/ParaView/Plugins/Manta/VTK/Testing/ColorMap.cxx:332: error: ‘vtkRegressionTestImage’ was not declared in this scope
>>>>>>>>>>>>>>>>> /Users/magician/ParaView/Plugins/Manta/VTK/Testing/ColorMap.cxx:333: error: ‘vtkRegressionTester’ has not been declared
>>>>>>>>>>>>>>>>> make[2]: *** [Plugins/Manta/VTK/Testing/CMakeFiles/MantaCxxTests.dir/ColorMap.cxx.o] Error 1
>>>>>>>>>>>>>>>>> make[1]: *** [Plugins/Manta/VTK/Testing/CMakeFiles/MantaCxxTests.dir/all] Error 2
>>>>>>>>>>>>>>>>> make: *** [all] Error 2
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> When rebuilding ParaView, I changed these CMake options:
>>>>>>>>>>>>>>>>> PARAVIEW_ENABLE_PYTHON: ON
>>>>>>>>>>>>>>>>> PARAVIEW_BUILD_PLUGIN_MantaView: ON
>>>>>>>>>>>>>>>>> MANTA_SOURCE: /Users/magician/Documents/Manta/trunk/
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> How can I solve the problem?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Magician
>>>>>>>
>>>>>>
>>
> _______________________________________________
> Paraview-developers mailing list
> Paraview-developers at paraview.org
> http://public.kitware.com/mailman/listinfo/paraview-developers


More information about the Paraview-developers mailing list