Hello, I’m trying to debug the build of ParaView port with Python 3.7 and MPI. I got an error like this:
```
[ 7%] Built target vtkParallelMPI4PyHierarchy
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f
VTK/Parallel/MPI4Py/CMakeFiles/vtkParallelMPI4Py.dir/build.make
VTK/Parallel/MPI4Py/CMakeFiles/vtkParallelMPI4Py.dir/depend
cd
/opt/local/var/macports/build/_Users_rubendibattista_git_macports-ports_science_paraview/paraview/work/build
&& /opt/local/bin/cmake -E cmake_depends "Unix Makefiles"
/opt/local/var/macports/build/_Users_rubendibattista_git_macports-ports_science_paraview/paraview/work/ParaView-v5.6.1
/opt/local/var/macports/build/_Users_rubendibattista_git_macports-ports_science_paraview/paraview/work/ParaView-v5.6.1/VTK/Parallel/MPI4Py
/opt/local/var/macports/build/_Users_rubendibattista_git_macports-ports_science_paraview/paraview/work/build
/opt/local/var/macports/build/_Users_rubendibattista_git_macports-ports_science_paraview/paraview/work/build/VTK/Parallel/MPI4Py
/opt/local/var/macports/build/_Users_rubendibattista_git_macports-ports_science_paraview/paraview/work/build/VTK/Parallel/MPI4Py/CMakeFiles/vtkParallelMPI4Py.dir/DependInfo.cmake
--color=
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f
VTK/Parallel/MPI4Py/CMakeFiles/vtkParallelMPI4Py.dir/build.make
VTK/Parallel/MPI4Py/CMakeFiles/vtkParallelMPI4Py.dir/build
make[2]: *** No rule to make target `/opt/local/lib/libpython3.7.dylib', needed
by `lib/libvtkParallelMPI4Py-pv5.6.1.dylib'. Stop.
make[1]: *** [VTK/Parallel/MPI4Py/CMakeFiles/vtkParallelMPI4Py.dir/all] Error 2
make: *** [all] Error 2
```
That make me look into `/opt/local/lib`, where no `libpython3.7.dylib` is
present (neither libpython3.6.dylib), but libpython2.7.dylib is there. So I
checked the Portfile of python27 vs python37, and I see that in python27
there’s a symlink put in place:
```
post-destroot {
foreach dir { Headers Resources Python Versions/Current } {
file delete ${destroot}${framewpath}/${dir}
}
ln -s ${framewdir}/share/man/man1/python${branch}.1
${destroot}${prefix}/share/man/man1/
ln -s ${framewdir}/Python
${destroot}${prefix}/lib/libpython${branch}.dylib
ln -s ${framewdir}/lib/pkgconfig/python-${branch}.pc
${destroot}${prefix}/lib/pkgconfig/
```
Is this normal?
Moreover I checked the cmake output for ParaView and I get:
```
:info:configure -- Looking for feenableexcept - not found
:info:configure -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
:info:configure -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
:info:configure -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
:info:configure -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY -
Success
:info:configure -- Performing Test COMPILER_HAS_DEPRECATED_ATTR
:info:configure -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
:info:configure -- Found PythonLibs: /opt/local/lib/libpython3.7.dylib
```
So it finds Python 3.7, but the library path is wrong. How is this possible?
Anyone can give me an hint?
-. .´ |∞∞∞∞
', ; |∞∞∞∞∞∞
˜˜ |∞∞∞∞∞∞∞∞∞ RdB
,., |∞∞∞∞∞∞
.' '. |∞∞∞∞
-' `’
https://rdb.is
signature.asc
Description: Message signed with OpenPGP using AMPGpg
