Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#51578 closed defect (fixed)

paraview ffmpeg patch

Reported by: jjstickel (Jonathan Stickel) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: haspatch maintainer Cc: dstrubbe (David Strubbe)
Port: paraview

Description

I found the upstream patch to fix ffmpeg for Paraview-5.0.1 (http://www.paraview.org/Bug/view.php?id=16001). Patches attached.

Attachments (2)

paraview_Portfile.diff (1.4 KB) - added by jjstickel (Jonathan Stickel) 8 years ago.
ffmpeg3_compat.patch (2.2 KB) - added by jjstickel (Jonathan Stickel) 8 years ago.

Download all attachments as: .zip

Change History (9)

Changed 8 years ago by jjstickel (Jonathan Stickel)

Attachment: paraview_Portfile.diff added

Changed 8 years ago by jjstickel (Jonathan Stickel)

Attachment: ffmpeg3_compat.patch added

comment:1 Changed 8 years ago by jjstickel (Jonathan Stickel)

Maybe should be a separate ticket, but mpi does not seem to work with this version of paraview:

     11
     12 import numpy as np
---> 13 from paraview import simple as pv
     14 import vtk.numpy_interface.dataset_adapter as dsa
     15 #import sys

/Applications/Macports/paraview.app/Contents/Python/paraview/simple.py in <module>()
     37
     38 import paraview
---> 39 import servermanager
     40 import lookuptable
     41

/Applications/Macports/paraview.app/Contents/Python/paraview/servermanager.py in <module>()
     48 import paraview, re, os, os.path, new, sys, atexit, vtk
     49
---> 50 from vtkPVServerImplementationCorePython import *
     51 from vtkPVClientServerCoreCorePython import *
     52 from vtkPVServerManagerCorePython import *

ImportError: dlopen(/Applications/Macports/paraview.app/Contents/Libraries/vtkPVServerImplementationCorePython.so, 2): Library not loaded: /opt/local/lib/mpich-mp/libmpi.12.dylib
  Referenced from: /Applications/Macports/paraview.app/Contents/Libraries//libvtkPVClientServerCoreCore-pv5.0.1.dylib
  Reason: Incompatible library version: libvtkPVClientServerCoreCore-pv5.0.1.dylib requires version 14.0.0 or later, but libmpi.12.dylib provides version 13.0.0

Installing with -mpich resolved the error.

Last edited 8 years ago by jjstickel (Jonathan Stickel) (previous) (diff)

comment:2 Changed 8 years ago by dstrubbe (David Strubbe)

Is your mpich up-to-date? And are there possibly other libmpi's around on your system interfering in the path? Mine gives 14.0.0:

$ otool -L /opt/local/lib/mpich-mp/libmpi.12.dylib
/opt/local/lib/mpich-mp/libmpi.12.dylib:
        /opt/local/lib/mpich-mp/libmpi.12.dylib (compatibility version 14.0.0, current version 14.0.0)
        /opt/local/lib/mpich-mp/libpmpi.12.dylib (compatibility version 14.0.0, current version 14.0.0)
        /opt/local/lib/libgcc/libgfortran.3.dylib (compatibility version 4.0.0, current version 4.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
        /opt/local/lib/libgcc/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
        /opt/local/lib/libgcc/libquadmath.0.dylib (compatibility version 1.0.0, current version 1.0.0)

comment:3 Changed 8 years ago by dstrubbe (David Strubbe)

ffmpeg patch changes committed r149255.

comment:4 in reply to:  2 Changed 8 years ago by jjstickel (Jonathan Stickel)

Replying to dstrubbe@…:

Is your mpich up-to-date? And are there possibly other libmpi's around on your system interfering in the path? Mine gives 14.0.0:

Good guess. I have openmpi installed for something else, and otool indicates that that libmpi.12.dylib is version 13.0.0. Paraview must be mixing up the library linking and paths. It probably would work for me to use openmpi variant for Paraview, but I don't have time to troubleshoot right now (and I don't need mpi anyway).

Please close the ticket if you think the ffmpeg issue is appropriately resolved.

comment:5 Changed 8 years ago by dstrubbe (David Strubbe)

Resolution: fixed
Status: newclosed

Did you modify DYLD_LIBRARY_PATH by any chance? I'm not sure why the wrong mpi lib would be picked up otherwise.

comment:6 in reply to:  5 ; Changed 8 years ago by jjstickel (Jonathan Stickel)

Replying to dstrubbe@…:

Did you modify DYLD_LIBRARY_PATH by any chance? I'm not sure why the wrong mpi lib would be picked up otherwise.

I do add /Applications/Macports/paraview.app/Contents/Libraries/ to DYLD_LIBRARY_PATH, and a local user folder with f2py libraries, but nothing from /opt/local.

comment:7 in reply to:  6 Changed 8 years ago by jjstickel (Jonathan Stickel)

Replying to jjstickel@…:

Replying to dstrubbe@…:

Did you modify DYLD_LIBRARY_PATH by any chance? I'm not sure why the wrong mpi lib would be picked up otherwise.

I do add /Applications/Macports/paraview.app/Contents/Libraries/ to DYLD_LIBRARY_PATH, and a local user folder with f2py libraries, but nothing from /opt/local.

Nevermind, I had my errors because I was running from a terminal where I load a bunch of stuff in DYLD_LIBRARY_PATH for the purpose of running OpenFOAM simulations. This is specific to this use case, so you may disregard my issue.

Note: See TracTickets for help on using tickets.