Building VTK Master (8.90)

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Building VTK Master (8.90)

Andrew Maclean-3
In summary, I get a build on Ubuntu 18.10 with just the defaults and these changes:
VTK_ENABLE_GROUP_QT->WANT
VTK_MODULE_ENABLE_VTK_RenderingFreeType DEFAULT->NO
VTK_WRAP_PYTHON on
VTK_PYTHON_VERSION 3
VTK_SMP_IMPLEMENTATION_TYPE TBB

In VTK/lib there is a python2.7 folder. Given that I built for Python 3.7.1, is this folder name correct?

Of concern is the UUID error and the fact Java wrapping seems to be broken, see comments below.

With the old version of VTK, I built FreeType ok, Java wrapping worked and there was no UUID error.


I have local installations of Java 11.0.1, Anaconda Python 3.7.1 and TBB.
    Cmake found the Anaconda Python release library Ok, Java Ok, TBB Ok.
    Set Java source/target versions to 1.9 (The wrapping doesn't know about version 1.11)

1) Using TBB
   CMake Found libtbb_debug.so, libtbb.so however had to set libtbb_debug.so.2, libtbb.so.2 instead.

2) FAILED: bin/vtkRenderingFreeTypeCxxTests
    Error:
    usr/bin/ld: /usr/lib/x86_64-linux-gnu/libSM.so: undefined reference to `uuid_unparse_lower@UUID_1.0'
    /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libSM.so: undefined reference to `uuid_generate@UUID_1.0'

    So I installed the package uuid-dev

    However the same error occurred.


    So I set: VTK_MODULE_ENABLE_VTK_RenderingFreeType DEFAULT->NO

3) Java Wrapping (Using Java 11)

    It failed compiling Java classes:
    Lots of errors like this:
    /home/amaclean/Development/Kitware/build/VTK/Wrapping/Java/src/vtk/rendering/vtkAbstractComponent.java:5: error: cannot find symbol
    import vtk.vtkAxesActor;
              ^
      symbol:   class vtkAxesActor
      location: package vtk
    /home/amaclean/Development/Kitware/build/VTK/Wrapping/Java/src/vtk/rendering/vtkAbstractComponent.java:10: error: cannot find symbol
    import vtk.vtkOrientationMarkerWidget;
              ^
      symbol:   class vtkOrientationMarkerWidget
      location: package vtk

      So I turned off Java Wrapping

4) Build successful.
5) Tests:
    98% tests passed, 15 tests failed out of 801

    Total Test time (real) = 194.78 sec

    The following tests FAILED:
            201 - VTK::IOGeometryPython-Plot3DVectors (Failed)
            301 - VTK::FiltersHybridPython-3DMorph (Failed)
            303 - VTK::FiltersHybridPython-TestGridWarp3D (Failed)
            304 - VTK::FiltersHybridPython-TestGridWarpCubic (Failed)
            305 - VTK::FiltersHybridPython-TestGridWarpLinear (Failed)
            306 - VTK::FiltersHybridPython-TestGridWarpNearest (Failed)
            307 - VTK::FiltersHybridPython-TestImageStencilWithPolydata (Failed)
            319 - VTK::FiltersHybridPython-largeImageGradientBackground (Failed)
            320 - VTK::FiltersHybridPython-largeImageOffset (Failed)
            321 - VTK::FiltersHybridPython-largeImageParallel (Failed)
            383 - VTK::FiltersModelingPython-HyperScalarBar (Failed)
            387 - VTK::FiltersModelingPython-TestBandedContourFilter (Failed)
            406 - VTK::FiltersModelingPython-extrudeCopyCD (Failed)
            550 - VTK::CommonComputationalGeometryPython-TestParametricFunctions (Failed)
            551 - VTK::CommonComputationalGeometryPython-TestMoreParametricFunctions (Failed)
    Errors while running CTest

6) VTK Python all good:

    Python 3.7.1 (default, Dec 14 2018, 19:33:21) 
    [GCC 7.3.0] :: Anaconda, Inc. on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> 

7) No Qt built so set VTK_ENABLE_GROUP_QT->WANT

--
___________________________________________
Andrew J. P. Maclean

___________________________________________

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtk-developers

Reply | Threaded
Open this post in threaded view
|

Re: Building VTK Master (8.90)

VTK - Dev mailing list


On Sat, Jan 12, 2019 at 1:23 AM Andrew Maclean <[hidden email]> wrote:
In summary, I get a build on Ubuntu 18.10 with just the defaults and these changes:
VTK_ENABLE_GROUP_QT->WANT
VTK_MODULE_ENABLE_VTK_RenderingFreeType DEFAULT->NO
VTK_WRAP_PYTHON on
VTK_PYTHON_VERSION 3
VTK_SMP_IMPLEMENTATION_TYPE TBB

In VTK/lib there is a python2.7 folder. Given that I built for Python 3.7.1, is this folder name correct?

I've seen the same behavior. For some reason 
PYTHON_EXECUTABLE:FILEPATH
points to the python2 executable instead of python3. 
A workaround is to change it to point to the correct python and that fixes the problem.
I have not looked into why the variable is set this way.

Dan



_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtk-developers

Reply | Threaded
Open this post in threaded view
|

Re: Building VTK Master (8.90)

Andrew Maclean-3
Thanks for that advice.
FYI: The PYTHON_EXECUTABLE:FILEPATH is in Ungrouped Entries.

Regards
   Andrew

On Sun, Jan 13, 2019 at 2:05 AM Dan Lipsa <[hidden email]> wrote:


On Sat, Jan 12, 2019 at 1:23 AM Andrew Maclean <[hidden email]> wrote:
In summary, I get a build on Ubuntu 18.10 with just the defaults and these changes:
VTK_ENABLE_GROUP_QT->WANT
VTK_MODULE_ENABLE_VTK_RenderingFreeType DEFAULT->NO
VTK_WRAP_PYTHON on
VTK_PYTHON_VERSION 3
VTK_SMP_IMPLEMENTATION_TYPE TBB

In VTK/lib there is a python2.7 folder. Given that I built for Python 3.7.1, is this folder name correct?

I've seen the same behavior. For some reason 
PYTHON_EXECUTABLE:FILEPATH
points to the python2 executable instead of python3. 
A workaround is to change it to point to the correct python and that fixes the problem.
I have not looked into why the variable is set this way.

Dan




--
___________________________________________
Andrew J. P. Maclean

___________________________________________

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtk-developers

Reply | Threaded
Open this post in threaded view
|

Re: Building VTK Master (8.90)

Andrew Maclean-3
Also fixed the errors:
    usr/bin/ld: /usr/lib/x86_64-linux-gnu/libSM.so: undefined reference to `uuid_unparse_lower@UUID_1.0'
    /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libSM.so: undefined reference to `uuid_generate@UUID_1.0'

by adding -luuid to CMAKE_CXX_FLAGS

Regards
   Andrew


On Sun, Jan 13, 2019 at 8:39 AM Andrew Maclean <[hidden email]> wrote:
Thanks for that advice.
FYI: The PYTHON_EXECUTABLE:FILEPATH is in Ungrouped Entries.

Regards
   Andrew

On Sun, Jan 13, 2019 at 2:05 AM Dan Lipsa <[hidden email]> wrote:


On Sat, Jan 12, 2019 at 1:23 AM Andrew Maclean <[hidden email]> wrote:
In summary, I get a build on Ubuntu 18.10 with just the defaults and these changes:
VTK_ENABLE_GROUP_QT->WANT
VTK_MODULE_ENABLE_VTK_RenderingFreeType DEFAULT->NO
VTK_WRAP_PYTHON on
VTK_PYTHON_VERSION 3
VTK_SMP_IMPLEMENTATION_TYPE TBB

In VTK/lib there is a python2.7 folder. Given that I built for Python 3.7.1, is this folder name correct?

I've seen the same behavior. For some reason 
PYTHON_EXECUTABLE:FILEPATH
points to the python2 executable instead of python3. 
A workaround is to change it to point to the correct python and that fixes the problem.
I have not looked into why the variable is set this way.

Dan




--
___________________________________________
Andrew J. P. Maclean

___________________________________________


--
___________________________________________
Andrew J. P. Maclean

___________________________________________

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtk-developers

Reply | Threaded
Open this post in threaded view
|

Re: Building VTK Master (8.90)

Andrew Maclean-3
Ben what you have done is outstanding!!!! +1

Ok on Ubuntu 18.10 I get a clean build now with these conditions.

I have local installations of Java 11.0.1, Anaconda Python 3.7.1 and TBB.
CMake found the Anaconda Python release library Ok, Java Ok, TBB Ok

Building with just the defaults and these changes:

VTK_ALL_NEW_OBJECT_FACTORY ON
VTK_ENABLE_GROUP_QT                WANT
VTK_JAVA_SOURCE_VERSION         1.9
VTK_JAVA_TARGET_VERSION          1.9
VTK_WRAP_PYTHON                          ON
VTK_PYTHON_VERSION                     3
VTK_SMP_IMPLEMTATION_TYPE      TBB
VTK_WRAP_JAVA                                 ON
VTK_WRAP_PYTHON                          ON

Then:
1) Manually set PYTHON_EXECUTABLE to /home/<user_name>/anaconda3/bin/python3.7m 
     Note: This is found in Ungrouped Entries
2) Set Java source/target versions to 1.9 (The wrapping doesn't know about version 1.11)
3) TBB:
   In TBB_LIBRARY_DEBUG change libtbb_debug.so to libtbb_debug.so.2.
   In TBB_LIBRARY_RELEASE change libtbb.so to libtbb.so.2.
4) Add -luuid to CMAKE_CXX_FLAGS

Final result:
99% tests passed, 1 tests failed out of 2010

The following tests FAILED:
        293 - VTK::IOExportPDFCxx-TestPDFTransformedText (Failed)
Errors while running CTest

vtkpython works:
Python 3.7.1 (default, Dec 14 2018, 19:33:21)  
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()


Regards
   Andrew

On Sun, Jan 13, 2019 at 10:03 AM Andrew Maclean <[hidden email]> wrote:
Also fixed the errors:
    usr/bin/ld: /usr/lib/x86_64-linux-gnu/libSM.so: undefined reference to `uuid_unparse_lower@UUID_1.0'
    /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libSM.so: undefined reference to `uuid_generate@UUID_1.0'

by adding -luuid to CMAKE_CXX_FLAGS

Regards
   Andrew


On Sun, Jan 13, 2019 at 8:39 AM Andrew Maclean <[hidden email]> wrote:
Thanks for that advice.
FYI: The PYTHON_EXECUTABLE:FILEPATH is in Ungrouped Entries.

Regards
   Andrew

On Sun, Jan 13, 2019 at 2:05 AM Dan Lipsa <[hidden email]> wrote:


On Sat, Jan 12, 2019 at 1:23 AM Andrew Maclean <[hidden email]> wrote:
In summary, I get a build on Ubuntu 18.10 with just the defaults and these changes:
VTK_ENABLE_GROUP_QT->WANT
VTK_MODULE_ENABLE_VTK_RenderingFreeType DEFAULT->NO
VTK_WRAP_PYTHON on
VTK_PYTHON_VERSION 3
VTK_SMP_IMPLEMENTATION_TYPE TBB

In VTK/lib there is a python2.7 folder. Given that I built for Python 3.7.1, is this folder name correct?

I've seen the same behavior. For some reason 
PYTHON_EXECUTABLE:FILEPATH
points to the python2 executable instead of python3. 
A workaround is to change it to point to the correct python and that fixes the problem.
I have not looked into why the variable is set this way.

Dan




--
___________________________________________
Andrew J. P. Maclean

___________________________________________


--
___________________________________________
Andrew J. P. Maclean

___________________________________________


--
___________________________________________
Andrew J. P. Maclean

___________________________________________

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtk-developers

Reply | Threaded
Open this post in threaded view
|

Re: Building VTK Master (8.90)

Elvis Stansvik
Den sön 13 jan. 2019 kl 02:28 skrev Andrew Maclean <[hidden email]>:
>
> Ben what you have done is outstanding!!!! +1

+1 This is fantastic work, monumental. And CMake step when building
VTK is so much faster.

Elvis

>
> Ok on Ubuntu 18.10 I get a clean build now with these conditions.
>
> I have local installations of Java 11.0.1, Anaconda Python 3.7.1 and TBB.
> CMake found the Anaconda Python release library Ok, Java Ok, TBB Ok
>
> Building with just the defaults and these changes:
>
> VTK_ALL_NEW_OBJECT_FACTORY ON
> VTK_ENABLE_GROUP_QT                WANT
> VTK_JAVA_SOURCE_VERSION         1.9
> VTK_JAVA_TARGET_VERSION          1.9
> VTK_WRAP_PYTHON                          ON
> VTK_PYTHON_VERSION                     3
> VTK_SMP_IMPLEMTATION_TYPE      TBB
> VTK_WRAP_JAVA                                 ON
> VTK_WRAP_PYTHON                          ON
>
> Then:
> 1) Manually set PYTHON_EXECUTABLE to /home/<user_name>/anaconda3/bin/python3.7m
>      Note: This is found in Ungrouped Entries
> 2) Set Java source/target versions to 1.9 (The wrapping doesn't know about version 1.11)
> 3) TBB:
>    In TBB_LIBRARY_DEBUG change libtbb_debug.so to libtbb_debug.so.2.
>    In TBB_LIBRARY_RELEASE change libtbb.so to libtbb.so.2.
> 4) Add -luuid to CMAKE_CXX_FLAGS
>
> Final result:
> 99% tests passed, 1 tests failed out of 2010
>
> The following tests FAILED:
>         293 - VTK::IOExportPDFCxx-TestPDFTransformedText (Failed)
> Errors while running CTest
>
> vtkpython works:
> Python 3.7.1 (default, Dec 14 2018, 19:33:21)
> [GCC 7.3.0] :: Anaconda, Inc. on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> exit()
>
> Regards
>    Andrew
>
> On Sun, Jan 13, 2019 at 10:03 AM Andrew Maclean <[hidden email]> wrote:
>>
>> Also fixed the errors:
>>     usr/bin/ld: /usr/lib/x86_64-linux-gnu/libSM.so: undefined reference to `uuid_unparse_lower@UUID_1.0'
>>     /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libSM.so: undefined reference to `uuid_generate@UUID_1.0'
>>
>> by adding -luuid to CMAKE_CXX_FLAGS
>>
>> Regards
>>    Andrew
>>
>>
>> On Sun, Jan 13, 2019 at 8:39 AM Andrew Maclean <[hidden email]> wrote:
>>>
>>> Thanks for that advice.
>>> FYI: The PYTHON_EXECUTABLE:FILEPATH is in Ungrouped Entries.
>>>
>>> Regards
>>>    Andrew
>>>
>>> On Sun, Jan 13, 2019 at 2:05 AM Dan Lipsa <[hidden email]> wrote:
>>>>
>>>>
>>>>
>>>> On Sat, Jan 12, 2019 at 1:23 AM Andrew Maclean <[hidden email]> wrote:
>>>>>
>>>>> In summary, I get a build on Ubuntu 18.10 with just the defaults and these changes:
>>>>> VTK_ENABLE_GROUP_QT->WANT
>>>>> VTK_MODULE_ENABLE_VTK_RenderingFreeType DEFAULT->NO
>>>>> VTK_WRAP_PYTHON on
>>>>> VTK_PYTHON_VERSION 3
>>>>> VTK_SMP_IMPLEMENTATION_TYPE TBB
>>>>>
>>>>> In VTK/lib there is a python2.7 folder. Given that I built for Python 3.7.1, is this folder name correct?
>>>>
>>>>
>>>> I've seen the same behavior. For some reason
>>>> PYTHON_EXECUTABLE:FILEPATH
>>>> points to the python2 executable instead of python3.
>>>> A workaround is to change it to point to the correct python and that fixes the problem.
>>>> I have not looked into why the variable is set this way.
>>>>
>>>> Dan
>>>>
>>>>>
>>>
>>>
>>> --
>>> ___________________________________________
>>> Andrew J. P. Maclean
>>>
>>> ___________________________________________
>>
>>
>>
>> --
>> ___________________________________________
>> Andrew J. P. Maclean
>>
>> ___________________________________________
>
>
>
> --
> ___________________________________________
> Andrew J. P. Maclean
>
> ___________________________________________
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtk-developers
>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtk-developers

Reply | Threaded
Open this post in threaded view
|

Re: Building VTK Master (8.90)

Andrew Maclean-3
Currently Java wrapping fails in Windows.

On Sun, Jan 13, 2019 at 9:34 PM Elvis Stansvik <[hidden email]> wrote:
Den sön 13 jan. 2019 kl 02:28 skrev Andrew Maclean <[hidden email]>:
>
> Ben what you have done is outstanding!!!! +1

+1 This is fantastic work, monumental. And CMake step when building
VTK is so much faster.

Elvis

>
> Ok on Ubuntu 18.10 I get a clean build now with these conditions.
>
> I have local installations of Java 11.0.1, Anaconda Python 3.7.1 and TBB.
> CMake found the Anaconda Python release library Ok, Java Ok, TBB Ok
>
> Building with just the defaults and these changes:
>
> VTK_ALL_NEW_OBJECT_FACTORY ON
> VTK_ENABLE_GROUP_QT                WANT
> VTK_JAVA_SOURCE_VERSION         1.9
> VTK_JAVA_TARGET_VERSION          1.9
> VTK_WRAP_PYTHON                          ON
> VTK_PYTHON_VERSION                     3
> VTK_SMP_IMPLEMTATION_TYPE      TBB
> VTK_WRAP_JAVA                                 ON
> VTK_WRAP_PYTHON                          ON
>
> Then:
> 1) Manually set PYTHON_EXECUTABLE to /home/<user_name>/anaconda3/bin/python3.7m
>      Note: This is found in Ungrouped Entries
> 2) Set Java source/target versions to 1.9 (The wrapping doesn't know about version 1.11)
> 3) TBB:
>    In TBB_LIBRARY_DEBUG change libtbb_debug.so to libtbb_debug.so.2.
>    In TBB_LIBRARY_RELEASE change libtbb.so to libtbb.so.2.
> 4) Add -luuid to CMAKE_CXX_FLAGS
>
> Final result:
> 99% tests passed, 1 tests failed out of 2010
>
> The following tests FAILED:
>         293 - VTK::IOExportPDFCxx-TestPDFTransformedText (Failed)
> Errors while running CTest
>
> vtkpython works:
> Python 3.7.1 (default, Dec 14 2018, 19:33:21)
> [GCC 7.3.0] :: Anaconda, Inc. on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> exit()
>
> Regards
>    Andrew
>
> On Sun, Jan 13, 2019 at 10:03 AM Andrew Maclean <[hidden email]> wrote:
>>
>> Also fixed the errors:
>>     usr/bin/ld: /usr/lib/x86_64-linux-gnu/libSM.so: undefined reference to `uuid_unparse_lower@UUID_1.0'
>>     /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libSM.so: undefined reference to `uuid_generate@UUID_1.0'
>>
>> by adding -luuid to CMAKE_CXX_FLAGS
>>
>> Regards
>>    Andrew
>>
>>
>> On Sun, Jan 13, 2019 at 8:39 AM Andrew Maclean <[hidden email]> wrote:
>>>
>>> Thanks for that advice.
>>> FYI: The PYTHON_EXECUTABLE:FILEPATH is in Ungrouped Entries.
>>>
>>> Regards
>>>    Andrew
>>>
>>> On Sun, Jan 13, 2019 at 2:05 AM Dan Lipsa <[hidden email]> wrote:
>>>>
>>>>
>>>>
>>>> On Sat, Jan 12, 2019 at 1:23 AM Andrew Maclean <[hidden email]> wrote:
>>>>>
>>>>> In summary, I get a build on Ubuntu 18.10 with just the defaults and these changes:
>>>>> VTK_ENABLE_GROUP_QT->WANT
>>>>> VTK_MODULE_ENABLE_VTK_RenderingFreeType DEFAULT->NO
>>>>> VTK_WRAP_PYTHON on
>>>>> VTK_PYTHON_VERSION 3
>>>>> VTK_SMP_IMPLEMENTATION_TYPE TBB
>>>>>
>>>>> In VTK/lib there is a python2.7 folder. Given that I built for Python 3.7.1, is this folder name correct?
>>>>
>>>>
>>>> I've seen the same behavior. For some reason
>>>> PYTHON_EXECUTABLE:FILEPATH
>>>> points to the python2 executable instead of python3.
>>>> A workaround is to change it to point to the correct python and that fixes the problem.
>>>> I have not looked into why the variable is set this way.
>>>>
>>>> Dan
>>>>
>>>>>
>>>
>>>
>>> --
>>> ___________________________________________
>>> Andrew J. P. Maclean
>>>
>>> ___________________________________________
>>
>>
>>
>> --
>> ___________________________________________
>> Andrew J. P. Maclean
>>
>> ___________________________________________
>
>
>
> --
> ___________________________________________
> Andrew J. P. Maclean
>
> ___________________________________________
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtk-developers
>


--
___________________________________________
Andrew J. P. Maclean

___________________________________________

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtk-developers

Reply | Threaded
Open this post in threaded view
|

Re: Building VTK Master (8.90)

VTK - Dev mailing list
On Mon, Jan 14, 2019 at 15:43:00 +1100, Andrew Maclean wrote:
> Currently Java wrapping fails in Windows.

Could you please open an issue with details? I'll have to get Java
installed on a Windows machine here to dig into it myself.

Thanks.

--Ben
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtk-developers

Reply | Threaded
Open this post in threaded view
|

Re: Building VTK Master (8.90)

VTK - Dev mailing list
In reply to this post by VTK - Dev mailing list
On Sat, Jan 12, 2019 at 10:04:27 -0500, Dan Lipsa via vtk-developers wrote:

> On Sat, Jan 12, 2019 at 1:23 AM Andrew Maclean <[hidden email]>
> wrote:
>
> > In summary, I get a build on Ubuntu 18.10 with just the defaults and these
> > changes:
> > VTK_ENABLE_GROUP_QT->WANT
> > VTK_MODULE_ENABLE_VTK_RenderingFreeType DEFAULT->NO
> > VTK_WRAP_PYTHON on
> > VTK_PYTHON_VERSION 3
> > VTK_SMP_IMPLEMENTATION_TYPE TBB
> >
> > In VTK/lib there is a python2.7 folder. Given that I built for Python
> > 3.7.1, is this folder name correct?
> >
>
> I've seen the same behavior. For some reason
> PYTHON_EXECUTABLE:FILEPATH
> points to the python2 executable instead of python3.
> A workaround is to change it to point to the correct python and that fixes
> the problem.
> I have not looked into why the variable is set this way.

I think it has to do with `VTK_PYTHON_VERSION` defaulting to 2, finding
that, then when switched to 3, it says "oh, we already have one" and not
re-finding it. I thought the `FindPython2` and `FindPython3` split was
supposed to fix this, but I guess I missed something somewhere. Some
CMake tracing/debugging will be necessary.

--Ben
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtk-developers

Reply | Threaded
Open this post in threaded view
|

Re: Building VTK Master (8.90)

VTK - Dev mailing list
In reply to this post by Andrew Maclean-3
On Sun, Jan 13, 2019 at 10:03:58 +1100, Andrew Maclean wrote:
> Also fixed the errors:
>     usr/bin/ld: /usr/lib/x86_64-linux-gnu/libSM.so: undefined reference to
> `uuid_unparse_lower@UUID_1.0'
>     /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libSM.so: undefined reference to
> `uuid_generate@UUID_1.0'
>
> by adding -luuid to CMAKE_CXX_FLAGS

This, IMO, is a FindPython issue. CMake issue filed here:

    https://gitlab.kitware.com/cmake/cmake/issues/18798

Once it is fixed, we should backport it into VTK (and move it from the
3.13 directory to 3.14 or 3.15 depending on when it gets merged).

--Ben
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtk-developers

Reply | Threaded
Open this post in threaded view
|

Re: Building VTK Master (8.90)

VTK - Dev mailing list
In reply to this post by Andrew Maclean-3
On Sun, Jan 13, 2019 at 12:28:15 +1100, Andrew Maclean wrote:
> Ben what you have done is outstanding!!!! +1

Thanks :) .

> 1) Manually set PYTHON_EXECUTABLE to
> /home/<user_name>/anaconda3/bin/python3.7m
>      Note: This is found in Ungrouped Entries

Hmm, this indicates that it is probably going through `FindPython`
rather than a versioned variant. I wonder if `VTK_PYTHON_VERSION` is
unset or unused in one place. It's ungrouped since cmake-gui groups
based on the part before the first `_`.

> 2) Set Java source/target versions to 1.9 (The wrapping doesn't know about
> version 1.11)

Hmm, interesting. What should be done here? Should we just copy the
version down from the Java CMake finds? I'm not that familiar with Java.

> 3) TBB:
>    In TBB_LIBRARY_DEBUG change libtbb_debug.so to libtbb_debug.so.2.
>    In TBB_LIBRARY_RELEASE change libtbb.so to libtbb.so.2.

Why does this need to be done? Is this something to do with these being
linker scripts?

> 4) Add -luuid to CMAKE_CXX_FLAGS

See previous email.

> Final result:
> 99% tests passed, 1 tests failed out of 2010
>
> The following tests FAILED:
>         293 - VTK::IOExportPDFCxx-TestPDFTransformedText (Failed)
> Errors while running CTest

Yeah, dashboards are having issues here too.

--Ben
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtk-developers

Reply | Threaded
Open this post in threaded view
|

Re: Building VTK Master (8.90)

VTK - Dev mailing list
In reply to this post by VTK - Dev mailing list
On Mon, Jan 14, 2019 at 10:27:49 -0500, Ben Boeckel wrote:

> On Sun, Jan 13, 2019 at 10:03:58 +1100, Andrew Maclean wrote:
> > Also fixed the errors:
> >     usr/bin/ld: /usr/lib/x86_64-linux-gnu/libSM.so: undefined reference to
> > `uuid_unparse_lower@UUID_1.0'
> >     /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libSM.so: undefined reference to
> > `uuid_generate@UUID_1.0'
> >
> > by adding -luuid to CMAKE_CXX_FLAGS
>
> This, IMO, is a FindPython issue. CMake issue filed here:
>
>     https://gitlab.kitware.com/cmake/cmake/issues/18798
>
> Once it is fixed, we should backport it into VTK (and move it from the
> 3.13 directory to 3.14 or 3.15 depending on when it gets merged).

D'oh. I missed the `libSM` part. This is a FindX11 bug. I'll try to have
a fix this week.

--Ben
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtk-developers

Reply | Threaded
Open this post in threaded view
|

Re: Building VTK Master (8.90)

Andrew Maclean-3
In reply to this post by VTK - Dev mailing list
Done, see
Java Wrapping VTK 8.90 fails in Windowshttps://gitlab.kitware.com/vtk/vtk/issues/17485
There is also a windows_path.bat is incorrect issue: https://gitlab.kitware.com/vtk/vtk/issues/17484
 
Regards
   Andrew

On Tue, Jan 15, 2019 at 2:24 AM Ben Boeckel <[hidden email]> wrote:
On Mon, Jan 14, 2019 at 15:43:00 +1100, Andrew Maclean wrote:
> Currently Java wrapping fails in Windows.

Could you please open an issue with details? I'll have to get Java
installed on a Windows machine here to dig into it myself.

Thanks.

--Ben


--
___________________________________________
Andrew J. P. Maclean

___________________________________________

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtk-developers