Package Details: freecad-git 1:0.18.r26.g51fcdd2c0-2

Git Clone URL: https://aur.archlinux.org/freecad-git.git (read-only)
Package Base: freecad-git
Description: A general purpose 3D CAD modeler - git checkout
Upstream URL: https://www.freecadweb.org/
Licenses: LGPL
Conflicts: freecad
Provides: freecad
Submitter: gborzi
Maintainer: greyltc (lonaowna)
Last Packager: lonaowna
Votes: 71
Popularity: 1.017291
First Submitted: 2012-03-03 13:46
Last Updated: 2019-03-15 19:24

Latest Comments

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

dtbaumann commented on 2019-03-16 10:02

the build block below works without python2

depends=('boost-libs' 'curl' 'opencascade>=7.2' 'xerces-c' 'libspnav' 'glu' 'netcdf'
     'shared-mime-info' 'hicolor-icon-theme' 'jsoncpp'
     'qt5-base' 'qt5-declarative' 'qt5-svg' 'qt5-tools'
     'med' 'python-pivy' 'python-pyside2' 'python-matplotlib' 'pyside2-tools')
makedepends=('boost' 'eigen' 'gcc-fortran' 'swig' 'xerces-c' 'desktop-file-utils' 'git'
         'cmake' 'coin' 'python-shiboken2' 'pyside2' 'shiboken2')
optdepends=('python-matplotlib' 'python-pyqt5' 'graphviz' 'openscad')

build() {
    cd "${srcdir}/freecad-code"
    cmake . \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX="/usr/lib/freecad" \
        -DCMAKE_INSTALL_DOCDIR="/usr/share/freecad/doc" \
        -DCMAKE_INSTALL_DATADIR="/usr/share/freecad" \
        -DFREECAD_USE_OCC_VARIANT="Official Version" \
        -DFREECAD_USE_EXTERNAL_PIVY=ON \
        -DBUILD_QT5=ON \
        -DBUILD_QT5_WEBKIT=OFF \
        -DBUILD_START=OFF \
        -DBUILD_WEB=OFF\
        -DPYTHON_EXECUTABLE=/usr/bin/python3 \
        -DPYTHON_LIBRARY=/usr/lib/libpython3.7m.so \
        -DPYTHON_INCLUDE_DIR=/usr/include/python3.7m \
        -DPYTHON_PACKAGES_PATH=/usr/lib/python3.7/site-packages

    make
}

lonaowna commented on 2019-03-15 19:22

@greyltc thanks! I've fixed the dependency issues mentioned below.

greyltc commented on 2019-03-15 16:55

Yes, definitely freecad-python3-git should be redundant with this package. And I think it would be great if there was no trace of python2 here (if possible).

greyltc commented on 2019-03-15 16:53

Great, thanks @lonaowna, you're a co-maintainer now!

lonaowna commented on 2019-03-15 15:35

@greyltc I could also help out. It might be also be time to look into merging with freecad-python3-git which seem to works pretty nice now (freecad has also switched to python3).

greyltc commented on 2019-03-15 14:56

@zegentz, would you like to co-maintain this?

zegentz commented on 2019-03-10 08:30

Oh my, this was a !!FUN!! package to get to work.

Soooo, you guys are missing a couple dependencies when it comes to pyside and shiboken (and a couple others). I can't tell you which, because I ended up installing every AUR package with those two in it's name:

$ pacman -Q | grep "coin\|shiboken\|webkit\|webengine\|pyside\|qtpy"
coin 3.1.3-18
coin-docs 3.1.3-18
kdewebkit 5.56.0-1
pyqtwebengine-common 5.12-2
pyside-tools-common 0.2.15-3
pyside2 5.12.1-1
pyside2-tools 5.12.1-1
python-pyqtwebengine 5.12-2
python-pyside 1.2.4-9
python-pyside-common 1.2.4-9
python-pyside-tools 0.2.15-3
python-shiboken 1.2.4-4
python-shiboken2 5.12.1-1
python2-pyqtwebengine 5.12-2
python2-pyside 1.2.4-9
python2-pyside-tools 0.2.15-3
python2-pyside2 5.12.1-1
python2-qtpy 1.6.0-1
python2-shiboken 1.2.4-4
python2-shiboken2 5.12.1-1
qt5-webengine 5.12.1-3
qt5-webkit 5.212.0alpha2-23
qtwebkit-bin 2.3.4-9
shiboken 1.2.4-4
shiboken2 5.12.1-1
webkit2-sharp 2.10.9-2
webkit2gtk 2.22.7-1

Then that still didn't work, so I manually compiled the {python-,}shiboken2 packages in the extra/community repos, but with a slightly modified PKGBUILD to allow for support for llvm-svn:

Index: PKGBUILD
===================================================================
--- PKGBUILD    (revision 347468)
+++ PKGBUILD    (working copy)
@@ -4,7 +4,6 @@
 pkgbase=shiboken2
 pkgname=(shiboken2 python-shiboken2)
 _qtver=5.12.1
-_clangver=7.0.1
 pkgver=${_qtver/-/}
 pkgrel=1
 arch=(x86_64)
@@ -30,7 +29,7 @@
 }

 package_shiboken2() {
-  depends=(clang=$_clangver llvm libxslt qt5-xmlpatterns)
+  depends=(clang llvm libxslt qt5-xmlpatterns)

   cd build
   make DESTDIR="$pkgdir" install

And then it compiled, but the web browser didn't work! Gave an error along the line of WebGui module not found, or something like that. So I installed a couple packages which I thought might fix the issue (alas to no avail).

Then I just did this and it worked:

diff --git a/PKGBUILD b/PKGBUILD
index a8726ce..2c56996 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@

 _appname=freecad
 pkgname="${_appname}-git"
-pkgver=0.17.r1484.g1e6818b6f
+pkgver=0.17.r2570.g6363c90a2
 pkgrel=1
 epoch=1
 pkgdesc='A general purpose 3D CAD modeler - git checkout'
@@ -38,9 +38,9 @@ build() {
          -DFREECAD_USE_OCC_VARIANT="Official Version" \
           -DFREECAD_USE_EXTERNAL_PIVY=ON \
           -DBUILD_QT5=ON \
-          -DBUILD_QT5_WEBKIT=OFF \
+          -DBUILD_QT5_WEBKIT=ON \
           -DPYTHON_EXECUTABLE=/usr/bin/python2 \
-          -DBUILD_WEB=OFF
+          -DBUILD_WEB=ON

     make
 }

And it worked! Luckly I don't have to care about deps, cause I installed everything with web{kit,gui,engine} in it's name.

jagaudin commented on 2019-02-15 02:21

The package depends on python2-netcdf4. Please add this to the list of dependencies.

eschwartz commented on 2018-12-14 17:47

It's much more concerning that qtwebkit is for qt4, as is python2-pyside, so this PKGBUILD was switched to use -DBUILD_QT5=ON without switching any of the dependencies.

lonaowna commented on 2018-12-12 12:15

Please make this depend on qt5-webkit instead of qtwebkit (like freecad-qt5-git does). The former is maintained and available from the official repositories.