realthunder / FreeCAD

Link branch FreeCAD
Other
747 stars 46 forks source link

[Problem] How to get realthunder FreeCAD working on ChromeOS Linux? #1003

Closed psommerfeld closed 2 months ago

psommerfeld commented 2 months ago

Is there an existing issue for this?

Version

0.20 (Release)

Full version info

n/a (haven't been able to install on ChromeOS Linux)

Subproject(s) affected?

None

Problem description

The main FreeCAD branch works on the ChromeOS Linux! I found the package on FlatHub. I've been using the realthunder fork of FreeCAD up to now as I find the UI and a few other things nicer to use. Trying to install the Linux AppImage release on this same Linux fails with "AppImage: cannot execute binary file". The only thing I know so far is that I downloaded the x86 binary, which my ChromeOS processor also is (i7). Does anyone know what it would take to get the realthunder branch working on ChromeOS Linux?

Anything else?

No response

Code of Conduct

psommerfeld commented 2 months ago

Turns out I had to copy the AppImage to another location, instead of run it directly out of the mounted folder, and then it would start:

$ cp /mnt/chromeos/MyFiles/Downloads/FreeCAD-Link-Stable-Linux-x86_64-py3.11-20240407.AppImage .
$ ./FreeCAD-Link-Stable-Linux-x86_64-py3.11-20240407.AppImage 
/tmp/.mount_FreeCAT4bZGU
FreeCAD 0.21.0, Libs: 2024.409.0R14555 (Git shallow)

Still some warnings/errors on startup:

Addon Manager Warning: Could not import QtWebEngineWidgets -- README data will display as text-only
0.990465 <asm3.main> init_gui.py(14): no solver backend found
libpci.so.3: cannot open shared object file: No such file or directory
psommerfeld commented 2 months ago

Doing sudo apt install pciutils got rid of the QtWebEngineWidgets and libpci warnings. Still have the 'no solver backend found' error, but I always had this same error on my Mac M1

psommerfeld commented 2 months ago

At one point realthunder FreeCAD wouldn't start. Running from terminal, I got:

/usr/local/bin$ ./FreeCAD-Link-Stable-Linux-x86_64-py3.11-20240407.AppImage 
dlopen(): error loading libfuse.so.2

AppImages require FUSE to run. 
You might still be able to extract the contents of this AppImage 
if you run it with the --appimage-extract option. 
See https://github.com/AppImage/AppImageKit/wiki/FUSE 
for more information

How strange. Suddenly libfuse2 is missing? Reinstalling libfuse2 fixed the problem: ps@penguin:/usr/local/bin$ sudo apt install libfuse2

psommerfeld commented 2 months ago

The main branch FreeCAD is openable from the ChromeOS Launcher, but realthunder wasn't installed by FlatHub, so I wrote this .desktop file in ~/.local/share/applications:

~/.local/share/applications$ cat FreeCAD\ link.desktop 
[Desktop Entry]
Name=FreeCAD Link
Comment=3D Parametric CAD
GenericName=FreeCAD Link
X-GNOME-FullName=FreeCAD Link Stage 2024.04.09
Exec=./FreeCAD-Link-Stable-Linux-x86_64-py3.11-20240407.AppImage
Terminal=false
Type=Application
Icon=freecad.png
Categories=CAD;

I read a lot about getting the icon to show up but haven't been successful. At least now I can open it from Launcher though.

psommerfeld commented 2 months ago

Runs well on ChromeOS Linux now. Any remaining issues don't seem to be a consequence of ChromeOS Linux, but more general problems.