# I Flatpak Paraview, any thought?

**URL:** https://discourse.paraview.org/t/i-flatpak-paraview-any-thought/6698
**Category:** ParaView Support
**Created:** [March 14, 2021, 6:27pm UTC](https://discourse.paraview.org/t/i-flatpak-paraview-any-thought/6698 "2021-03-14T18:27:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Andythe\_great](https://discourse.paraview.org/user_avatar/discourse.paraview.org/andythe_great/32/6126_2.png) [@Andythe\_great](https://discourse.paraview.org/u/Andythe_great)
#### Post date: [March 14, 2021, 6:27pm UTC](https://discourse.paraview.org/t/i-flatpak-paraview-any-thought/6698/1 "2021-03-14T18:27:54Z")

</div>

Hello,

I create Flatpak for Paraview.  
Flatpak is a packaging and distributing desktop software on Linux.

> **[Flatpak—the future of application distribution](https://www.flatpak.org/)**
>
> The days of chasing multiple Linux distributions are over. Standalone apps for Linux are here!

I would like it to be submit to Flathub, an app store for Flatpak apps. Many Linux distros supported Flatpak. So I think it would be beneficial to package large software like Paraview into Flatpak, it will make installing quick and easy.

> **[Flathub - Apps for Linux](https://flathub.org/)**
>
> Find and install hundreds of apps and games for Linux. Enjoy Firefox, Telegram, RetroArch, GIMP and many more!

This is what I have been working on so far.

> **[GitHub - kevinsmia1939/org.paraview.Paraview](https://github.com/kevinsmia1939/org.paraview.Paraview)**
>
> Contribute to kevinsmia1939/org.paraview.Paraview development by creating an account on GitHub.

I does build and runใ  
I encounter a graphical issue. The graph show checker pattern glitch.  
[![Imgur](https://discourse.paraview.org/uploads/default/original/2X/f/fcad9f16f095bab214bca5f1fc4c999435844057.jpeg "imgur.com") ](https://imgur.com/dJMnmEM)

I encounter this glitch with Tomviz as well. So I think this might be issue with the display backend and Flatpak. Do anybody know what it is?

> <https://github.com/OpenChemistry/tomviz/issues/2157>
>
> Hello,
> 
> I am trying to create Flatpak package for Tomviz and upload to Flathub….
> https://www.flatpak.org/
> 
> Flathub-builder is what use to build locally Flatpak.
> 
> I build dependencies in sequence below.
> GLEW 2.2.0
> Numpy 1.19.5
> TBB 2019\_U8
> Swig 4.0.2 with flags below.
> \`\`\`
> - --without-pcre
> - --disable-ccache
> - --without-tcl
> - --without-tcl
> - --without-perl5
> - --without-octave
> - --without-scilab
> - --without-java
> - --without-ruby
> \`\`\`
> GDCM 3.0.8 Cmake-ninja
> \`\`\`
> - -DGDCM\_BUILD\_APPLICATIONS=OFF
> - -DGDCM\_BUILD\_SHARED\_LIBS=ON
> - -DCMAKE\_BUILD\_TYPE=Release
> - -DGDCM\_WRAP\_PYTHON=ON
> - -DPYTHON\_EXECUTABLE=/usr/bin/python3
> - -DGDCM\_INSTALL\_PYTHONMODULE\_DIR=/app/lib/python3.8/site-packages/
> - -DGDCM\_USE\_VTK=OFF
> - -DGDCM\_BUILD\_DOCBOOK\_MANPAGES:BOOL=OFF
> \`\`\`
> 
> CastXML 0.4.3. cmake
> \`\`\`
> - -DCLANG\_LINK\_CLANG\_DYLIB:BOOL=ON
> - -DLLVM\_DIR=/usr/lib/sdk/llvm11/lib/cmake/llvm
> \`\`\`
> 
> Eigen3 3.3.9 cmake-ninja
> 
> Paraview build with cmake from github.com/OpenChemistry/ParaView release v5.9.0 (commit 0aaf903ba3e8d012a608a466f798a041b4aebe17). The build flags were adopt from https://github.com/OpenChemistry/tomviz/blob/master/BUILDING.md.
> \`\`\`
> - -DCMAKE\_BUILD\_TYPE:STRING=RelWithDebInfo
> - -DBUILD\_TESTING:BOOL=OFF
> - -DPARAVIEW\_USE\_PYTHON:BOOL=ON
> - -DPARAVIEW\_ENABLE\_WEB:BOOL=OFF
> - -DPARAVIEW\_ENABLE\_EMBEDDED\_DOCUMENTATION:BOOL=OFF
> - -DPARAVIEW\_USE\_QTHELP:BOOL=OFF
> - -DPARAVIEW\_PLUGINS\_DEFAULT:BOOL=OFF
> - -DVTK\_SMP\_IMPLEMENTATION\_TYPE:STRING=TBB
> - -DVTK\_PYTHON\_VERSION:STRING=3
> - -DVTK\_PYTHON\_FULL\_THREADSAFE:BOOL=ON
> - -DVTK\_NO\_PYTHON\_THREADS:BOOL=OFF
> \`\`\`
> 
> ITK release 5.1.2 with cmake, flags also adopt from BUILDING.md.
> \`\`\`
> - -DCMAKE\_BUILD\_TYPE:STRING=RelWithDebInfo
> - -DITK\_LEGACY\_REMOVE:BOOL=ON
> - -DITK\_LEGACY\_SILENT:BOOL=ON
> - -DModule\_ITKBridgeNumPy:BOOL=ON
> - -DBUILD\_TESTING:BOOL=OFF
> - -DITK\_WRAP\_unsigned\_short:BOOL=ON
> - -DITK\_WRAP\_rgb\_unsigned\_char:BOOL=OFF
> - -DITK\_WRAP\_rgba\_unsigned\_char:BOOL=OFF
> - -DITK\_BUILD\_DEFAULT\_MODULES:BOOL=OFF
> - -DITKGroup\_Core:BOOL=ON
> - -DITKGroup\_Filtering:BOOL=ON
> - -DITKGroup\_Segmentation:BOOL=ON
> - -DITKGroup\_Nonunit:BOOL=ON
> - -DPython\_ADDITIONAL\_VERSIONS:STRING=3
> - -DITK\_WRAP\_PYTHON:BOOL=ON
> - -DBUILD\_EXAMPLES:BOOL=OFF
> - -DBUILD\_SHARED\_LIBS:BOOL=ON
> - -DITK\_USE\_SYSTEM\_LIBRARIES:BOOL=ON
> - -DITK\_USE\_SYSTEM\_CASTXML:BOOL=ON
> - -DITK\_USE\_SYSTEM\_GDCM:BOOL=ON
> - -DITK\_USE\_SYSTEM\_SWIG:BOOL=ON
> - -DITK\_USE\_SYSTEM\_VXL:BOOL=OFF
> - -DITK\_FORBID\_DOWNLOADS=ON
> \`\`\`
> 
> And finally Tomviz build with cmake from github.com/OpenChemistry/tomviz tag:1.9.0 commit: b397df6d40810b97ad3afa221c2fa3e027d20754
> \` - -DCMAKE\_BUILD\_TYPE:STRING=RelWithDebInfo\`
> 
> During building of Tomviz, I got this error.
> \`\`\`
> \-- The C compiler identification is GNU 10.2.0
> \-- The CXX compiler identification is GNU 10.2.0
> \-- Detecting C compiler ABI info
> \-- Detecting C compiler ABI info - done
> \-- Check for working C compiler: /usr/bin/cc - skipped
> \-- Detecting C compile features
> \-- Detecting C compile features - done
> \-- Detecting CXX compiler ABI info
> \-- Detecting CXX compiler ABI info - done
> \-- Check for working CXX compiler: /usr/bin/c++ - skipped
> \-- Detecting CXX compile features
> \-- Detecting CXX compile features - done
> \-- Performing Test HAVE\_GCC\_ERROR\_RETURN\_TYPE
> \-- Performing Test HAVE\_GCC\_ERROR\_RETURN\_TYPE - Success
> \-- Found Git: /usr/bin/git (found version "2.30.0") 
> \-- Determined Source Version : 1.9.0
> \-- Looking for pthread.h
> \-- Looking for pthread.h - found
> \-- Performing Test CMAKE\_HAVE\_LIBC\_PTHREAD
> \-- Performing Test CMAKE\_HAVE\_LIBC\_PTHREAD - Failed
> \-- Check if compiler accepts -pthread
> \-- Check if compiler accepts -pthread - yes
> \-- Found Threads: TRUE  
> \-- Found X11: /usr/include   
> \-- Looking for XOpenDisplay in /usr/lib/x86\_64-linux-gnu/libX11.so;/usr/lib/x86\_64-linux-gnu/libXext.so
> \-- Looking for XOpenDisplay in /usr/lib/x86\_64-linux-gnu/libX11.so;/usr/lib/x86\_64-linux-gnu/libXext.so - found
> \-- Looking for gethostbyname
> \-- Looking for gethostbyname - found
> \-- Looking for connect
> \-- Looking for connect - found
> \-- Looking for remove
> \-- Looking for remove - found
> \-- Looking for shmat
> \-- Looking for shmat - found
> \-- Looking for IceConnectionNumber in ICE
> \-- Looking for IceConnectionNumber in ICE - found
> \-- Found OpenGL: /usr/lib/x86\_64-linux-gnu/libOpenGL.so found components: OpenGL GLX 
> \-- Found Python3: /usr/bin/python3.8 (found suitable version "3.8.7", minimum required is "3.8") found components: Interpreter Development.Module Development.Embed 
> \-- Found Python3: /usr/bin/python3.8 (found version "3.8.7") found components: Interpreter Development Development.Module Development.Embed 
> \-- Found PythonInterp: /usr/bin/python3.8 (found version "3.8.7") 
> \-- Found PythonLibs: python3.8
> \-- pybind11 v2.2.3
> \-- Found OpenGL: /usr/lib/x86\_64-linux-gnu/libOpenGL.so   
> \-- Performing Test COMPILER\_HAS\_HIDDEN\_VISIBILITY
> \-- Performing Test COMPILER\_HAS\_HIDDEN\_VISIBILITY - Success
> \-- Performing Test COMPILER\_HAS\_HIDDEN\_INLINE\_VISIBILITY
> \-- Performing Test COMPILER\_HAS\_HIDDEN\_INLINE\_VISIBILITY - Success
> \-- Performing Test COMPILER\_HAS\_DEPRECATED\_ATTR
> \-- Performing Test COMPILER\_HAS\_DEPRECATED\_ATTR - Success
> \-- Performing Test HAS\_FLTO
> \-- Performing Test HAS\_FLTO - Success
> \-- LTO enabled
> \-- Configuring done
> CMake Error at tomviz/CMakeLists.txt:631 (add\_executable):
> Target "tomviz" links to target "ParaView::ServerManagerRendering" but the
> target was not found. Perhaps a find\_package() call is missing for an
> IMPORTED target, or an ALIAS target is missing?
> 
> 
> CMake Error at tomviz/CMakeLists.txt:626 (add\_library):
> Target "tomvizlib" links to target "ParaView::ServerManagerRendering" but
> the target was not found. Perhaps a find\_package() call is missing for an
> IMPORTED target, or an ALIAS target is missing?
> 
> 
> \-- Generating done
> CMake Generate step failed. Build files cannot be regenerated correctly.
> 
> \`\`\`
> I suspect that I use OpenChemistry/ParaView version 5.9.0 (commit: 0aaf903ba3e8d012a608a466f798a041b4aebe17) instead of the commit: 98a2eea1af02a45fa6d9b72b97b67f991bcb1f0e (reference in superbuild) , that might fix this issue? 
> I will try rebuilding with the commit reference in superbuild (https://github.com/OpenChemistry/tomvizsuper), but it will take very long time to compile again.

left flatpak, right github binary  
[![Imgur](https://discourse.paraview.org/uploads/default/original/2X/2/205ca7498d50ec177f9f63d69dc0a0bb34df8484.jpeg "imgur.com") ](https://imgur.com/UJSTa09)

This is the “About Paraview” section.

> Client Information:  
> Version: 5.9.0  
> VTK Version:  
> Qt Version: 5.15.2  
> vtkIdType size: 64bits  
> Embedded Python: On  
> Python Library Path: /usr/lib/python3.8  
> Python Library Version: 3.8.8 (default, Nov 10 2011, 15:00:00) [GCC 10.2.0]  
> Python Numpy Support: Off  
> Python Matplotlib Support: Off  
> Python Testing: Off  
> MPI Enabled: Off  
> Disable Registry: Off  
> Test Directory:  
> Data Directory:  
> OpenGL Vendor: Intel Open Source Technology Center  
> OpenGL Version: 4.2 (Core Profile) Mesa 20.3.4 (git-6d8c68603f)  
> OpenGL Renderer: Mesa DRI Intel(R) HD Graphics 4000 (IVB GT2)
> 
> Connection Information:  
> Remote Connection: No

I also think that this might cause by my outdate graphics driver.  
Other problem I have is missing Examples and no matplotlib support.  
If anybody is interest, please build Paraview Flatpak and try it out.

To build Paraview Flatpak.

1. Create new working folder.
2. Install flatpak-builder, for Ubuntu, `sudo apt install flatpak-builder`
3. Install KDE Sdk, choose version 5.15 (system), `flatpak install org.kde.Platform org.kde.Sdk io.qt.qtwebengine.BaseApp`
4. Clone sub-modules, these sub-modules are pre-made Flatpak manifest that commonly use, we will be using glew, `git clone git://github.com/flathub/shared-modules.git`
5. Download `org.paraview.Paraview.yaml` and `tbb_cmake.patch` from my github repo, put them in same folder.
6. `flatpak-builder --install --user build org.paraview.Paraview.yaml --force-clean`
7. Wait until finish and run with, `flatpak run org.paraview.Paraview`

Let me know if it work.

---

<div class="post-metadata">

### Author: ![Andythe\_great](https://discourse.paraview.org/user_avatar/discourse.paraview.org/andythe_great/32/6126_2.png) [@Andythe\_great](https://discourse.paraview.org/u/Andythe_great)
#### Post date: [March 15, 2021, 5:31am UTC](https://discourse.paraview.org/t/i-flatpak-paraview-any-thought/6698/2 "2021-03-15T05:31:48Z")

</div>

Anyone know where am I support to put the example data?
