LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-22-2015, 05:40 AM   #1
pzognar
Member
 
Registered: Jun 2015
Distribution: Debian Jessie 64
Posts: 163
Blog Entries: 9

Rep: Reputation: Disabled
mandelbulber slackbuild


Hello everyone.

I am looking for a slackbuild for mandelbulber (a program that makes 3d fractals). I attempted to make my own but discovered that it uses qmake so the syntax for passing ARCH, PREFIX, LIBDIR, etc. is unclear to me. What I *have* figured out is that qmake replaces ./configure and that it is controlled by a ".pro" file.

I attempted to find a slackbuild template for qmake usage but could not.

I searched for a mandelbulber slackbuild. I found two but they were for Vector Linux and seemed to work differently from regular slackbuilds: altered layout and they apparently download the package as well.

Thank you in advance.
 
Old 12-22-2015, 06:11 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
It's been on my TODO list for ages...
 
Old 12-22-2015, 09:44 AM   #3
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
It is always best to copy from existing SlackBuilds. Clone the SBo repository and grep for qmake:
Code:
git clone git://slackbuilds.org/slackbuilds
grep -r qmake slackbuilds/
There are dozens of them that use qmake.

And/or look at how other distros build it.
Arch has the most easily searchable repository and a reasonably understandable build format
e.g. https://aur.archlinux.org/cgit/aur.g...delbulber2-git
 
Old 12-22-2015, 12:48 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
as a long time user of that software
i just manually build the git pull of mandelbulber2
( the build scripts are for Ubuntu and use sudo )
or use the "mandelbulber2-2.0.6" download
http://www.fractalforums.com/release...ulber-v2-2-06/


qtcreator uses the *.pro

you can READ the shell script "install" yes it is MISSING the .sh on the end

and run qmake on the *.pro
then run make and make install


as of 2.0.5 the build scripts are a bit different than the older 2.0 ones were


PS.

if you change the default install location of
"/usr/bin"
"/usr/share"
you WILL!!!! need to manually edit some default .frac files and a default config file

just search the source text to replace the instances of "/usr" with YOUR install location

Last edited by John VV; 12-22-2015 at 01:21 PM.
 
Old 12-22-2015, 03:03 PM   #5
pzognar
Member
 
Registered: Jun 2015
Distribution: Debian Jessie 64
Posts: 163

Original Poster
Blog Entries: 9

Rep: Reputation: Disabled
How interesting, since I tried a direct compile (not a slackbuild) and that failed. Seems it can't find the qt libraries. JohnVV, I am going to guess you're on a 32 bit slackware?

Anyway, here is what I have got as a slackbuild:
Code:
#!/bin/sh

# Slackware build script for mandelbulber
# At this time, this script fails.  The problem is that the qmake
# line fails at a missing library.  Hello lib64!

# Written by PCC
# License for this slackbuild: public domain

# The way this program must be compiled is a bit different from usual.
# My usual thing of putting things in /usr/local is not being done.
# This program will be in directories off of /usr.
# I could find no way for telling it to use lib64 instead of lib so
# I did not.  Hopefully it finds the libraries that it needs anyway. EDIT:  nope

PRGNAM=mandelbulber2
VERSION=${VERSION:-2.06}
BUILD=${BUILD:-1}
TAG=${TAG:-_pcc}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/dev/shm/pcc}
PKG=$TMP/package-$PRGNAM
OUTPUT=$CWD

# note: it may be that ARCH is ignored later by qmake & make
if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
 \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
  -o -perm 511 \) -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
 -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;

cd makefiles
# next is where it fails: qmake doesn't get the whole lib64 thing
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
 qmake mandelbulber.pro
make all
make clean
cd ..
mv makefiles/mandelbulber2 usr/bin/mandelbulber2

# following their "install" script, instead of "make install", these
# next two lines
install -s usr/bin/mandelbulber2 $PKG/usr/bin
cp -ra usr/share/ $PKG/usr/

# put this in a doinst.sh?:  desktop-file-install mandelbulber2.desktop

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp COPYING NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
#cat $CWD/doinst.sh  > $PKG/install/doinst.sh

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

# actual end of this file
Yes, it fails, but perhaps it can be a starting point for someone?
 
Old 12-22-2015, 03:17 PM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by pzognar View Post
How interesting, since I tried a direct compile (not a slackbuild) and that failed. Seems it can't find the qt libraries.
Mandelbulber2 is based on Qt5, which could be the reason for the Qt errors - Slackware does not contain Qt5.
 
Old 12-22-2015, 09:21 PM   #7
pzognar
Member
 
Registered: Jun 2015
Distribution: Debian Jessie 64
Posts: 163

Original Poster
Blog Entries: 9

Rep: Reputation: Disabled
Quote:
Originally Posted by Alien Bob View Post
Mandelbulber2 is based on Qt5, which could be the reason for the Qt errors - Slackware does not contain Qt5.
D'oh! Well, that explains it.
 
Old 12-22-2015, 09:57 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
2.06 is a qt5 program


the creator is a die hard UBUNTU user

i am on a 64 bit OS with QT 4.8 and qt 5.4
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Patch and SlackBuild] Grub-2.02~beta2 SlackBuild and Patch. ReaperX7 Slackware 3 01-28-2015 09:30 AM
Slackbuild tuxbg Slackware 10 12-28-2012 03:11 PM
*.SlackBuild SolitudeSensus Programming 3 07-17-2009 11:50 PM
OO 3.01 slackbuild ? brodo Slackware 4 02-01-2009 04:06 PM
SlackBuild CrEsPo Slackware 2 03-19-2006 01:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration