LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-18-2022, 09:15 AM   #1
symbolicM
LQ Newbie
 
Registered: Aug 2022
Posts: 16

Rep: Reputation: 1
Question FreeCAD Appimage fail to launch Slackware 15


cross posted from https://forum.freecadweb.org/viewtopic.php?f=8&t=71968
Quote:
Slackware 15 and FreeCAD 20.1 AppImage
Postby symbolicM » 18 Sep 2022 10:52

I'm new to Slackware so this may just be my ignorance but I noticed when upgrading Slackware 15 (installed from live USB) with security fixes that FreeCAD AppImage no longer launched.
Long story short; I am now able to launch the latest FreeCAD AppImages if I run it via sudo.

https://forum.freecadweb.org/viewtopic. ... 04#p625479

Recording my experience here in case anyone is on a similar path.

The situation is obviously not ideal from a security standpoint. Any advice appreciated.
More detail follows.

Initially I tried to avoid using the direct download appimages from freecadweb.org but being new to the operating system I had no luck in installing FreeCAD from slackbuilds.org.

The whole purpose of moving to Slackware from Linux Mint was to ensure a secure and stable environment so that I could gain competency with FreeCAD and help build a better tomorrow.

I feel the stability fine; the system does not go into a kernal panic (almost) every time I shutdown like it used to with Mint, but running FreeCAD as sudo is a problem.

Operating System: Slackware 15.0
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.3
Kernel Version: 5.15.38 (64-bit)
Graphics Platform: Wayland
Processors: 2 × Intel® Core™2 Duo CPU E7500 @ 2.93GHz
Memory: 3.7 GiB of RAM
Graphics Processor: Mesa DRI Intel® G41

You may notice that I've not upgraded the kernal from that which was supplied by the live USB version of Slackware 15. This is because I am a coward and don't want to deal with the lilo dark magic, but, if that is the issue that is causing the appimages to fail to launch I will get to grips with it.

Just so you know, I have other appimages of tutanota, obsidian and remnote that launch without issue.

In truth, I'd much prefer a nice stable install from source with all the assistance I can muster to the cause.

Last edited by symbolicM; 09-18-2022 at 09:29 AM.
 
Old 09-18-2022, 01:28 PM   #2
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,070

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Haven't ever used FreeCAD, but I downloaded the appimage and it starts just fine without sudo. OK, I'm on a fully upgraded -current, not slackware-15, but I doubt that's what make the difference.

Just a thought - what are the permissions for your appimage file? It ought to be -rwxr-xr-x allowing all users to run the file. If you for some reason downloaded it as root, it might be that you don't have permission to run it as user, only as owner.

BTW, there's no lilo black magic, and since you seem to think about security, you should upgrade the kernel when there are security-related upgrades. In slackware-15 (stable), kernels are upgraded for a reason.
 
Old 09-18-2022, 07:09 PM   #3
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
It launches and runs fine here on Slackware 15. Do you make it executable? If so, what errors do you get when launching from the terminal?
 
1 members found this post helpful.
Old 09-19-2022, 01:16 AM   #4
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 961

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
Originally Posted by symbolicM View Post
being new to the operating system I had no luck in installing FreeCAD from slackbuilds.org.
The tricky part with installing applications from SlackBuilds.org is that you will need to resolve all recursive dependencies first. Luckily, there are tools that will do that for you, I prefer slpkg myself and have successfully installed FreeCAD on Slackware 15.0 some month ago with:

slpkg -s sbo FreeCAD

But as others have said, the appimage probably also works fine in 15.0.

regards Henrik
 
Old 09-19-2022, 03:23 AM   #5
symbolicM
LQ Newbie
 
Registered: Aug 2022
Posts: 16

Original Poster
Rep: Reputation: 1
thanks for the suggestions.
over on FreeCAD thread someone recommended I run the appimage with a --write-log parameter.
Having done so I can report that

~/.local/share/FreeCAD/FreeCAD.log reads — in pertinent part — as follows:

Quote:
Log: Init: App::FreeCADInit.py done
Log: Init: Creating Gui::Application and QApplication
Log: Could not find the Qt platform plugin "wayland" in ""
Log: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, minimal, minimalegl, offscreen, vnc, webgl, xcb.
Since I did not download the appimages as superuser slash sudo what is preventing access to Qt wayland?
 
Old 09-19-2022, 03:38 AM   #6
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435
I dislike most automation especially in deep level work so I never use anyuthing that would even attempt to resolve dependencies behind my back. Looking at the slackbuilds.org docs on FreeCAD I notice dependencies are needed to be resolved

"This requires: shiboken2, xerces-c, pyside2, Pivy, OpenCASCADE"

The way I use slackbuilds.org is to open those links for dependencies in new tabs and install each, working backwards till I get to the main bit, in this case, FreeCAD. I haven't checked to see if any of those dependencies have their own dependencies and while such layers can be a bit of a pita, it's pretty rare with Full Recommended Install and worth it to have a system that only does exactly what I want, no more, no less. Done this way the base system is never at risk. At worst the app won't launch or may launch with some non-functioning parts. In my view that is vastly preferable to messing with who-knows-what when 55 libraries and apps are automated to remove and reinstall because somebody else said it should work that way. In my view that can be a nightmare to troubleshoot when things go badly.

FWIW I only have a few appimage devices like BalenaEtcher but it and they run great as long as permissions are correctly set on a Full Recommended Install. For example, while BalenaEtcher will run as User, I tend to launch it with root privileges the same way that's wise for any such software like K3B.

Best wishes and welcome to Slackware LQN

EDIT: I just noticed you're using Wayland which I don't use yet for this exact reason. IMHO Wayland is likely the future but it's pretty beta in the present.

Last edited by enorbet; 09-19-2022 at 03:41 AM.
 
2 members found this post helpful.
Old 09-19-2022, 09:33 AM   #7
symbolicM
LQ Newbie
 
Registered: Aug 2022
Posts: 16

Original Poster
Rep: Reputation: 1
solution

Quote:
I just noticed you're using Wayland which I don't use yet for this exact reason. IMHO Wayland is likely the future but it's pretty beta in the present.
My adventures in chmod were fruitless but when I read this I logged out of the wayland session and logged back in using X11: Success!

I am happy to report that the AppImage launched without issue.

I will now mark this and the FreeCAD forum thread as solved.

Is there some houskeeping / bug-reporting a concientious linux user should do?
 
1 members found this post helpful.
Old 09-19-2022, 09:38 AM   #8
symbolicM
LQ Newbie
 
Registered: Aug 2022
Posts: 16

Original Poster
Rep: Reputation: 1
Thank you all for being generous with your attention!

Much appreciated,
symbolic Mark

Last edited by symbolicM; 09-19-2022 at 09:39 AM.
 
Old 09-19-2022, 09:48 AM   #9
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by symbolicM View Post
My adventures in chmod were fruitless but when I read this I logged out of the wayland session and logged back in using X11: Success!

I am happy to report that the AppImage launched without issue.

I will now mark this and the FreeCAD forum thread as solved.

Is there some houskeeping / bug-reporting a concientious linux user should do?
You could report it to the FreeCAD development team, but it's quite possible that the AppImage isn't designed to work on Wayland.
 
Old 09-19-2022, 09:50 AM   #10
prejudices_mars
Member
 
Registered: Feb 2022
Distribution: Slackware
Posts: 79

Rep: Reputation: 49
The AppImage creator was complaining exactly about this! The development stuff should always be left for guinea pigs using Arch/Fedora it has no place in Slackware.
 
  


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] FreeCAD and librecad fail to compile prejudices_mars Slackware 12 02-18-2022 07:49 AM
[SOLVED] ZOHO Mail Appimage Will Not Launch From The Desktop system001 Linux - Software 4 03-14-2019 10:59 AM
FreeCAD build fail under slackware 14.0 marbangens Slackware 15 11-03-2012 06:39 AM

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

All times are GMT -5. The time now is 03:03 PM.

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