FreeCAD flatpak

Michael Hill mdhillca at gmail.com
Sat Sep 15 15:39:06 UTC 2018


When FreeCAD is a flatpak I'll be able to do work using Silverblue. Dave
King created the bulk of the manifest at GUADEC. Here is how it fails...

Qt 4:
Based on org.freedesktop.Platform 18.08 with qt4 built explicitly, FreeCAD
fails with this error:

[  5%] Linking CXX shared library ../../lib/libFreeCADBase.so
/usr/lib/gcc/x86_64-unknown-linux-gnu/8.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld:
cannot find -lmpi_cxx
/usr/lib/gcc/x86_64-unknown-linux-gnu/8.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld:
cannot find -lmpi
/usr/lib/gcc/x86_64-unknown-linux-gnu/8.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld:
cannot find -lxerces-c
/usr/lib/gcc/x86_64-unknown-linux-gnu/8.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld:
cannot find -lboost_filesystem
/usr/lib/gcc/x86_64-unknown-linux-gnu/8.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld:
cannot find -lboost_program_options
/usr/lib/gcc/x86_64-unknown-linux-gnu/8.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld:
cannot find -lboost_regex
/usr/lib/gcc/x86_64-unknown-linux-gnu/8.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld:
cannot find -lboost_signals
/usr/lib/gcc/x86_64-unknown-linux-gnu/8.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld:
cannot find -lboost_system
/usr/lib/gcc/x86_64-unknown-linux-gnu/8.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld:
cannot find -lboost_thread
collect2: error: ld returned 1 exit status
make[2]: *** [src/Base/CMakeFiles/FreeCADBase.dir/build.make:1581:
lib/libFreeCADBase.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:680:
src/Base/CMakeFilesg/FreeCADBase.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
Error: module freecad: Child process exited with code 2

These libraries are all built from the manifest and show up in /app/lib.
Dave thought this issue would be fixed with a newer CMake, but I've added
CMake 3.12.2 at the top of the modules section with no improvement.

Qt 5:
Alternatively I've tried it with Qt 5 based on org.kde.Platform 5.11. It
fails on the second-last dependency (Pyside2), but with that commented out
in the manifest, the FreeCAD failure is the same (except with version 6.2.0
instead of 8.2.0).

The Pyside2 failure looks like this:

https://bugreports.qt.io/browse/PYSIDE-787

Suggestions? Would a GTK+ port be less work?

Thanks,

Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/flatpak/attachments/20180915/a40c7834/attachment.html>


More information about the Flatpak mailing list