Author Topic: Debian Dependencies  (Read 5715 times)

pdbogen

  • Newbie
  • *
  • Posts: 1
    • View Profile
Debian Dependencies
« on: February 18, 2015, 07:26:14 PM »
Super thrilled to see this here.

Debian has almost all of the packages needed to build this, but Debian unstable apparently has libsuperlu4 instead of libsuperlu3. Also, you have a whole bunch of -dev packages required, which I don't think are needed.

I installed libsuperlu3 from Debian stable and it works fine. I also tried with just libsuperlu4, plus a symlink from /usr/lib/x86_64-linux-gnu/libsuperlu.so.3 to /usr/lib/x86_64-linux-gnu/libsuperlu.so.4, and it ran just fine. So I think this is just a naming thing.

I don't know how to fix the library requirement in meshmixer in lieu of a symlink, but changing debian/control's list of dependencies to have require "libsuperlu3 (>= 3.0+20070106) | libsuperlu4" will let it use whichever version of superlu is available.

Removing all of the -dev packages also didn't break anything. I'd recommend making this change, as well.

Finally, I was getting crashing/breakage as a result of missing paths. Creating the directories ~/Documents/meshmixer/libraries/parts, ...parts/default and ...parts/user fixed this. Meshmixer should do this (and populate these directories) itself when run, any time the directories don't exist.

Much love! Excited to play with this!
- Patrick

RMS

  • meshmixer founder
  • Administrator
  • Hero Member
  • *****
  • Posts: 1238
    • View Profile
    • gradientspace
Re: Debian Dependencies
« Reply #1 on: February 18, 2015, 10:10:49 PM »
Thanks! We are aware of some of these problems and working on them.

For the Documents/meshmixer folder, the instructions http://meshmixer.com/linux.html mention this. You actually should download and install the .zip file I linked there - it contains sample parts and some files that you need if you want to use the 3D print view.

(the auto-install of these files on run is something we are working on - we don't have that for win or OSX either, right now)
created meshmixer - now starting gradientspace - meshmixer consulting available http://www.gradientspace.com/consulting

Mikako

  • Newbie
  • *
  • Posts: 2
    • View Profile
Debian Dependencies
« Reply #2 on: March 13, 2016, 07:36:01 AM »
AW: Debian Etch meldet mich nicht an
 
Ab in die Linux-Ecke mit Dir.
????????? ?????? ????? ????? ?????? 30 ??????!!! ??? ??? ???????!!! ????????? ???

FreeBeastie

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Debian Dependencies
« Reply #3 on: September 23, 2016, 04:16:32 AM »
Today i had to install meshmixer and my target system is new - Debian Jessie 8.5

Because of dependencies(older are needed for meshmixer 2.9)  but the newer existing libraries in Jessie arent change to missing or corrupt functions which we need for meshmixer(i hope :))

So be sure that the new libraries are in your system, like following libboost things and libsuperlu

i create in /usr/lib/x86_64-linux-gnu symbolic links

libsuperlu.so.3        to         libsuperlu.so.4
libboost_thread.so.1.54.0            to            libboost_thread.so.1.55.0
libboost_system.so.1.54.0           to             libboost_system.so.1.55.0
libboost_filesystem.so.1.54.0        to            libboost_filesystem.so.1.55.0
libboost_date_time.so.1.54.0        to            libboost_date_time.so.1.55.0





In my case i need to edit the .deb file ----> meshmixer_2.9_amd64.deb because of former known problems and to avoid it.

I used from the good thread -----> http://superuser.com/questions/280370/how-to-easily-edit-control-file-in-deb-package

************************  I simply quote this guy.Here the shellscript and explanation

#!/bin/bash
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"

Save it as a shell script, make it executable (chmod +x videbcontrol), and run it like so:

fakeroot videbcontrol package.deb

It's important to use fakeroot, otherwise file ownership gets reset to the current user.
***********************************

In my case:

fakeroot videbcontrol meshmixer_2.9_amd64.deb

Select an editor.  To change later, run 'select-editor'.
  1. /bin/nano        <---- easiest
  2. /usr/bin/vim.tiny

Choose 1-2 [1]: 1
******************
the edit in control file dont show here.
******************
Deleted simply all dependencies after the "Depends:"   in the control file

But to check all needed librarys are  are already in my system

After leaving the editor with CTRL-X or Strg-X on my notebook

It Building new deb...
dpkg-deb: Paket »meshmixer« wird in »meshmixer_2.9_amd64.modified.deb« gebaut.



Now i can install the meshmixer_2.9_amd64.modified.deb with

dpkg -i meshmixer_2.9_amd64.modified.deb

The Setup ask me now for create the meshmixer folders, Yes
Finish, meshmixer works for me in debian Jessie 8.5



« Last Edit: September 23, 2016, 04:22:21 AM by FreeBeastie »