Request: SMath AppImage for Linux

Request: SMath AppImage for Linux - Messages

#21 Posted: 6/3/2021 2:04:18 PM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Wrote

I read that post but I didn't consider that my system might be concerned. I apologize. Ubuntu 20.04 indeed complains about missing GLIBC_2.32.
Now I tried to start the appimage on Ubuntu 21.04 and got this error:

Quote

[xcb] Too much data requested from _XRead
[xcb] This is most likely caused by a broken X extension library


Interpreting this exceeds my competences. I attach the full output from the terminal, just in case it could help.
2021-06-03_SMATH_appimage_error_Ubuntu21.04.txt (24 KiB) downloaded 83 time(s).




Try to run appimage with sudo. This is an ubuntu mono error.
Despite the contrary belief, ubuntu and debian suffer from bugs more than rolling distros.

sudo ./SMath_Studio-x86_64-Mono-Plugins.AppImage
1 users liked this post
bromptonaut 6/4/2021 2:55:00 AM
#22 Posted: 6/3/2021 4:38:07 PM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Wrote

overlord said in a previous post that he will next try to create the appimage on an older system (This will make it compatible with a broader range of linux dists including Ubuntu).


Made a version with Ubuntu 16.04. It works with Ubuntu 16.04 livecd out-of-box.
I will try this file with Ubuntu 18.04 livecd, if it works I will add its links.
Unfortunately this old glibc version didn't work with my daily use voidlinux setup.
Appimage setups are same between old and new glibc except mono and glibc files.
Maybe there are some fundamental differences between distros.

I also added Liberation Mono fonts but didn't remove Courier New.
If someone open a *.sm file in linux which written under windows, there is misalignment.
It is better to have them both than not to have.



It didn't work and I think I know why.
All libraries inside appimage also have to be compiled with corresponding glibc.
Since MONO_PATH variable has to be designated, I also have to add all Mono version compiled with glibc versions.
This is cumbersome, takes time and increases file size since all libraries have to be included.
I will do this just one time and make different versions for ubuntu lts releases.
glibc-2.31 / glibc-2.27 / glibc-2.23 versions shall be released by me since this is a stable smath release.
But from now on I will only make version with glibc>=2.31. Next smath releases shall be up to you.
Files are there, someone can always --appimage-extract, replace files and recompile appimage.

Regards
#23 Posted: 6/3/2021 8:15:37 PM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

After several try and error with three different Ubuntu LTS releases,
I compiled and used smath appimage with Live CD's of releases. Seems to work.
However, for some Ubuntu 18.04 and Ubuntu 20.04 may need to run with sudo.
Not related with appimage or smath, because of some broken libraries of ubuntu.
Even downloading smath from site, installing mono-complete and running gives same error.

Links are updated in the second post of this thread.
Enjoy
#24 Posted: 6/4/2021 3:14:01 AM
bromptonaut

bromptonaut

0 likes in 5 posts.

Group: User

Wrote

Wrote

Today I came across this post since mono crashes every time I try to start smath. The appimage provided above doesn't start as well on my system.



If you are using Ubuntu 20.04 it might be a problem with the mono-libraries from the Ubuntu repos. I noticed a similiar error earlier and found a workaround by installing the latest versions directly from the Mono project website. https://www.mono-project.com/download/stable/#download-lin

Quote

sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
sudo apt upgrade



That solved the problem for me on Ubuntu 20.04 (both with official tar.gz-release and appimage version of SMath) but I agree that an appimage with a working mono-library included would be a much better solution



Using the latest version of mono possibly is not the only thing that's relevant. I already had it installed, re-installing didn't change anything. However I just found out that I can start SMath with mono using sudo (inspired from the experience with the appimage)
Quote

sudo ./smathstudio_desktop_mono


Apparantly the behaviour of mono changed on Ubuntu 20.04 a couple of weeks ago.

overlord, gntech, thank you for your efforts to create the appimage!
#25 Posted: 6/5/2021 6:25:13 PM
gntech

gntech

5 likes in 19 posts.

Group: User

I have created my own attempt at building an AppImage for SMath. I have used inspiration from both Overlord's work and from the OpenRA AppImage.

I have automated the build process using Github Actions and the source for the build steps is available here https://github.com/gntech/smath-appimage

The built SMath AppImage are available from the releases page https://github.com/gntech/smath-appimage/releases

Direct link to the latest AppImage -> See first post

Please try it out and let me know what you think

Some more information

  • Automatically built with Github Actions using an Ubuntu 18.04 Runner
  • Uses glibc 2.27 which will work on Ubuntu 18.04 and newer
  • Libraries and files are handpicked via a script
  • SMath release files and icons automatically downloaded and placed
  • Scripts for setting/resetting mono-path and launching mono executable have been borrowed from OpenRA


Pull requests are welcome ofcourse
1 users liked this post
Andrey Ivashov 6/6/2021 4:05:00 AM
#26 Posted: 6/6/2021 6:58:31 AM
gntech

gntech

5 likes in 19 posts.

Group: User

I have released a new AppImage that adds two missing mono libraries (Microsoft.CSharp.dll and System.Design.dll) that are used by some plugins. I have also tested to integrate the appimage with the system menus and such using "appimaged". It works good

I have also worked on adding mime support for the SMath Studio Worksheet files so that the files will automatically be opened by the SMath appimage when double clicked. This does not quite work yet, do not know why. You can still right-click and choose SMathStudio from the "open with"-dialog.
#27 Posted: 6/6/2021 9:58:24 AM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Wrote

I have released a new AppImage that adds two missing mono libraries (Microsoft.CSharp.dll and System.Design.dll) that are used by some plugins. I have also tested to integrate the appimage with the system menus and such using "appimaged". It works good

I have also worked on adding mime support for the SMath Studio Worksheet files so that the files will automatically be opened by the SMath appimage when double clicked. This does not quite work yet, do not know why. You can still right-click and choose SMathStudio from the "open with"-dialog.


Didn't work for me, gave libmono-native.so not found error.
Although it is present on my pc, and in appimage.
Also somehow after some hours running appimage created with script,
Segmentation fault error magically started to appear.
My splitted boot partition /dev/sda1 screwed twice by this.
I had to chroot grub-install with livecd, problem fixed. Twice.
And now after 6 hours grub partition is still fine.
Don't know if it is related with your script though.
I checked and no code in you script seems to cause this.
But this never happen to me for 2 years with voidlinux.

Regards
#28 Posted: 6/6/2021 11:23:56 AM
gntech

gntech

5 likes in 19 posts.

Group: User

Wrote

Didn't work for me, gave libmono-native.so not found error.
Although it is present on my pc, and in appimage.



Thanks for testing the appimage, I have not experienced that error. I have tried it on Ubuntu 18.04, 20.04 and ArchLinux.

I have installed VoidLinux on a VM and have noticed that libgdiplus.so.0 not found error.

Will do some more research
#29 Posted: 6/6/2021 12:06:15 PM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Wrote

Thanks for testing the appimage, I have not experienced that error. I have tried it on Ubuntu 18.04, 20.04 and ArchLinux.

I have installed VoidLinux on a VM and have noticed that libgdiplus.so.0 not found error.

Will do some more research


Your pre-compiled appimage wth glibc_2.27 works if it makes a different.
I have glibc_2.32 on my machine. Not a VM, I use it installed.
#30 Posted: 6/6/2021 3:19:56 PM
gntech

gntech

5 likes in 19 posts.

Group: User

Wrote

Your pre-compiled appimage wth glibc_2.27 works if it makes a different.
I have glibc_2.32 on my machine. Not a VM, I use it installed.



Okay! Good to know that the pre-built package works.

I have also released a new version (PreRelease4) that adds libjpeg.so.8 which brings compatibility with Fedora 34 that do not have that library.

#31 Posted: 12/22/2023 10:21:25 PM
usamakhan

usamakhan

3 likes in 75 posts.

Group: User

Can I connect / expose python to SMATH Mono?
  • New Posts New Posts
  • No New Posts No New Posts