unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Malte Frank Gerdes <malte.f.gerdes@gmail.com>
To: 43448@debbugs.gnu.org
Subject: bug#43448: FreeCAD fails to compile
Date: Tue, 20 Oct 2020 22:31:17 +0200	[thread overview]
Message-ID: <86h7qo8wru.fsf@gmail.com> (raw)
In-Reply-To: <87mu1q6ih9.fsf@gmail.com> (Malte Frank Gerdes's message of "Wed,  16 Sep 2020 13:58:42 +0200")

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

This patch defines the include paths for shiboken2, pyside2 and includes
the locations of the pyside2-tools binaries.

There's now another error:

--8<---------------cut here---------------start------------->8---
[ 69%] Building CXX object src/Gui/CMakeFiles/FreeCADGui.dir/WidgetFactory.cpp.o
cd /tmp/guix-build-freecad-0.18.4.drv-0/build/src/Gui && /gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0/bin/c++  -DBOOST_ALL_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_REGEX_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -DBUILD_ADDONMGR -DCMAKE_BUILD_TYPE=\"RelWithDebInfo\" -DFreeCADGui_EXPORTS -DHAVE_CONFIG_H -DHAVE_PYSIDE2 -DHAVE_SHIBOKEN2 -DHAVE_TBB -DOCC_CONVERT_SIGNALS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_SVG_LIB -DQT_UITOOLS_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_XML_LIB -DSPNAV_FOUND -D_OCC64 -I/tmp/guix-build-freecad-0.18.4.drv-0/build -I/tmp/guix-build-freecad-0.18.4.drv-0/build/src -I/tmp/guix-build-freecad-0.18.4.drv-0/freecad-0.18.4-checkout/src -I/tmp/guix-build-freecad-0.18.4.drv-0/freecad-0.18.4-checkout/src/Gui -I/tmp/guix-build-freecad-0.18.4.drv-0/freecad-0.18.4-checkout/src/Gui/Quarter -I/tmp/guix-build-freecad-0.18.4.drv-0/build/src/Gui -I/tmp/guix-build-freecad-0.18.4.drv-0/freecad-0.18.4-checkout/src/Gui/.. -I/tmp/guix-build-freecad-0.18.4.drv-0/build/src/Gui/.. -I/tmp/guix-build-freecad-0.18.4.drv-0/build/src/Gui/Language -I/tmp/guix-build-freecad-0.18.4.drv-0/build/src/Gui/propertyeditor -I/tmp/guix-build-freecad-0.18.4.drv-0/build/src/Gui/TaskView -I/tmp/guix-build-freecad-0.18.4.drv-0/build/src/Gui/Quarter -I/tmp/guix-build-freecad-0.18.4.drv-0/build/src/Gui/DAGView -I/gnu/store/azmwdwavv9r08zvzp200y8c6hkm0dsrr-eigen-3.3.7/include/eigen3 -I/gnu/store/q9rm8h9imazsq2c4qiv2yjpvlvliywqb-python-3.8.2/include/python3.8 -I/gnu/store/hcpcfn6b25ja5hdlvcw3flnapzhi7k3i-python-pyside-2-5.14.2.3/include/QtCore -I/gnu/store/hcpcfn6b25ja5hdlvcw3flnapzhi7k3i-python-pyside-2-5.14.2.3/include/QtGui -I/gnu/store/hcpcfn6b25ja5hdlvcw3flnapzhi7k3i-python-pyside-2-5.14.2.3/include/QtWidgets -isystem /gnu/store/kg1bc1ghars6qnw6zlc4igml2nqfbiy7-qtbase-5.14.2/include/qt5 -isystem /gnu/store/kg1bc1ghars6qnw6zlc4igml2nqfbiy7-qtbase-5.14.2/include/qt5/QtCore -isystem /gnu/store/kg1bc1ghars6qnw6zlc4igml2nqfbiy7-qtbase-5.14.2/lib/qt5/mkspecs/linux-g++ -isystem /gnu/store/kg1bc1ghars6qnw6zlc4igml2nqfbiy7-qtbase-5.14.2/include/qt5/QtWidgets -isystem /gnu/store/kg1bc1ghars6qnw6zlc4igml2nqfbiy7-qtbase-5.14.2/include/qt5/QtGui -isystem /gnu/store/kg1bc1ghars6qnw6zlc4igml2nqfbiy7-qtbase-5.14.2/include/qt5/QtOpenGL -isystem /gnu/store/kg1bc1ghars6qnw6zlc4igml2nqfbiy7-qtbase-5.14.2/include/qt5/QtPrintSupport -isystem /gnu/store/kvn3ip3aziw15yn2jv6ka7s1x1v2y7p4-qtsvg-5.14.2/include/qt5 -isystem /gnu/store/kvn3ip3aziw15yn2jv6ka7s1x1v2y7p4-qtsvg-5.14.2/include/qt5/QtSvg -isystem /gnu/store/kg1bc1ghars6qnw6zlc4igml2nqfbiy7-qtbase-5.14.2/include/qt5/QtNetwork -isystem /gnu/store/yqrjvsn778ydl6pc1p463alljhczxw8i-qttools-5.14.2/include/qt5 -isystem /gnu/store/yqrjvsn778ydl6pc1p463alljhczxw8i-qttools-5.14.2/include/qt5/QtUiTools -isystem /gnu/store/wajjrym3vyidi21zjcs6r8ad9xgxfj3k-qtx11extras-5.14.2/include/qt5 -isystem /gnu/store/wajjrym3vyidi21zjcs6r8ad9xgxfj3k-qtx11extras-5.14.2/include/qt5/QtX11Extras -isystem /gnu/store/kg1bc1ghars6qnw6zlc4igml2nqfbiy7-qtbase-5.14.2/include/qt5/QtXml  -Wall -Wextra -Wno-write-strings  -std=c++11 -D_OCC64 -O2 -g -DNDEBUG -fPIC   -pthread -fPIC -o CMakeFiles/FreeCADGui.dir/WidgetFactory.cpp.o -c /tmp/guix-build-freecad-0.18.4.drv-0/freecad-0.18.4-checkout/src/Gui/WidgetFactory.cpp
/tmp/guix-build-freecad-0.18.4.drv-0/freecad-0.18.4-checkout/src/Gui/WidgetFactory.cpp:79:11: fatal error: basewrapper.h: No such file or directory
 # include <basewrapper.h>
           ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [src/Gui/CMakeFiles/FreeCADGui.dir/build.make:4659: src/Gui/CMakeFiles/FreeCADGui.dir/WidgetFactory.cpp.o] Error 1
make -f src/Mod/Inspection/App/CMakeFiles/Inspection.dir/build.make src/Mod/Inspection/App/CMakeFiles/Inspection.dir/depend
make[2]: *** Waiting for unfinished jobs....
make[2]: Entering directory '/tmp/guix-build-freecad-0.18.4.drv-0/build'
--8<---------------cut here---------------end--------------->8---

This is what needs to be looked into next.


Malte


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: freecad-add-include-dirs.patch --]
[-- Type: text/x-patch, Size: 1188 bytes --]

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 2a7dfe470f..3c1f6a98f3 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -2481,7 +2481,19 @@ full programmatic control over your models.")
        (list
         "-DBUILD_QT5=ON"
         (string-append "-DCMAKE_INSTALL_LIBDIR="
-                       (assoc-ref %outputs "out") "/lib"))
+                       (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")
+        (string-append "-DPYSIDE_INCLUDE_DIR="
+                       (assoc-ref %build-inputs "python-pyside-2")
+                       "/include")
+        (string-append "-DSHIBOKEN_INCLUDE_DIR="
+                       (assoc-ref %build-inputs "python-shiboken-2")
+                       "/include"))
        #:phases
        (modify-phases %standard-phases
          (add-before 'configure 'restore-pythonpath

  parent reply	other threads:[~2020-10-20 20:32 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 [this message]
2020-11-13 16:12 ` bug#43448: Closed by 41170 John Soo
2020-12-05 15:17 ` bug#43448: FreeCAD fails to compile Ekaitz Zarraga

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=86h7qo8wru.fsf@gmail.com \
    --to=malte.f.gerdes@gmail.com \
    --cc=43448@debbugs.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).