Package Details: smath 0_98_6179-4

Git Clone URL: (read-only)
Package Base: smath
Description: A mathematical program with many features and paper-like interface, similar to Mathcad
Upstream URL:
Keywords: mathcad mathematics smath
Licenses: CCPL
Groups: math
Submitter: tomracing
Maintainer: tomracing
Last Packager: tomracing
Votes: 4
Popularity: 0.103307
First Submitted: 2016-01-10 10:32
Last Updated: 2017-02-22 17:30

Latest Comments

tomracing commented on 2017-02-22 17:50

great, it worked for me also this morning. Thanks for testing.
the pkgbuild is cleaned up now and as far as I can tell the files don't even need mentioning in the source.
Should be good to go for the future and much easier to update.

thanks again for the solution.

Jake commented on 2017-02-22 12:15

Now uncomment the sources (make sure the braces are correct) and it is complete ;)

You can try my version from yesterday here:

Jake commented on 2017-02-21 23:20

It works for me with the the .desktop, i can send you a PKGBUILD if you want.

Downloading the icon pack is a bit of a problem, because this needs a different id... but i think dropbox (or adding it directly to the sources / aur repo) is fine for a simple png.

btw: i would supply the start script also as file, instead of this multiple line echo pipe trick.

tomracing commented on 2017-02-21 22:53


That works and I can get the main file downloaded directly from the web now.
Just have to pop into a Arch irc channel one of these days to see if i can get some help to complete the PKGBUILD. I think the %u in the dlagents follows all three sources and those don't need the http post procedure yet.
Will have to find a way to fix that or change the way to get the .desktop and the icon.
So for now won't post that pkgbuild yet as it is broken.
pkg still works as it is now. looking forward to complete this though.

Jake commented on 2017-02-21 21:11

The server expects a HTTP POST request with the id to start the download, so:
wget --post-data "RefMem=&PostBack=CrFXM"

This works also through makepkg with the DLAGENTS variable:
DLAGENTS=('http::/usr/bin/wget --post-data RefMem=&PostBack=CrFXM %u')

tomracing commented on 2016-09-30 21:15


because the main website obscures the download file location
This takes you to a java link to download.
If you have a suggestion more than welcome to provide input so we can improve this build.

burjui commented on 2016-09-26 01:16

Why downloading from Dropbox instead of the official site?

tomracing commented on 2016-05-27 18:31

pkg version 2 now has the giflib restriction removed.

silent commented on 2016-05-27 18:23

Please remove <5.1.2 condition for giflib from the PKGBUILD

archmkr commented on 2016-05-25 13:47

Great, I just did the same and its all working.

tomracing commented on 2016-05-24 20:46

giflib 5.1.4-1 just came out.
After doing a normal -Syu and checking things work as normal I updated giflib with another -Syud (the -d stops the dependency check)
For me Smath works with 5.1.4.
If others would like to confirm I will remove the giflib requirement end of the week.

tomracing commented on 2016-04-30 14:49

I've updated to the latest stable 98.5935
Also added the dependency giflib<5.1.2 hope that works for people to keep it at 5.1.1

archmkr commented on 2016-04-28 21:54


I can confirm that downgrading to giflib-5.1.1-1 it works, thanks!
Maybe you could add a constrain about that in this pckg itself?

tomracing commented on 2016-04-28 21:40

Well I had some time to find out what caused the breakage and I found it!
downgrade giflib to giflib-5.1.1-1
the current version is 5.1.2-1 which breaks smath.

I will start a forum thread to get help on where and how to report the bug.
For now roll back and ignorepkg = giflib if you want smath to work.

archmkr commented on 2016-04-25 11:02

Ok, thanks for reply. Now I have tried to run with the oldest available (libgdiplus-3.8-1) and get the same error.

Reading some other topics related to "GDI+ status: InvalidParameter" I found some suggestions that what could be wrong is some image parameter. If it is the case, I can remember to read about some user who fixed something like this by manually converting images of some software using imagemagick.

tomracing commented on 2016-04-25 06:30

Thanks for helping to try to fix this.
The developer of smath has not responded on his forum yet unfortunately.

Dependencies of mono are listed as:
[code]Dependencies (5)
sh (bash)

with the error line
[code]System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter] [/code]
we may have to look into libgdiplus.

archmkr commented on 2016-04-24 16:45

Same issue here (geli0n and tomracing).

The only dependency listed here is Mono.. So I have tried to run some newer (0.98) and some older (0.92 ~ 0.97) versions downgrading Mono:
mono- (newest)-> same error
mono- -> same error
mono-3.0.12-1-x86_64 (oldest from ALA/ARM) -> same plus other errors

Now I can imagine that it isn't caused by mono.

tomracing commented on 2016-04-05 18:57

I have exactly the same issue as you have geli0n and would like to have it fixed.
So far I have been trying rolling back various packages to find out what the source of the problem is.
I have not found a solution yet but would be happy with any ideas.
The only thing I do know is that the runtime version message is not the root cause as a ubuntu machine gives the same warning and still runs perfectly.

geli0n commented on 2016-04-05 17:01

program failed with exception:

WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
- [AppDir] HTML Export (1.13.5890.6147)
- [AppDir] Export to image (1.9.5890.6148)
- [AppDir] Picture Region (1.10.5890.6147)
- [AppDir] Plot Region (1.9.5890.6149)
- [AppDir] SMath Studio Files Plugin (1.9.5890.6149)
- [AppDir] Special Functions (1.11.5890.6146)
- [AppDir] Text Region (1.10.5890.6148)
- [AppDir] SMath Viewer Files Plugin (1.1.5890.6150)
- [AppDir] XMCD Files Plugin (1.12.5890.6148)
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter]
at System.Drawing.GDIPlus.CheckStatus (Status status) <0x40795be0 + 0x00147> in <filename unknown>:0
at System.Drawing.Image.get_Width () <0x407bb380 + 0x0002b> in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Drawing.Image:get_Width ()
at .. (System.Windows.Forms.PaintEventArgs ) <0x40a10f80 + 0x0020b> in <filename unknown>:0
at .. (System.Windows.Forms.PaintEventArgs ) <0x40a0f700 + 0x00bdf> in <filename unknown>:0
at .. (System.Windows.Forms.PaintEventArgs ) <0x40a0f240 + 0x0037f> in <filename unknown>:0
at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message& m) <0x409e2f10 + 0x00157> in <filename unknown>:0
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) <0x407ac930 + 0x001f7> in <filename unknown>:0
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) <0x407ac900 + 0x00024> in <filename unknown>:0
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) <0x407ac8c0 + 0x00036> in <filename unknown>:0
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) <0x407ab000 + 0x003b4> in <filename unknown>:0