Package Details: freecad 0.18.16154-1

Git Clone URL: https://aur.archlinux.org/freecad.git (read-only, click to copy)
Package Base: freecad
Description: A general purpose 3D CAD modeler
Upstream URL: https://www.freecadweb.org/
Licenses: LGPL
Submitter: bluewind
Maintainer: gbs
Last Packager: gbs
Votes: 191
Popularity: 9.58
First Submitted: 2018-03-22 09:25
Last Updated: 2020-01-09 23:40

Latest Comments

1 2 3 4 5 6 ... Next › Last »

alexisju commented on 2020-01-25 16:38

When could we hope to have Freecad back in the community repository?... It is a popular package, but heavy to compile... it was so more confortable to have the binary.

doragasu commented on 2020-01-10 16:21

It builds and works again!

Many thanks to all who contributed!

JohnOfArch commented on 2020-01-01 20:55

The following patch lets it build as of 01/01/20 and uses the git release tag:

diff --git a/PKGBUILD b/PKGBUILD
index 6d25743..d39a75a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,10 +8,7 @@
 # Contributor: gborzi

 pkgname=freecad
-_pkgver=0.18
-_count=16148
-_commit=9c2cf7283bc71107202e63b9d8cd0b7eb8c0e531
-pkgver=$_pkgver.$_count
+pkgver=0.18.4
 pkgrel=2
 pkgdesc='A general purpose 3D CAD modeler'
 arch=('x86_64')
@@ -23,7 +20,7 @@ depends=('boost-libs' 'curl' 'opencascade>=7.2' 'xerces-c' 'libspnav' 'glew' 'ne
 makedepends=('boost' 'eigen' 'gcc-fortran' 'swig' 'xerces-c' 'desktop-file-utils' 'git'
              'cmake' 'coin>=4.0.0a' 'python-shiboken2' 'pyside2' 'shiboken2')
 optdepends=('python-matplotlib' 'graphviz' 'openscad')
-source=("git+https://github.com/FreeCAD/FreeCAD.git#commit=$_commit"
+source=("git+https://github.com/FreeCAD/FreeCAD.git#tag=$pkgver"
         "${pkgname}.desktop" "${pkgname}.xml")
 sha256sums=('SKIP'
             '617968d7bbd1da71bdedaed1b66c5d6eaf24e0fb34678b93f5d925d370c66296'
@@ -60,7 +57,8 @@ build() {
         -DFREECAD_USE_EXTERNAL_PIVY=ON \
         -DFREECAD_USE_QT_FILEDIALOG=ON \
         -DBUILD_QT5=ON \
-        -DPYTHON_EXECUTABLE=/usr/bin/python
+        -DPYTHON_EXECUTABLE=/usr/bin/python \
+       -DPYSIDE2RCCBINARY=/usr/bin/rcc
     make
 }

ccorn commented on 2019-12-23 23:38

It seems the new syntax is rcc -g python. So I create a wrapper script:

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -29,6 +29,17 @@ sha256sums=('SKIP'
             '617968d7bbd1da71bdedaed1b66c5d6eaf24e0fb34678b93f5d925d370c66296'
             '1d98fa4e62f352966eb357c93f54b1f0bf562931e8323bf70a83b5e221a5fb14')

+prepare() {
+    cd "${srcdir}/FreeCAD"
+
+    # Pyside2 5.14 got rid of pyside2-rcc in favor of rcc -g python
+    cat >pyside2-rcc <<'EOS'
+#! /bin/bash
+/usr/bin/rcc -g python "$@"
+EOS
+    chmod +x pyside2-rcc
+}
+
 build() {
     cd "${srcdir}/FreeCAD"
     PATH=/usr/bin:$PATH # OpenCascade has problems if /bin comes before /usr/bin in the $PATH
@@ -41,6 +52,7 @@ build() {
         -DFREECAD_USE_EXTERNAL_PIVY=ON \
         -DFREECAD_USE_QT_FILEDIALOG=ON \
         -DBUILD_QT5=ON \
+        -DPYSIDE2RCCBINARY="$PWD/pyside2-rcc" \
         -DPYTHON_EXECUTABLE=/usr/bin/python
     make
 }

dviktor commented on 2019-12-23 13:43

I've successfully built FreeCAD with rcc fix but during startup I have the following errors:

During initialization the error invalid syntax (Draft_rc.py, line 1) occurred in /usr/lib/freecad/Mod/Draft/InitGui.py
Please look into the log file for further information
During initialization the error invalid syntax (Ship_rc.py, line 1) occurred in /usr/lib/freecad/Mod/Ship/InitGui.py
Please look into the log file for further information
During initialization the error invalid syntax (Tux_rc.py, line 1) occurred in /usr/lib/freecad/Mod/Tux/InitGui.py
Please look into the log file for further information
During initialization the error invalid syntax (Plot_rc.py, line 1) occurred in /usr/lib/freecad/Mod/Plot/InitGui.py
Please look into the log file for further information
During initialization the error invalid syntax (Arch_rc.py, line 1) occurred in /usr/lib/freecad/Mod/Arch/InitGui.py
Please look into the log file for further information

So these workbenches doesn't work as expected. Shiboken problem is not presented, however

dviktor commented on 2019-12-23 12:05

Just add -DPYSIDE2RCCBINARY=/usr/bin/rcc to cmake options in PKGBUILD to resolve issue with PYSIDE2RCCBINARY-NOTFOUND

remspoor commented on 2019-12-21 20:52

Build failed as 'X.h' was missing. I guess we could use a (build)dependency for 'xorgproto'

lonaowna commented on 2019-12-19 16:58

This package does not build with PySide2 5.14 (currently in testing). It fails with the following message:

[  4%] Generating Material_rc.py
/bin/sh: PYSIDE2RCCBINARY-NOTFOUND: command not found

See FreeCAD issue 4229 for more information.

greyltc commented on 2019-12-18 15:18

The build fails for me today with

FemPostPipeline.cpp:(.text._ZN23vtkFiltersCore_AutoInitD2Ev[_ZN23vtkFiltersCore_AutoInitD5Ev]+0x5): undefined reference to `vtkFiltersParallelDIY2_AutoInit_Destruct()'

Anyone have a fix for that?

dviktor commented on 2019-11-30 17:53

The strange thing is that the problem with Shiboken persists even after installing latest git snapshot of PySide and Shiboken though it was stated that 5.14 branch will address this issue