unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Ekaitz Zarraga <ekaitz@elenq.tech>
To: "43448@debbugs.gnu.org" <43448@debbugs.gnu.org>,
	"guix-devel\\@gnu.org" <guix-devel@gnu.org>
Subject: bug#43448: FreeCAD fails to compile
Date: Sat, 05 Dec 2020 15:17:57 +0000	[thread overview]
Message-ID: <-Z7XtdEFK1-dHQ5xeOILlRXOhvoHu85Ef9UnPqs8bQPbLkWKCnFTVdCCqy1LkiLKO93X_UrCq7utFYZLBq1LUEP7s3dCV6zJL6rRYOp4sGM=@elenq.tech> (raw)
In-Reply-To: <87mu1q6ih9.fsf@gmail.com>

Hi,

I solved most of the compilation issue with freecad.

Now my package version compiles but install phase fails with this error:


```                                                                                                                                                                                             CMake Error at src/3rdParty/salomesmesh/cmake_install.cmake:41 (if):                                                                                                                             if given arguments:                                                                                                                                                                                                                                                                                                                                                                             "EXISTS" "/tmp/guix-build-freecad-mine-0.18.5.drv-0/build/" "/gnu/store/injf0n8qja607qswa5cyxz1dpzqia21p-freecad-mine-0.18.5/lib\"/libSMDS.so\"" "AND" "NOT" "IS_SYMLINK" "/tmp/guix-build-freecad-mine-0.18.5.drv-0/build/" "/gnu/store/injf0n8qja607qswa5cyxz1dpzqia21p-freecad-mine-0.18.5/lib\"/libSMDS.so\""                                                                                                                                                                                                                                                                          Unknown arguments specified                                                                                                                                                                  Call Stack (most recent call first):                                                                                                                                                             src/3rdParty/cmake_install.cmake:42 (include)                                                                                                                                                  src/cmake_install.cmake:43 (include)                                                                                                                                                           cmake_install.cmake:46 (include)
```


Did anyone see something like this before?

Right now I have no idea how to tackle this but I'll keep researching.

If anyone wants to be able to reach this point, the only changes I applied to the project are configure-flags suggested in this bug report with some extra more because the header files were not found in subdirectories. These are the configure flags I added (mostly copied from Nix package[^nix]):

```
(list
         "-DBUILD_QT5=ON"
         (string-append "-DCMAKE_INSTALL_LIBDIR=\"" (assoc-ref %outputs "out") "/lib\"")

         (string-append "-DPYSIDE2UICBINARY="
                        (assoc-ref %build-inputs "python-pyside-2-tools")
                        "/bin/uic")
         (string-append "-DPYSIDE2RCCBINARY="
                        (assoc-ref %build-inputs "python-pyside-2-tools")
                        "/bin/rcc")

         "-DPYSIDE_LIBRARY=PySide2::pyside2"
         (string-append "-DPYSIDE_INCLUDE_DIR="
                        (assoc-ref %build-inputs "python-pyside-2") "/include;"
                        (assoc-ref %build-inputs "python-pyside-2") "/include/PySide2;"
                        (assoc-ref %build-inputs "python-pyside-2") "/include/PySide2/QtCore;"
                        (assoc-ref %build-inputs "python-pyside-2") "/include/PySide2/QtWidgets;"
                        (assoc-ref %build-inputs "python-pyside-2") "/include/PySide2/QtGui;")

         "-DSHIBOKEN_LIBRARY=Shiboken2::libshiboken"
         (string-append "-DSHIBOKEN_INCLUDE_DIR="
                        (assoc-ref %build-inputs "python-shiboken-2")
                        "/include/shiboken2"))
```


I hope we can have something working soon!



Cheers,
Ekaitz



[^nix]: https://github.com/NixOS/nixpkgs/blob/7caa81d8a23f0278e868adf9054ec5409cd81f93/pkgs/applications/graphics/freecad/default.nix





      parent reply	other threads:[~2020-12-05 16:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-16 11:58 bug#43448: FreeCAD fails to compile Malte Frank Gerdes
2020-10-05 17:22 ` zimoun
2020-10-20 17:09 ` Malte Frank Gerdes
2020-10-20 17:17   ` zimoun
2020-10-20 17:30     ` Malte Frank Gerdes
2020-10-20 20:31 ` Malte Frank Gerdes
2020-11-13 16:12 ` bug#43448: Closed by 41170 John Soo
2020-12-05 15:17 ` Ekaitz Zarraga [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='-Z7XtdEFK1-dHQ5xeOILlRXOhvoHu85Ef9UnPqs8bQPbLkWKCnFTVdCCqy1LkiLKO93X_UrCq7utFYZLBq1LUEP7s3dCV6zJL6rRYOp4sGM=@elenq.tech' \
    --to=ekaitz@elenq.tech \
    --cc=43448@debbugs.gnu.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).