You are not logged in.

#1 2016-08-04 15:18:53

damo
....moderator....
Registered: 2015-08-20
Posts: 4,386

Mandelbulber2 on jessie and stretch

The latest whizzy development version of this 3D fractal generator can be downloaded from https://sourceforge.net/projects/mandelbulber/
https://scrot.moe/images/2016/08/04/mandelbulber2-scrot.th.jpg

It uses Qt5 for the gui, so the dependencies make for a big download sad

@stevep has packaged a version of v2.08 which should work on Stable. See post #8

Compiling for jessie (Potentially unsafe!)

The runtime dependencies include 'libgsl2', which needs to be backported from stretch. Unfortunately this requires that Inkscape, Krita et al need to be removed first!
WORKAROUND #1: Using gsl library symlink Post #7 below
WORKAROUND #2: Run it in a systemd sid container: Post #6 below, by @HoaS

    mkdir gsl-build && cd gsl-build

    dget -xu http://http.debian.net/debian/pool/main/g/gsl/gsl_2.1+dfsg-2.dsc

    cd gsl-2.1+dfsg/
    
    sudo mk-build-deps --install --remove

    dch --local ~bpo70+ --distribution jessie-backports "Rebuild for jessie-backports."
    
    dpkg-buildpackage -us -uc

This will create 4 debs, the 2 that are needed can be installed with gdebi/dpkg

1)  libgsl2_2.1+dfsg-2~bpo70+1_amd64.deb
2)  libgsl-dev_2.1+dfsg-2~bpo70+1_amd64.deb

The build and install instructions for Mandelbulber2 are in the README. Since we have already installed the gsl libs, what are now needed are:

sudo apt-get install build-essential libqt5gui5 qt5-default libpng12-0 libpng12-dev qttools5-dev qttools5-dev-tools libgomp1

In the downloaded and extracted mandelbulber directory, do

cd makefiles
qmake mandelbulber.pro
make all
cd ..
./install

(There is also an uninstall script to remove the bin files)

Compiling for stretch

No problem with gsl libs here, but the dependencies in the README are wrong for Debian, specifically the png libs. The packages needed are:

sudo apt-get install build-essential libqt5gui5 qt5-default libpng16-16 libpng-dev qttools5-dev qttools5-dev-tools libgomp1

EDIT: Mandelbulber2 v2.07 is available in the stretch repos, and v2.08 is now in the sid repos

Building latest development from source

The github repo is at https://github.com/buddhi1980/mandelbulber2

git clone https://github.com/buddhi1980/mandelbulber2
cd mandelbulber2/mandelbulber2

Run the make-package script, which creates the build directory and makefile etc.
If the version you are building is "2.09", and the build destination is ".mandelbulber-build-dev", then...

./make-package.sh 2.09 /home/damo/.mandelbulber-build-dev

...building...

cd /home/damo/.mandelbulber-build-dev/mandelbulber2-2.09/makefiles
qmake mandelbulber.pro
make all
cd ..
./install

The install script can be run from within your git directory - it will build the files and install from there. However it doesn't create a separate $USER build directory.

Last edited by damo (2016-08-28 17:05:32)


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#2 2016-08-04 15:55:52

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,153

Re: Mandelbulber2 on jessie and stretch

See, now this I don't get.
Debian 7 Wheezy: is old stable and that version 2-2.08-2 at the download site
Debian 8 Jessie has: Version: 1:1.21.1-1.1+b1

How is that possible ... what am I missing?

Awwwwwwwwwwww CRAP! ops ops

The latest whizzy version

Sorry!  Noticed just as I hit [Submit]

Last edited by Sector11 (2016-08-04 15:56:59)


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

#3 2016-08-04 15:58:01

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 1,596

Re: Mandelbulber2 on jessie and stretch

What do you think about an appimage concept/implementation? http://appimage.org/
p.s. Krita uses that.

Offline

#4 2016-08-04 17:47:53

damo
....moderator....
Registered: 2015-08-20
Posts: 4,386

Re: Mandelbulber2 on jessie and stretch

I've got mandelbulber2 and inkscape running on BL jessie now, using a symlink for the libgsl which is needed for runtime smile

Now to see if it builds using this method......


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#5 2016-08-04 18:47:28

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,153

Re: Mandelbulber2 on jessie and stretch

Xing fingers, toes, eyes ... ie:  Good Luck!


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

#6 2016-08-04 19:14:12

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: Mandelbulber2 on jessie and stretch

damo wrote:

---[ I am trying to find a way to run Mandelbulber2 as a self-contained application hmm ]---

If I may...

First attain root privileges:

sudo -i

Then create a new directory for a new sid system:

mkdir -p /var/lib/container/sid

Now install a basic sid system to this directory:

debootstrap sid /var/lib/container/sid http://httpredir.debian.org/debian

https://packages.debian.org/jessie/debootstrap

Start a root shell in the sid system:

systemd-nspawn --directory=/var/lib/container/sid

Create a new user:

adduser $user

Replace $user with the actual username and make sure that the username, UID & GID are the same as for your usual user.

Now install all the needed packages:

apt install tar sudo wget build-essential libqt5gui5 qt5-default libpng16-16 libpng-dev qttools5-dev qttools5-dev-tools libgomp1 libgsl-dev libgsl2

Then add your user to the "sudo" group:

gpasswd -a $user sudo

We want to run the package as the normal user so hold down <Ctrl> and press the "]" key three times in quick succession to kill the container (or run `poweroff`) and then start the system proper and login as the normal user:

systemd-nspawn --boot --directory=/var/lib/container/sid

From there, download and build the package:

wget --no-check-certificate https://sourceforge.net/projects/mandelbulber/files/latest/download
tar xf download
cd mandelbulber*/makefiles
qmake mandelbulber.pro
make all
cd ..
./install

Finally, run the program on the current desktop:

DISPLAY=:0 mandelbulber2

`scrot` or it didn't happen:

screenFetch-2016-08-04_20-13-04.th.png

smile

To use the program therefter, enable the sid container to start automatically at boot with:

sudo systemctl enable systemd-nspawn@sid.service

The program can then be started at any time with this command:

pkexec systemd-nspawn --directory=/var/lib/container/sid --setenv=DISPLAY=:0 --user=$USER mandelbulber2

To use this in the Openbox menu, the stanza is:

<item label="Mandelbulber2">
  <action name="Execute">
    <command>bash -c 'pkexec systemd-nspawn --directory=/var/lib/container/sid --setenv=DISPLAY=:0 --user=$USER mandelbulber2'</command>
  </action>
</item>

“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#7 2016-08-04 19:45:31

damo
....moderator....
Registered: 2015-08-20
Posts: 4,386

Re: Mandelbulber2 on jessie and stretch

@HoaS - Not another thing to have to learn! I'll investigate containers, but this is another method I have come up with....

OK, here is a really ugly workaround for the gsl library on jessie! (But it is working wink )

1)  Uninstall Inkscape

2)  Install the gsl libraries you built earlier: 'libgsl2_2.1+dfsg-2~bpo70+1_amd64.deb' and 'libgsl-dev_2.1+dfsg-2~bpo70+1_amd64.deb'

3)  Build mandelbulber2 as described above

4)  Reinstall Inkscape - this will remove the installed 'libgsl2' and 'libgsl-dev' packages

5)  Extract 'libgsl2_2.1+dfsg-2~bpo70+1_amd64.deb' somewhere (in your $HOME probably), then make a symlink in '/usr/lib' to the .so file in it

sudo ln -s  ~/path/to/libgsl2_2.1+dfsg-2~bpo70+1_amd64/usr/lib/x86_64-linux-gnu/libgsl.so.19  /usr/lib/x86_64-linux-gnu/libgsl.so.19

Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#8 2016-08-04 20:03:53

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,153

Re: Mandelbulber2 on jessie and stretch

OT:  Ya know, watching you two at work is amazing.


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

#9 2016-08-04 20:30:32

damo
....moderator....
Registered: 2015-08-20
Posts: 4,386

Re: Mandelbulber2 on jessie and stretch

Sector11 wrote:

OT:  Ya know, watching you two at work is amazing.

But @HoaS knows what he is doing. I just thrash about and hope it works big_smile


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#10 2016-08-06 20:22:41

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: Mandelbulber2 on jessie and stretch

I have changed the container method slightly to build the sid system under the aegis of machinectl(1) and added details to start the container automatically at boot with a one-line command to launch mandelbulber2

EDIT:

damo wrote:

I just thrash about and hope it works

Yup, me too big_smile

Last edited by Head_on_a_Stick (2016-08-07 11:51:14)


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#11 2016-08-08 21:15:31

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: Mandelbulber2 on jessie and stretch

Posting this very useful information from the Legend that is Steve Pusser:

I took a look at mandelbulber2 from upstream, and it turns out that all the libgsl contortions can be avoided by building it against the stock libgls0-dev in Jessie, either by replacing libgsl-dev with that in the Build-Depends in debian/control, or adding it as an alternate B-D:

libgsl-dev | libgsl0-dev,

http://forums.debian.net/viewtopic.php?p=621892#p621892

EDIT: *waves to @stevep* big_smile

Welcome to the forums Steve!

Last edited by Head_on_a_Stick (2016-08-08 21:19:13)


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#12 2016-08-08 21:39:39

stevep
MX Linux Developer
Registered: 2016-08-08
Posts: 327

Re: Mandelbulber2 on jessie and stretch

Wow, you spotted me quickly!  I just sent the upstream 2.07.1 version to the MX 15 test repo--I was also able to build packages for the new 2.08.3 release by scrapping /debian/packages from the older version--I took a peek at the source and the developer had applied the patches upstream.

2.08.3 would crash for me sometimes in my tests, which is why I didn't send it up, though I didn't run 2.07.1 long enough to see if it also would crash.  The application makes me feel like a caveman sitting in a jetliner cockpit, with so many controls. I'll set up an OBS backports repo for it, too.

Another packager backported libgsl-dev for a newer gnuradio in the MX repo back in January, but it also breaks the same packages as above.  Jessie-backports has gnuradio now without that mess, so it must have the same solution, so we are going to fix it.

Here's instructions for the OBS repo for 2.07.1:  https://software.opensuse.org/download. … delbulber2

All the commands to add the repo and key must be run as root or with sudo.  I'm building 2.08.3 in a separate OBS project there. I found that 2.07.1 does not want to run any files created by a newer version, though.

Update:  and the repo for 2.08.3:  https://software.opensuse.org/download. … delbulber2

Edit:  I noticed that if you download multiple keys for different OBS repos, any after the first one will be saved as "Release.key.(n)", so change the command to add the key to use the appropriate key file, which you'll see in the result from the key download.

Try some of the examples from the File menu to see what Mandelbulber2 can do...

Edit 2:  Mandelbulber2 2.08.3 is now in Sid.  It looks like the maintainer just dropped the patches, same as I did, so the OBS version should be the same:

mandelbulber2 (2.08.3-1) unstable; urgency=medium

  * New upstream release.
  * Removing Debian patches, since they have been accepted upstream.

-- Giovanni Mascellani <gio@debian.org>  Wed, 10 Aug 2016 23:16:47 +0200

Edit 3: and another repository for 2.09.1:

https://software.opensuse.org/download. … delbulber2

The repo's address itself is
deb http://download.opensuse.org/repositori … ebian_8.0/ /

Last edited by stevep (2016-10-11 17:09:10)

Offline

#13 2016-08-08 21:40:50

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: Mandelbulber2 on jessie and stretch

Awesome stuff, thank you so much smile


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#14 2016-08-08 22:15:40

damo
....moderator....
Registered: 2015-08-20
Posts: 4,386

Re: Mandelbulber2 on jessie and stretch

Jumping up and down with excitement!!!


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#15 2016-08-09 07:23:25

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: Mandelbulber2 on jessie and stretch

stevep wrote:

Here's instructions for the OBS repo for 2.07.1:  https://software.opensuse.org/download. … delbulber2

[...]

Update:  and the repo for 2.08.3:  https://software.opensuse.org/download. … delbulber2

I'm getting errors with those URLs sad

Is this just me?


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#16 2016-08-09 09:40:41

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 1,596

Re: Mandelbulber2 on jessie and stretch

So i'am running a headless server on another machine ( mandelbulber2 -n -S --stats test ), and GUI client on main one, how do I send something to the server to render? (Any docs?)

Actually it should be the other way around, the main gui should be server and the other (headless) client.

@Head_on_a_Stick: URLs are working for me.

Last edited by brontosaurusrex (2016-08-09 10:17:09)

Offline

#17 2016-08-09 13:12:56

damo
....moderator....
Registered: 2015-08-20
Posts: 4,386

Re: Mandelbulber2 on jessie and stretch

Head_on_a_Stick wrote:

...
Is this just me?

Dunno, works for me. It takes me to a link page, to choose "Debian", which opens the instructions here


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#18 2016-08-09 15:09:39

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,153

Re: Mandelbulber2 on jessie and stretch

Head_on_a_Stick wrote:

I'm getting errors with those URLs sad

Is this just me?

@HoaS - work for me too.

Install package home:stevepusser:mandelbulber2_2.08.3 / mandelbulber2

Select Your Operating System
Debian

Add repository and install manually(hide)

For Debian 8.0 run the following as root:

echo 'deb http://download.opensuse.org/repositori … ebian_8.0/ /' >> /etc/apt/sources.list.d/mandelbulber2.list
apt-get update
apt-get install mandelbulber2

You can add the repository key to apt. Keep in mind that the owner of the key may distribute updates, packages and repositories that your system will trust (more information). To add the key, run:

wget http://download.opensuse.org/repositori … elease.key
apt-key add - < Release.key
apt-get update

Grab binary packages directly(hide)
Packages for Debian 8.0:    
    mandelbulber2_2.08.3-0jessie1_amd64.deb
    mandelbulber2_2.08.3-0jessie1_i386.deb

Create your own download page | About openSUSE | Legal information | Feedback | Fork me on GitHub


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

#19 2016-08-09 20:38:28

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: Mandelbulber2 on jessie and stretch

Yep, works fine now, sorry for the noise  ops

Now I just have to figure out what all the knobs do...
big_smile


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#20 2016-08-09 20:54:02

damo
....moderator....
Registered: 2015-08-20
Posts: 4,386

Re: Mandelbulber2 on jessie and stretch

^ Quick Tip...

If you open a pre-set, then change the image resolution to something small while you play with the settings. Some can take a looong time to refresh wink


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#21 2016-08-09 21:53:46

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,153

Re: Mandelbulber2 on jessie and stretch

Head_on_a_Stick wrote:

Now I just have to figure out what all the knobs do...
big_smile

Hell, that's easy:

We all ask you what we should be doing.  smile


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

#22 2016-08-09 23:22:30

damo
....moderator....
Registered: 2015-08-20
Posts: 4,386

Re: Mandelbulber2 on jessie and stretch

^ You mean it isn't in the Arch wikiyikes


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#23 2016-08-10 07:07:49

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: Mandelbulber2 on jessie and stretch

^ I'll add a page if I learn how to use it.

Don't hold your breath though...
big_smile


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#24 2016-08-10 16:48:08

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,153

Re: Mandelbulber2 on jessie and stretch

ArchWiki is a "mediawiki", can't find that link on the ArchWiki, and this was my bible, opened in a second tab, when doing ConkyPitStop:  Support » Help:Contents, especially the 'formatting' page.

If I can do it, I doubt you'll have any problems ...

-= OR =-

If you give me the information in a PM I'll try to do a 'private' page at CPS that you can copy paste to the arch wiki - links in the ArchWiki will need to be done by you though


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

#25 2016-08-10 17:06:57

damo
....moderator....
Registered: 2015-08-20
Posts: 4,386

Re: Mandelbulber2 on jessie and stretch

@S11

damo wrote:

You mean it isn't in the Arch wiki?

@damo thought he was making a joke sad

FWIW the old Mandelbulber (in the repos) has quite a comprehensive manual explaining what individual settings do. The new Mandelbulber2 gui is different, and there are many more settings and options, but the basics are the same....

...ie I close my eyes, pick something at random, render, tweak, repeat!


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

Board footer

Powered by FluxBB