:: [DNG] Meshmixer installation guide
Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Hughe Chung
Ημερομηνία:  
Προς: dng
Αντικείμενο: [DNG] Meshmixer installation guide
Hi,

I followed Meshmixer installationn guide in Debian 8.5
http://meshmixer.com/forum/index.php?topic=2013.0

Download two package files on Meshmixer website.
meshmixer_2.9_amd64.deb
meshmixer.zip

Create a package file editing script. I saved it as deb-edit.sh, set
execution mode, copied to ~/bin directory.

#!/bin/bash
#
http://superuser.com/questions/280370/how-to-easily-edit-control-file-in-deb-p
ackage
# http://meshmixer.com/forum/index.php?topic=2013.0

DEBFILE="$1"
TMPDIR=`mktemp -d /tmp/deb.XXXXXXXXXX` || exit 1
OUTPUT=`basename "$DEBFILE" .deb`.modified.deb

if [[ -e "$OUTPUT" ]]; then
echo "$OUTPUT exists."
rm -r "$TMPDIR"
exit 1
fi

dpkg-deb -x "$DEBFILE" "$TMPDIR"
dpkg-deb --control "$DEBFILE" "$TMPDIR"/DEBIAN

if [[ ! -e "$TMPDIR"/DEBIAN/control ]]; then
echo DEBIAN/control not found.

rm -r "$TMPDIR"
exit 1
fi

CONTROL="$TMPDIR"/DEBIAN/control

MOD=`stat -c "%y" "$CONTROL"`
sensible-editor "$CONTROL"

if [[ "$MOD" == `stat -c "%y" "$CONTROL"` ]]; then
echo Not modified.
else
echo Building new deb...
dpkg -b "$TMPDIR" "$OUTPUT"
fi

rm -r "$TMPDIR"
### end of script

Install dependent packages

libboost-date-time1.61.0
libboost-filesystem1.55.0
libboost-system1.55.0
libboost-thread1.55.0
libavahi-compat-libdnssd1
libkml0
libqtwebkit4
libsuperlu4
libxerces-c3.1
zenity

$ cd /usr/lib/x86_64-linux-gnu

$ sudo ln -s libboost_date_time.so.1.61.0 libboost_date_time.so.1.54.0
$ sudo ln -s libboost_system.so.1.55.0 libboost_system.so.1.54.0
$ sudo ln -s libboost_filesystem.so.1.55.0 libboost_filesystem.so.1.54.0
$ sudo ln -s libboost_thread.so.1.55.0 libboost_thread.so.1.54.0

Run the script to create new Meshmixer package

$ fakeroot deb-edit.sh meshmixer_2.9_amd64.deb
Building new deb...
dpkg-deb: building package `meshmixer' in
`meshmixer_2.9_amd64.modified.deb'

$ sudo dpkg -i meshmixer_2.9_amd64.modified.deb

Go to the directory to decompress meshmixer.zip.
It will create meshmixer directory there.

$ cd some_directory/meshmixer

$ meshmixer