unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* FreeCAD fails to compile
@ 2020-12-05 15:17 Ekaitz Zarraga
  2020-12-05 16:50 ` Ekaitz Zarraga
  0 siblings, 1 reply; 4+ messages in thread
From: Ekaitz Zarraga @ 2020-12-05 15:17 UTC (permalink / raw)
  To: 43448@debbugs.gnu.org, guix-devel\@gnu.org

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: FreeCAD fails to compile
  2020-12-05 15:17 FreeCAD fails to compile Ekaitz Zarraga
@ 2020-12-05 16:50 ` Ekaitz Zarraga
  2020-12-05 16:55   ` John Soo
  0 siblings, 1 reply; 4+ messages in thread
From: Ekaitz Zarraga @ 2020-12-05 16:50 UTC (permalink / raw)
  To: guix-devel\@gnu.org, 43448@debbugs.gnu.org

Looks like this line, inherited from the previous definition, was giving some trouble:

>              (string-append "-DCMAKE_INSTALL_LIBDIR=\\"" (assoc-ref %outputs "out") "/lib\\"")


It was creating wrong variables (and wrong syntax too!):


  if(EXISTS "$ENV{DESTDIR}/tmp/guix-build-freecad-mine-0.18.5.drv-0/build/"/gnu/store/30rcpcdv7h6ak37wf30ijlbf9x2j6jyz-freecad-mine-0.18.5/lib"/libSMDS.so" AND
     NOT IS_SYMLINK "$ENV{DESTDIR}/tmp/guix-build-freecad-mine-0.18.5.drv-0/build/"/gnu/store/30rcpcdv7h6ak37wf30ijlbf9x2j6jyz-freecad-mine-0.18.5/lib"/libSMDS.so")


I think I'll manage to solve this myself.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: FreeCAD fails to compile
  2020-12-05 16:50 ` Ekaitz Zarraga
@ 2020-12-05 16:55   ` John Soo
  2020-12-05 21:39     ` Ekaitz Zarraga
  0 siblings, 1 reply; 4+ messages in thread
From: John Soo @ 2020-12-05 16:55 UTC (permalink / raw)
  To: Ekaitz Zarraga; +Cc: guix-devel\@gnu.org, 43448

[-- Attachment #1: Type: text/plain, Size: 273 bytes --]

     Nice work Ekaitz! 

 
I worked hard on freecad, it is quite a difficult program to package. That was a weird issue that I asked about on the freecad forums. Perhaps it is fixed upstream now, which would be excellent. Thanks for keeping it up to date!
 

 
- John
     

[-- Attachment #2: Type: text/html, Size: 329 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: FreeCAD fails to compile
  2020-12-05 16:55   ` John Soo
@ 2020-12-05 21:39     ` Ekaitz Zarraga
  0 siblings, 0 replies; 4+ messages in thread
From: Ekaitz Zarraga @ 2020-12-05 21:39 UTC (permalink / raw)
  To: John Soo; +Cc: guix-devel\@gnu.org, 43448

[-- Attachment #1: Type: text/plain, Size: 590 bytes --]

On Saturday, December 5, 2020 5:55 PM, John Soo <jsoo1@asu.edu> wrote:

> Nice work Ekaitz!
>
> I worked hard on freecad, it is quite a difficult program to package. That was a weird issue that I asked about on the freecad forums. Perhaps it is fixed upstream now, which would be excellent. Thanks for keeping it up to date!
>
> - John

Hey!
I think I found you post.
I'm hitting against the same wall. The funny thing is the thread says [SOLVED].
I have a couple of ideas but this thing is hard to build...

I'll fight with all my soul, and keep you posted.

Thanks for the support,
Ekaitz

[-- Attachment #2: Type: text/html, Size: 890 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-05 21:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-05 15:17 FreeCAD fails to compile Ekaitz Zarraga
2020-12-05 16:50 ` Ekaitz Zarraga
2020-12-05 16:55   ` John Soo
2020-12-05 21:39     ` Ekaitz Zarraga

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).