[Solved] Error Messages From freecad-daily

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
wandererfan
Veteran
Posts: 6326
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

[Solved] Error Messages From freecad-daily

Post by wandererfan »

I get the messages below when starting freecad-daily. Part, PD and TechDraw all work more or less, but with extra messages below. Draft & Arch can not be started.

Clearly something wrong in my config, but what? Missing environment variable? Bad config file somewhere? Any suggestions appreciated.

Qt5.11.2 is installed in /opt/Qt_5.11 using qt-unified-linux-x64-3.0.6-online.run from https://www.qt.io
Mint default Qt5 is 5.9.

Code: Select all

"During initialization the error /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.11' not found (required by /usr/local/lib/python2.7/dist-packages/PySide2/QtCore.so) occurred in /usr/lib/freecad-daily/Mod/Ship/InitGui.py
Please look into the log file for further information"
Same error for:
/usr/lib/freecad-daily/Mod/Draft/InitGui.py
/usr/lib/freecad-daily/Mod/Tux/InitGui.py
/usr/lib/freecad-daily/Mod/Plot/InitGui.py
/usr/lib/freecad-daily/Mod/Arch/InitGui.py

After switching to PD, I get these additional messages:

Code: Select all

Wizard shaft module cannot be loaded
Involute gear module cannot be loaded
Unknown command 'PartDesign_InvoluteGear'
Error in Profiles module
Unknown command 'Sketcher_ProfilesHexagon1'
Unknown command 'PartDesign_InvoluteGear'
After switching to Part, more messages.

Code: Select all

Features from CompoundTools package cannot be loaded. /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.11' not found (required by /usr/local/lib/python2.7/dist-packages/PySide2/QtGui.so)
Features from BOPTools package cannot be loaded. /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.11' not found (required by /usr/local/lib/python2.7/dist-packages/PySide2/QtCore.so)
Unknown command 'Part_JoinConnect'
Unknown command 'Part_JoinEmbed'
Unknown command 'Part_JoinCutout'
Unknown command 'Part_BooleanFragments'
Unknown command 'Part_SliceApart'
Unknown command 'Part_Slice'
Unknown command 'Part_XOR'
Unknown command 'Part_ExplodeCompound'
Unknown command 'Part_CompoundFilter'
OS: Linux Mint 19
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15697 (Git)
Build type: Release
Branch: master
Hash: dedaa807629ab25cf32977d30bf7610f1346aff7
Python version: 2.7.15rc1
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Canada (en_CA)
Last edited by wandererfan on Wed Jan 30, 2019 2:43 am, edited 1 time in total.
reox
Posts: 929
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: Error Messages From freecad-daily

Post by reox »

looks like freecad-daily loads the libs from /usr/lib/... and not /opt.

you could try to set LD_LIBRARY_PATH to the libs from qt 5.11
User avatar
wandererfan
Veteran
Posts: 6326
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Error Messages From freecad-daily

Post by wandererfan »

reox wrote: Sat Jan 26, 2019 3:33 pm you could try to set LD_LIBRARY_PATH to the libs from qt 5.11
Seems to have made things worse.

Code: Select all

huxster@huxley ~ $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/Qt_5.11/5.11.2/gcc_64/lib
huxster@huxley ~ $ /usr/bin/freecad-daily -l
FreeCAD 0.18, Libs: 0.18R15697 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2019
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Aborted (core dumped)
huxster@huxley ~ $ 
Also tried modifying "/etc/ld.so.conf.d" and running "ldconfig" but that didn't help either.

ldd says shiboken2 and pyside2 are looking for "/usr/lib/x86_64-linux-gnu/libshiboken2-python2.7.x86_64-linux-gnu.so.5.11 ". Maybe a symbolic link to /opt/Qt_5.11/5.11.2/gcc_64/lib/ from /ust/lib... will help.
reox
Posts: 929
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: Error Messages From freecad-daily

Post by reox »

i would guess the segfault happens because the versions are incompatible.
from what I see in the build logs on paa, it uses 5.5.1 - maybe 5.11.2 is too new?
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Error Messages From freecad-daily

Post by triplus »

I am not sure if the Qt 5.11 install is causing this by itself. Feels more like you have in addition pip installed PySide2 (wheel) and now PySide2 doesn't find the Qt 5.11, but an older (system provided) version of the Qt5. AppImage would still work though, that is if you would like to use FreeCAD Daily until you will find a proper solution to fix your environment.

P.S. If it would find it, you could i guess still expect potential troubles. As FreeCAD from the PPA was compiled against different version of PySide2/Qt5.
Last edited by triplus on Sun Jan 27, 2019 7:02 pm, edited 1 time in total.
User avatar
kkremitzki
Veteran
Posts: 2518
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: Error Messages From freecad-daily

Post by kkremitzki »

Is there a particular reason you need to use Qt 5.11?

If you're using the daily PPA, it looks like Linux Mint 19 should be getting the Ubuntu 18.04 packages, and the daily PPA provides PySide 2. So I would recommend removng the PySide 2 installation you have that's involved with /usr/local/lib/python2.7/dist-packages/PySide2/QtCore.so.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
wafi
Posts: 82
Joined: Sat Oct 15, 2016 8:45 am

Re: Error Messages From freecad-daily

Post by wafi »

Kurt
maybe you missed it, but pyside2 was compiled against Qt 5.11 by yourself in November last year.

I nearly tried now every trick stated in the forum to get freeCad running, but, as I interesting in CfD I always failed when trying to mesh, always when the program tried to get widges by Qtools. Also no chance to run the AppImage on my Linux Ubuntu 18.04 system.

I don know what to do, but I would appreciate if the "old" Qt4 versions would be available as normal download and for me it makes no sense to try to create new OpenFoam possibilities if meshing is not possible at all.
arcol
Posts: 223
Joined: Sun Nov 10, 2013 9:02 am

Re: Error Messages From freecad-daily

Post by arcol »

I created a new thread for my reply. Sorry for the noise here.

https://forum.freecadweb.org/viewtopic.php?f=4&t=33827
User avatar
kkremitzki
Veteran
Posts: 2518
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: Error Messages From freecad-daily

Post by kkremitzki »

wafi wrote: Tue Jan 29, 2019 8:46 am Kurt
maybe you missed it, but pyside2 was compiled against Qt 5.11 by yourself in November last year.
PySide 2 works with "up to" Qt 5.11, but the package will be compiled against whatever Qt version is available on the system, so for Ubuntu 18.04 based distros, that's Qt 5.9. If you want to use a different Qt version then SoQt and Pivy will have to be re-built.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
wandererfan
Veteran
Posts: 6326
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Error Messages From freecad-daily

Post by wandererfan »

triplus wrote:
reox wrote:
kkremitzki wrote:
Thank you for the hints. Everything is working again!

My notes for future reference:

Code: Select all

found pip "wheels"(?) for pyside2 & shiboken2
  - pip uninstall pyside2-5.11
  - pip uninstall shiboken2-5.11

Synaptic
  - completely remove freecad, freecad-daily
  - completely remove *pyside2* and *shiboken2*
  - remove *coin* 

freecad not found
freecad-daily not found

Synaptic
    refresh package information
    install freecad

freecad opens correctly

Synaptic
    install freecad-daily

freecad-daily opens correctly

cmake errors
    install pkg qttools5-dev
    pyside2 uic usr/local/bin sb /usr/bin

cmake works
Post Reply