GithubHelp home page GithubHelp logo

lhofmann / paraview-ubuntu-docker Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 1.0 7 KB

Build ParaView plugins that are compatible with the Ubuntu packages

License: MIT License

Python 11.02% Dockerfile 22.79% CMake 19.41% C++ 46.78%
paraview docker

paraview-ubuntu-docker's Introduction

ParaView Ubuntu Docker Image

License: MIT Build Status

This docker image contains the Ubuntu paraview package built from source using debuild including build artifacts (in directory /home/paraview/paraview). In this environment, external ParaView plugins can be built, which will then be compatible with the paraview package of the specific Ubuntu version. The plugins can be distributed either as single .so files or as .deb packages, which have the paraview package as dependency.

Prebuilt docker images can be found on Docker Hub. If you want to build your own docker images, see the instructions below.

Usage

An example plugin is provided in shared/example/. The following steps will build this plugin using Ubuntu 18.04.

Start a detached container with name build and with the directory ./shared/ mounted to /mnt/shared

docker run -itd --name build --volume="$(pwd)/shared:/mnt/shared:rw" lhofmann/paraview-ubuntu:18.04

Run cmake and build the target package

docker exec build cmake -B/mnt/shared/build -H/mnt/shared/example 
docker exec build cmake --build /mnt/shared/build --target package

The built plugin will be in shared/build/libExamplePlugin.so and shared/build/Example-0.1.0-Linux.deb.

CMake

For distributing .so files, set CMAKE_BUILD_WITH_INSTALL_RPATH=TRUE in your CMake config. A debian package can be built using CPack by installing the plugin to /usr/lib/paraview/plugins (any .so in this directory is automatically loaded by ParaView). See shared/example/CMakeLists.txt for a full example.

Building the docker images

As default, a Ubuntu 18.04 is built:

docker build --rm -t "paraview-ubuntu:18.04" .

The build argument ubuntu_version can be used to specify the Ubuntu version, for example 16.04:

docker build --rm -t "paraview-ubuntu:16.04" --build-arg ubuntu_version="16.04" .

paraview-ubuntu-docker's People

Contributors

lhofmann avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

51stpage

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.