LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-11-2023, 04:16 PM   #1
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 380

Rep: Reputation: Disabled
FreeCAD headaches- Broken PySide2 and Qt needs to be upgraded to Qt6.


FreeCAD (Slackbuild) will not compile because PySide2 is missing...

PySide2 won't build because the 5.x (Slackbuild) version doesn't support 'DragMove'...

PySide 6.x won't build because it requires Qt6...

I'm building a Qt6 package right now from the Slackbuild...

Question 1: To install Qt6 do I need to remove Qt5 or will they play nicely together?

Question 2: Does anyone have a Slackbuild for PySide 6.X?
 
Old 08-11-2023, 08:03 PM   #2
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 917

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Quote:
Originally Posted by arfon View Post
FreeCAD (Slackbuild) will not compile because PySide2 is missing...

PySide2 won't build because the 5.x (Slackbuild) version doesn't support 'DragMove'...
Can you be more verbose about your problem with pyside2? It builds fine here, as does shiboken2 on which it depends.

chris
 
Old 08-11-2023, 08:33 PM   #3
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 380

Original Poster
Rep: Reputation: Disabled
On a brand new, (installed 6 hours ago) Slackware64-current box...

Compilation fails with four errors-

Code:
In file included from /tmp/SBo/pyside-setup-opensource-src-5.15.2/sources/pyside2/build/PySide2/QtGui/PySide2/QtGui/qdragmoveevent_wrapper.cpp:65:
/tmp/SBo/pyside-setup-opensource-src-5.15.2/sources/pyside2/build/PySide2/QtGui/PySide2/QtGui/qdragmoveevent_wrapper.h:55:220: error: no member named 'DragMove' in 'QOpenGLShader'; did you mean simply 'DragMove'?
    QDragMoveEventWrapper(const QPoint & pos, QFlags<Qt::DropAction> actions, const QMimeData * data, QFlags<Qt::MouseButton> buttons, QFlags<Qt::KeyboardModifier> modifiers, QFlags<QOpenGLShader::ShaderTypeBit> type = QOpenGLShader::DragMove);


In file included from /tmp/SBo/pyside-setup-opensource-src-5.15.2/sources/pyside2/build/PySide2/QtGui/PySide2/QtGui/qdragmoveevent_wrapper.cpp:65:
/tmp/SBo/pyside-setup-opensource-src-5.15.2/sources/pyside2/build/PySide2/QtGui/PySide2/QtGui/qdragmoveevent_wrapper.h:55:213: error: no viable conversion from 'QEvent::Type' to 'QFlags<QOpenGLShader::ShaderTypeBit>'
    QDragMoveEventWrapper(const QPoint & pos, QFlags<Qt::DropAction> actions, const QMimeData * data, QFlags<Qt::MouseButton> buttons, QFlags<Qt::KeyboardModifier> modifiers, QFlags<QOpenGLShader::ShaderTypeBit> type = QOpenGLShader::DragMove);


/tmp/SBo/pyside-setup-opensource-src-5.15.2/sources/pyside2/build/PySide2/QtGui/PySide2/QtGui/qdragmoveevent_wrapper.cpp:105:240: error: no matching constructor for initialization of 'QDragMoveEvent'
QDragMoveEventWrapper::QDragMoveEventWrapper(const QPoint & pos, QFlags<Qt::DropAction> actions, const QMimeData * data, QFlags<Qt::MouseButton> buttons, QFlags<Qt::KeyboardModifier> modifiers, QFlags<QOpenGLShader::ShaderTypeBit> type) : QDragMoveEvent(pos, actions, data, buttons, modifiers, type)



/tmp/SBo/pyside-setup-opensource-src-5.15.2/sources/pyside2/build/PySide2/QtGui/PySide2/QtGui/qdragmoveevent_wrapper.cpp:205:73: error: no member named 'DragMove' in 'QOpenGLShader'
        ::QFlags<QOpenGLShader::ShaderTypeBit> cppArg5 = QOpenGLShader::DragMove;

A post in the QT forums (https://forum.qt.io/topic/144731/pys...-qopenglshader) said:
Quote:
PLease use the current version 6.5; PySide2 does not support this.

Last edited by arfon; 08-11-2023 at 08:40 PM.
 
Old 08-11-2023, 09:06 PM   #4
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 917

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Quote:
Originally Posted by arfon View Post
On a brand new, (installed 6 hours ago) Slackware64-current box...
SlackBuilds from SBo are for Slackware(64)-15.0, not -current
 
Old 08-11-2023, 09:45 PM   #5
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 380

Original Poster
Rep: Reputation: Disabled
If you use PinkMist's SBOtools and Ponce's repo, they build for current.

Not without problems sometimes.

If current is the basis future Slackware stable, it looks like qt needs to be bumped up to 6

Last edited by arfon; 08-11-2023 at 09:48 PM.
 
Old 08-11-2023, 09:49 PM   #6
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,680

Rep: Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796
we have qt6 in SBo and they can co-exist with qt5 in -current
don't expect qt6 in -current as we don't have packages in -current that depends on it for now
 
1 members found this post helpful.
Old 08-12-2023, 12:13 AM   #7
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 380

Original Poster
Rep: Reputation: Disabled
Quote:
Slackware package /tmp/qt6-6.5.0-x86_64-1_SBo.tgz created.
I built qt6... I just need to know if I should remove qt5 before installing.

Quote:
Originally Posted by willysr View Post
and they can co-exist with qt5
THAT'S what I needed. THANKS!

Last edited by arfon; 08-12-2023 at 12:30 AM.
 
Old 08-12-2023, 12:52 AM   #8
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 380

Original Poster
Rep: Reputation: Disabled
Bah..... Even after installing Qt6, PySide2 still uses Qt5.

Looks like I'm going to have to build Shiboken6 & PySide6
 
Old 08-12-2023, 05:28 AM   #9
laprjns
Member
 
Registered: Oct 2005
Location: Connecticut USA
Distribution: SalixOS
Posts: 206

Rep: Reputation: 108Reputation: 108
Maybe give the flatpak package a try, https://flathub.org/apps/org.freecadweb.FreeCAD

Last edited by laprjns; 08-13-2023 at 06:16 AM. Reason: Oops, typo flatpac should be flatpak
 
1 members found this post helpful.
Old 08-12-2023, 05:38 AM   #10
mickski56
Member
 
Registered: Mar 2018
Distribution: Slackware
Posts: 74

Rep: Reputation: Disabled
There is a patch for qt5 here https://raw.githubusercontent.com/Op...okenness.patch it applies to qt5-5.15.10_20230614_d2861d63 and allows to build pyside2 5.15.2

hth
 
3 members found this post helpful.
Old 08-12-2023, 06:20 AM   #11
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 380

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by laprjns View Post
Maybe give the flatpac package a try
I'm running the AppImage... I was feeling cocky about figuring out why the slackbuild was failing. But alas, dependency hell got me again.

I <3 AppImages!
 
Old 08-12-2023, 11:57 AM   #12
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
2 possibilities for Appimage:
- https://github.com/FreeCAD/FreeCAD-B.../weekly-builds
- https://github.com/realthunder/FreeCAD/releases
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] qt6 and pkgconfig files Keith Hedger Linux From Scratch 7 06-02-2023 06:09 AM
[SOLVED] QT6 3rensho Slackware 9 10-13-2022 06:37 AM
LXer: Hands-On with Fedora Media Writer 5.0: New Qt6 UI, Fedora Kinoite Support, and More LXer Syndicated Linux News 0 05-12-2022 04:15 PM
LXer: PDF Mix Tool 1.0 Released With Overhauled Interface, PDF Metadata Editing And Qt6 Support LXer Syndicated Linux News 0 06-15-2021 11:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration