From patchwork Fri Jun 12 21:46:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ekaitz Zarraga X-Patchwork-Id: 22692 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 13EA727BBE1; Fri, 12 Jun 2020 22:47:17 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 7C00827BBE1 for ; Fri, 12 Jun 2020 22:47:16 +0100 (BST) Received: from localhost ([::1]:44030 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjrW8-0008Iv-2q for patchwork@mira.cbaines.net; Fri, 12 Jun 2020 17:47:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjrVu-0008Ic-R0 for guix-patches@gnu.org; Fri, 12 Jun 2020 17:47:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57340) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jjrVu-0000Gz-7e for guix-patches@gnu.org; Fri, 12 Jun 2020 17:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jjrVu-0000qd-5f for guix-patches@gnu.org; Fri, 12 Jun 2020 17:47:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40492] [PATCH] gnu: Add meshlab Resent-From: Ekaitz Zarraga Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 12 Jun 2020 21:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40492 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?utf-8?q?Court=C3=A8s?= Cc: "40492\\@debbugs.gnu.org" <40492@debbugs.gnu.org> Received: via spool by 40492-submit@debbugs.gnu.org id=B40492.15919983953223 (code B ref 40492); Fri, 12 Jun 2020 21:47:02 +0000 Received: (at 40492) by debbugs.gnu.org; 12 Jun 2020 21:46:35 +0000 Received: from localhost ([127.0.0.1]:40653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjrVS-0000pv-R1 for submit@debbugs.gnu.org; Fri, 12 Jun 2020 17:46:35 -0400 Received: from mail2.protonmail.ch ([185.70.40.22]:56514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjrVQ-0000pe-A0 for 40492@debbugs.gnu.org; Fri, 12 Jun 2020 17:46:33 -0400 Date: Fri, 12 Jun 2020 21:46:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=protonmail; t=1591998385; bh=c97Ii1WwBcmLm76PLQOM6qD9z8sS28bV9txnvipvpaM=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=ex8ZdkYbyaXuPWN+Qp26tyov7zU5s0Q3h6QQoF5eG1NjT1iYyGf3Bsa2toB86vnRA GoM57n0QC4xba/pgn/l0Z0D/IELJL62aU4ljr65VgPy4WlfEU7PhVpbE46YM/YPTaN QhFQJPGQ2MRCBiAqXejVZnt1JnxLDNyBlM/RRaYU= From: Ekaitz Zarraga Message-ID: In-Reply-To: <87tuzg2hly.fsf@gnu.org> References: <_UXapokzwPRYl41j0bjkPGSDUNXahWNWsEn72py7ch7Rd6DBsxW9B8rw8wTbmzj1O2HfWXz7XLbEdWCYQsFCa5DgMlGn0CKVPr779J2PFuo=@elenq.tech> <87blmrvt3c.fsf@gnu.org> <875zbw5kka.fsf@gnu.org> <87tuzg2hly.fsf@gnu.org> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Ekaitz Zarraga Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Friday, June 12, 2020 9:45 PM, Ludovic Courtès wrote: > Hi, > > Ekaitz Zarraga ekaitz@elenq.tech skribis: > > > I did my best here and there's some extra CMake configuration step error, I talked with meshlab's developers about this and I'm unable to make it work with system qhull. > > I don't know why. > > I don't know enough about CMake (I don't know anything about CMake tbh) to make it work myself. > > This is the issue upstream. > > https://github.com/cnr-isti-vclab/meshlab/issues/678 > > With the QHull provided by Meshlab it works well with all the libs we packaged, does it make sense to leave just qhull for the moment? > > Yeah, let’s do that, with a FIXME comment referencing the above issue. > > Thanks for the update! > > Ludo’. There it goes. From 2779f50ad71b4458272aaa9223df96e3a77f60e4 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Fri, 12 Jun 2020 23:41:18 +0200 Subject: [PATCH] gnu: Add meshlab. * gnu/packages/engineering.scm (meshlab): New variable. --- gnu/packages/engineering.scm | 61 ++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) -- 2.26.2 diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 9d9c67b861..b243974dcc 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -105,6 +105,7 @@ #:use-module (gnu packages version-control) #:use-module (gnu packages wxwidgets) #:use-module (gnu packages xml) + #:use-module (gnu packages openkinect) #:use-module (gnu packages xorg)) (define-public librecad @@ -2619,3 +2620,63 @@ accessible through a simple API") model files. Its main goal is to simplify the creation of 3DS import and export filters.") (license license:lgpl2.1+))) + +(define-public meshlab + (let ((version "2020.05")) + (package + (name "meshlab") + (version version) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cnr-isti-vclab/meshlab") + (commit (string-append "Meshlab-" version)) + (recursive? #t))) + (sha256 + (base32 "00sim20ka9vjwljixdj4cqd285j21mpaq05ari7nqq2w8yyglp5m")))) + (build-system cmake-build-system) + (native-inputs + `(("qtbase" ,qtbase) + ("qtscript" ,qtscript) + ("qtxmlpatterns" ,qtxmlpatterns) + ("mesa" ,mesa) + ("glu" ,glu) + ("glew" ,glew) + ("muparser" ,muparser) + ("gmp" ,gmp) + ("eigen" ,eigen) + ("libfreenect" ,libfreenect) + ("lib3ds" ,lib3ds) + ("openctm" ,openctm) + ;; Compilation fails with system qhull + ;; https://github.com/cnr-isti-vclab/meshlab/issues/678 + ;; ("qhull" ,qhull) + )) + (arguments + `(#:tests? #f ; Has no tests + #:phases + (modify-phases + %standard-phases + (add-after + 'unpack 'go-to-source-dir + (lambda _ (chdir "src") #t)) + (add-after + 'install 'move-files + (lambda* (#:key outputs #:allow-other-keys) + (let ((lib (string-append (assoc-ref outputs "out") + "/lib"))) + (rename-file + (string-append lib "/meshlab/libmeshlab-common.so") + (string-append lib "/libmeshlab-common.so")) + #t)))))) + (synopsis "3D triangular mesh processing and editing software") + (home-page "https://www.meshlab.net/") + (description "MeshLab is a system for the processing and +editing of unstructured large 3D triangular meshes. It is aimed to help the +processing of the typical not-so-small unstructured models arising in 3D +scanning, providing a set of tools for editing, cleaning, healing, inspecting, +rendering and converting this kind of meshes. These tools include MeshLab +proper, a versatile program with a graphical user interface, and meshlabserver, +a program that can perform mesh processing tasks in batch mode, without a +GUI.") + (license license:gpl3+))))