From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YDf3AhByj2L1ewEAbAwnHQ (envelope-from ) for ; Thu, 26 May 2022 14:26:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GLXkAhByj2LIJAAA9RJhRA (envelope-from ) for ; Thu, 26 May 2022 14:26:56 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5AF28338F0 for ; Thu, 26 May 2022 14:26:55 +0200 (CEST) Received: from localhost ([::1]:42962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuCZo-0008Ln-NJ for larch@yhetil.org; Thu, 26 May 2022 08:26:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43264) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuCYO-0008JK-OP for guix-devel@gnu.org; Thu, 26 May 2022 08:25:30 -0400 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]:34576) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nuCYM-00037I-PW for guix-devel@gnu.org; Thu, 26 May 2022 08:25:24 -0400 Received: by mail-ej1-x636.google.com with SMTP id q21so2750369ejm.1 for ; Thu, 26 May 2022 05:25:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=hGXsDNzeQqaLoW7w1wEU1URCPnEHpG5VEOnRFO/HxYQ=; b=mPYfwCmz+davJHoBvOuPgrA4cGm95s1kUldHXxskwkCM1TNxMVu2KJFUVsNB1q98I3 mVYFez4AXgRzym0l9RrZd3CvVsFVFQtuwNghAMeSXm1jL1CeCM3SdSfiNkrKajng7Qk5 XBAocAKAZmmmiZYGI6abdE1iFTG7xL9Jhac2StQ9EI2JNZDQY0EpTVJCU6HhIDgIyZv5 vajGuScnpJNTJjlNovZgp9wNIR8vE74m82AOUk6K41N+kKezbml8xUXZtBA6rSAE4DyJ eDrxpXY/2qAWRhV9r9qa+zaU1ZjgjXoleNmCoWlQGqbkBLbs7am+Vyp7RmMFfsfTDNoo lCPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version:content-transfer-encoding; bh=hGXsDNzeQqaLoW7w1wEU1URCPnEHpG5VEOnRFO/HxYQ=; b=pt+L8fVwOQTYnlqy54pHhGTIMmaARtoF2ObPqpXb/IkRUX0DCzmMRAV0GIrjL7Jj+H WbOQDFq21k+fPgvp2eIhDBmNgG6L98fqVSCio6soihkKJRBZwGZ0hmLMgUxnDFMWKU29 cWuQtdjotY0toJiMNjfjWZidE+oPWJLjX/QAINlz6bnSUrjFLSYyQnrH/Y6AuHM4RiKz OVNZ1DMHFN9ee0xPL/uZ8Vn1LLR3aZnuYKURogJpmKnwV33cfEZEFYnIwBoKDsB0L2bs I+TC4sLyUxM+v7HBwg3m8wluvETW0/aoYBWKaDKz21TdfQVWFALQv7jlPV+0sdwsbV71 6U8g== X-Gm-Message-State: AOAM530/mQAk9S3d7Ef9dsIF9om+SknhOtAsW6aQ0sLdVtzCSg1Npo+T JcaRfCeDzGUplR+5+fXpWaLhYg3aECA= X-Google-Smtp-Source: ABdhPJwVmW7lqVfH0Bagg8Cip+qUtwJaxleo4P8L/l87MzNj+9EcZfzeg7vQ6Uim3xc5GfPrU3UUOQ== X-Received: by 2002:a17:907:6d9f:b0:6fe:af28:5fbf with SMTP id sb31-20020a1709076d9f00b006feaf285fbfmr27389488ejc.737.1653567920903; Thu, 26 May 2022 05:25:20 -0700 (PDT) Received: from gazelle.gmail.com (p579ad8e1.dip0.t-ipconnect.de. [87.154.216.225]) by smtp.gmail.com with ESMTPSA id kk6-20020a170907766600b006f3ef214ddfsm478585ejc.69.2022.05.26.05.25.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 May 2022 05:25:20 -0700 (PDT) References: <87pmk9bqj7.fsf@gmail.com> <6ba84a62baba44e2f680ee64f37a53146c2c4c02.camel@telenet.be> <87tu9jq3sx.fsf@gmail.com> <87v8tx8nt3.fsf@gmail.com> User-agent: mu4e 1.6.10; emacs 28.0.90 From: =?utf-8?Q?Th=C3=A9o?= Maxime Tyburn To: Ekaitz Zarraga Cc: Maxime Devos , guix-devel@gnu.org Subject: Re: Blender export backend missing Date: Thu, 26 May 2022 12:56:58 +0200 In-reply-to: Message-ID: <87zgj4lbva.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::636; envelope-from=theo.tyburn@gmail.com; helo=mail-ej1-x636.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653568015; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=hGXsDNzeQqaLoW7w1wEU1URCPnEHpG5VEOnRFO/HxYQ=; b=KtFQPTem3aVkliafn6dulNMkJOoSyqiDNOFyFzQ8jEL8iW4+0YUuZA73+IgwDEAODn6UYl CXsN7qP0Mmu/TV9a1HLmoR63Yf9WHsJF9AFXhl7KBPfn0fY4qlsMXVR/m8jl4IunoOu3Ef OxfALwWtsuZuYrjVO47nD57bPoiyj/TA1P8JW5Wv3G6Rx2gHBqEWV4qpl/nB/SMLycuo8V dIPjXNjxLYKiOK8kgwyzP6ZivL6EnVMr2ikwVgef3CLjL/X+XxIqPWE2IcoBIUhqLODcZm sDwEpX8JKCCvGa1peuqs/QfMDnUndEBLnby1qh7MDLLgqjxRWgjmKF+KZ56VdQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653568015; a=rsa-sha256; cv=none; b=oj7a6ENdXdATybLBVvQlIiQeO0PbFkcNDsIPjnIoFqV6ReGzjkUcmvOFuiXDR3Nqo+cco5 ObnERhk5Wp1vTXxm/UGNpokJN5iL6EoJoL/eS6z3vCc7i1woRwhNPRHrKXHCg5cBUuSqXq 4bldbVjxK/+B+W4gmpE55izxHnvr8X8jGI2+0xSvkm5MELk4p3n2nVpNf7gp44n/stHdIG 8NMt9XXe5jYQZCpTgcyCeIB+rukU1ifc15ENXSICazZ57ORhpvVDW2tWGuZgmm//efZl8B Sq2480oec1nnNuC8X/8LQ7CcatpRrh/As2ZrxCjJeYUH0bpAh/TSmuBY7X/2SQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=mPYfwCmz; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.34 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=mPYfwCmz; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5AF28338F0 X-Spam-Score: -5.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: lQeOd1gj6YFM Hello, I tried several things in the last days. Unfortunatly I still didn=E2=80=99t manage to build Blender with the new OpenEXR IMath version. Long story short: I think upgrading blender to 3.1.0 will solve the problem. But this requires to have python 3.10. So I=E2=80=99ll wait until we have it and come back to it later. In the meantime we can leave openexr to the old version and just add an alternative alembic package that is based on it. I used this approach in= the last few days to work with alembic files in blender and it just works fine. I=E2=80=99ll propose a patch for this. I never did this for guix though, so I might still have some questions :) Ekaitz Zarraga writes: [...] > I know this is a huge effort, I had to deal with similar things in > Blender and Meshlab in the past, so I'm here to help! > > Good job, > Ekaitz Thank you for encouraging me! It is indeed a messy problem. Let=E2=80=99s s= ee how this works out with the newer version of python and blender. Here is the story of my experimentations with gorry details: The patch I mentioned in my previous message is actually for a much older v= ersion, so it can=E2=80=99t even apply. There is a simple way to avoid the error occuring at config time though: if you set "-DWITH_CYCLES=3DOFF" then the config succedes. So it seems the problem comes from Cycles. This is a problem on its own. Not sure what to do about it. It looks more like an upstream problem. Anyway, even with that problem put aside, there is another one. The package= half is not found at compile time. In earlier versions of OpenEXR it was part of IlmBase, now it is in IMath. The trick for blender based on ilmbase was to add (string-append (assoc-ref inputs "ilmbase") "/include/OpenEXR/") to C_INCLUDE_PATH and CPLUS_INCLUDE_PATH so that half can be found. So now that half is in IMath I changed it to (string-append (assoc-ref inputs "imath") "/include/IMath/") unfortunatly this didn=E2=80=99t work: half is still not found. I am confused because I tried a small experiement with a simple c code and it worked when setting C_INCLUDE_PATH. So this compiles: --8<---------------cut here---------------start------------->8--- C_INCLUDE_PATH=3D/gnu/store/pxf5591fpradfjjqyx7j269xilwndcmk-imath-3.1.3/in= clude/Imath/ gcc use-half.c --8<---------------cut here---------------end--------------->8--- where use-half.c contains --8<---------------cut here---------------start------------->8--- #include void main() { printf("hello"); } --8<---------------cut here---------------end--------------->8--- So I=E2=80=99m not sure why this doesn=E2=80=99t work in the context of ble= nder being built. Any idea? =20=20 By the way this seems to be something that should be set by the ilmbase and imath packages, right? Or is it just a problem of blender not specifying half is to be found in IMath. For example this compiles: --8<---------------cut here---------------start------------->8--- gcc use-Imath-half.c --8<---------------cut here---------------end--------------->8--- where use-Imath-half.c contains --8<---------------cut here---------------start------------->8--- #include void main() { printf("hello"); } --8<---------------cut here---------------end--------------->8--- So we could actually try to just change all #include with #include in the blender source code. How can one achieve that? But even if this works, we still have the problem that Cycles need to have the old version of OpenEXR. As long as this problem with configuring Cycles with newer versions of OpenEXR and Imath fails I see no way around. Happy hacking, Th=C3=A9o