Skip to content

Commit

Permalink
Merge pull request mypaint#190 from AesaraB/opensuse-build
Browse files Browse the repository at this point in the history
README.md: OpenSUSE dependencies, better syntax
  • Loading branch information
Albert Westra authored Jan 16, 2024
2 parents 826069d + 2eeda6a commit 6b05c9a
Showing 1 changed file with 31 additions and 17 deletions.
48 changes: 31 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,31 +30,45 @@ License: ISC, see [COPYING](./COPYING) for details.
On recent Debian-like systems, you can type the following
to get started with a standard configuration:

$ sudo apt install -y build-essential
$ sudo apt install -y libjson-c-dev libgirepository1.0-dev libglib2.0-dev
# apt install -y build-essential
# apt install -y libjson-c-dev libgirepository1.0-dev libglib2.0-dev

When building from git:

$ sudo apt install -y python autotools-dev intltool gettext libtool
# apt install -y python autotools-dev intltool gettext libtool

You might also try using your package manager:

$ sudo apt build-dep mypaint # will get additional deps for MyPaint (GUI)
$ sudo apt build-dep libmypaint # may not exist; included in mypaint
# apt build-dep mypaint # will get additional deps for MyPaint (GUI)
# apt build-dep libmypaint # may not exist; included in mypaint

### Install dependencies (Red Hat and derivatives)

The following works on a minimal CentOS 7 installation:

$ sudo yum install -y gcc gobject-introspection-devel json-c-devel glib2-devel
# yum install -y gcc gobject-introspection-devel json-c-devel glib2-devel

When building from git, you'll want to add:

$ sudo yum install -y git python autoconf intltool gettext libtool
# yum install -y git python autoconf intltool gettext libtool

You might also try your package manager:

$ sudo yum builddep libmypaint

# yum builddep libmypaint

### Install dependencies (OpenSUSE)

Works with a fresh OpenSUSE Tumbleweed Docker image:

# zypper install gcc13 gobject-introspection-devel libjson-c-devel glib2-devel

When building from git:

# zypper install git python311 autoconf intltool gettext-tools libtool

Package manager:

# zypper install libmypaint0

## Build and install

Expand All @@ -67,8 +81,8 @@ The traditional setup works just fine.

$ ./autogen.sh # Only needed when building from git.
$ ./configure
$ sudo make install
$ sudo ldconfig
# make install
# ldconfig

### Maintainer mode

Expand Down Expand Up @@ -110,7 +124,7 @@ This runs all the unit tests.

### Install

$ sudo make install
# make install

Uninstall libmypaint with `make uninstall`.

Expand All @@ -123,22 +137,22 @@ Make sure that pkg-config can see libmypaint before trying to build with it.
If it's not found, you'll need to add the relevant pkgconfig directory to
the `pkg-config` search path. For example, on CentOS, with a default install:

$ sudo sh -c "echo 'PKG_CONFIG_PATH=/usr/local/lib/pkgconfig' >>/etc/environment"
# sh -c "echo 'PKG_CONFIG_PATH=/usr/local/lib/pkgconfig' >>/etc/environment"

Make sure ldconfig can see libmypaint as well

$ sudo ldconfig -p |grep -i libmypaint
# ldconfig -p |grep -i libmypaint

If it's not found, you'll need to add the relevant lib directory to
the LD_LIBRARY_PATH:

$ export LD_LIBRARY_PATH=/usr/local/lib
$ sudo sh -c "echo 'LD_LIBRARY_PATH=/usr/local/lib' >>/etc/environment
# sh -c "echo 'LD_LIBRARY_PATH=/usr/local/lib' >>/etc/environment

Alternatively, you may want to enable /usr/local for libraries. Arch and Redhat derivatives:

$ sudo sh -c "echo '/usr/local/lib' > /etc/ld.so.conf.d/usrlocal.conf"
$ sudo ldconfig
# sh -c "echo '/usr/local/lib' > /etc/ld.so.conf.d/usrlocal.conf"
# ldconfig

## Contributing

Expand Down

0 comments on commit 6b05c9a

Please sign in to comment.