QMessageBox on Fedora Rawhide

Having trouble installing or compiling FreeCAD? Get help here.
mdhill
Posts: 78
Joined: Mon Apr 24, 2017 7:37 pm

QMessageBox on Fedora Rawhide

Postby mdhill » Sat Jan 25, 2020 6:22 pm

Building from git fails with:

Code: Select all

‘QMessageBox’ has not been declared
The same build yesterday succeeded but FreeCAD would crash opening a file:

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
#0  /lib64/libc.so.6(+0x3cac0) [0x7fcc7b857ac0]
Today I tried flatpak-builder with FreeCAD git master and got the same QMessageBox error.


Mike
--
OS: "Fedora release 32 (Rawhide)" (GNOME/gnome)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19367 (Git)
Build type: Release
Branch: master
Hash: 26aed44d4fe92e711da8611c02edfe9e9c6f53b9
Python version: 2.7.17
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.9.1.oce-0.18
Locale: English/UnitedStates (en_US)
vocx
Posts: 3253
Joined: Thu Oct 18, 2018 9:18 pm

Re: QMessageBox on Fedora Rawhide

Postby vocx » Sat Jan 25, 2020 7:51 pm

mdhill wrote:
Sat Jan 25, 2020 6:22 pm
...
Python version: 2.7.17
Qt version: 4.8.7
OCC version: 6.9.1.oce-0.18
Yes, this just happened due to some changes upstream. I'm sure it will be resolved by the end of the day.

Besides that, I just want to point out that you are using obsolete packages. You should not use Python 2 nor Qt4 any more. Use Python 3 and Qt5.

Also, the OCCT "community edition" that you are using OCE 6.9.x has not been used in many years. You should be using a 7.x version, preferably OCCT 7.3.

OCCT 7.4 was released recently, but I'm not sure if packagers have it running well in every system yet, so I still advice to use 7.3.
Always add the important information to your posts if you need help.
To support the documentation effort, and code development, your donation is appreciated: paypal.
mdhill
Posts: 78
Joined: Mon Apr 24, 2017 7:37 pm

Re: QMessageBox on Fedora Rawhide

Postby mdhill » Sat Jan 25, 2020 8:55 pm

Thanks, perfect.

Mike
vocx
Posts: 3253
Joined: Thu Oct 18, 2018 9:18 pm

Re: QMessageBox on Fedora Rawhide

Postby vocx » Sun Jan 26, 2020 5:02 pm

This problem should be solved with git commit a226801f1b.

See Compile Fail Current Master.
Always add the important information to your posts if you need help.
To support the documentation effort, and code development, your donation is appreciated: paypal.
mdhill
Posts: 78
Joined: Mon Apr 24, 2017 7:37 pm

Re: QMessageBox on Fedora Rawhide

Postby mdhill » Mon Jan 27, 2020 1:02 pm

Works, thanks.
mdhill
Posts: 78
Joined: Mon Apr 24, 2017 7:37 pm

Re: QMessageBox on Fedora Rawhide

Postby mdhill » Mon Jan 27, 2020 3:06 pm

Also fixed the ancient dependency issue by forcing the upgrade of SIMVoleon, which was stuck on python2.