GIMP Chat
http://gimpchat.com/

Mathmap Extra Expressions
http://gimpchat.com/viewtopic.php?f=9&t=4558
Page 3 of 3

Author:  mackenzieh [ Mon Sep 03, 2018 4:01 pm ]
Post subject:  Re: Mathmap Extra Expressions

I installed the extra expressions and I keep getting error messages.

Why is that? What am I doing wrong?

Attachments:
Screenshot (5).png
Screenshot (5).png [ 130.97 KiB | Viewed 23019 times ]

Author:  lylejk [ Mon Sep 03, 2018 11:42 pm ]
Post subject:  Re: Mathmap Extra Expressions

Well, it turns out the Theme made GIMP unstable so had to go back to system. Does anyone know how to manually adjust colors of the system windows? Way too bright, but at least it's stable and I see my Mathmap sliders. lol

Someone really needs to find out why GIMP 2.8x themes cause 2.10x to get unstable. I'm just a clueless enduser. :)

Author:  lylejk [ Mon Sep 03, 2018 11:44 pm ]
Post subject:  Re: Mathmap Extra Expressions

mackenzieh wrote:
I installed the extra expressions and I keep getting error messages.

Why is that? What am I doing wrong?


I still have a few Mathmap presets that won't work myself, Meckenzieh, but to be honest, those same ones didn't work in GIMP 2.8x either. I just avoid using them. Droste and my custom preset are pretty much the only ones I use anyway. :)

Author:  mackenzieh [ Tue Sep 04, 2018 4:48 am ]
Post subject:  Re: Mathmap Extra Expressions

lylejk wrote:
mackenzieh wrote:
I installed the extra expressions and I keep getting error messages.

Why is that? What am I doing wrong?


I still have a few Mathmap presets that won't work myself, Meckenzieh, but to be honest, those same ones didn't work in GIMP 2.8x either. I just avoid using them. Droste and my custom preset are pretty much the only ones I use anyway. :)


I was really hoping to use them so, I will take your advice and won't use them. :) I've got bigger fish to fry. my laptop now has a 3rd bug and I hate it.

Author:  MareroQ [ Sun Oct 27, 2019 12:48 pm ]
Post subject:  Re: Mathmap Extra Expressions

I found a simple solution for Windows 10 to show the sliders in the official themes.
Just add one old file to those listed by Rich2005 (plug-ins / matchmat / libgtk-win32-2.0-0.dll).
This unfortunately will not work for the portable 64bit version (but works e.g. for the 32bit version Samj Gimp 2.10.12 / 13)

Edit for Gimp 2.10.14
For Gimp 2.10.14_Win64 with support 32 bit and old plugins (from gimp.org) adding a file libgtk-win32-2.0-0.dll is not necessary (not recommended) - displaying is correct.


Attachments:
Dark.png
Dark.png [ 273.82 KiB | Viewed 20094 times ]
Gray.png
Gray.png [ 98.24 KiB | Viewed 20094 times ]
libgtk-win32-2.0-0.zip [1.43 MiB]
Downloaded 457 times

Author:  Wallace [ Sun Oct 27, 2019 8:24 pm ]
Post subject:  Re: Mathmap Extra Expressions

MareroQ wrote:
I found a simple solution for Windows 10 to show the sliders in the official themes.
Just add one old file to those listed by Rich2005 (plug-ins / matchmat / libgtk-win32-2.0-0.dll).
This unfortunately will not work for the portable 64bit version (but works e.g. for the 32bit version Samj Gimp 2.10.12 / 13)

Thanks MareroQ.
:coolthup

Author:  MareroQ [ Wed Oct 30, 2019 6:05 pm ]
Post subject:  Re: Mathmap Extra Expressions

@Tas_Mania

I compiled Mathmat 1.3.5 with Gimp 2.10.14_Win10_64bit.
After the libnoise problem contained in
https://github.com/schani/mathmap

.....
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: builtins/libnoise.o:libnoise.cpp:(.rdata$.refptr._ZTVN5noise6module7VoronoiE[.refptr._ZTVN5noise6module7VoronoiE]+0x0): undefined reference to `vtable for noise::module::Voronoi'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: builtins/libnoise.o:libnoise.cpp:(.rdata$.refptr._ZTVN5noise6module11RidgedMultiE[.refptr._ZTVN5noise6module11RidgedMultiE]+0x0): undefined reference to `vtable for noise::module::RidgedMulti'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: builtins/libnoise.o:libnoise.cpp:(.rdata$.refptr._ZTVN5noise6module6BillowE[.refptr._ZTVN5noise6module6BillowE]+0x0): undefined reference to `vtable for noise::module::Billow'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: builtins/libnoise.o:libnoise.cpp:(.rdata$.refptr._ZTVN5noise6module6PerlinE[.refptr._ZTVN5noise6module6PerlinE]+0x0): undefined reference to `vtable for noise::module::Perlin'
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:155: mathmap] Błąd 1


I compiled noise from:
https://github.com/eXpl0it3r/libnoise

Compilation completed without an error message.
However, the attempt to run in Gimp-2.10.15 fails (as in the screenshot)

(mathmap:8736): Gdk-CRITICAL **: 20:49:04.817: gdk_cairo_create: assertion 'GDK_IS_DRAWABLE (drawable)' failed
(mathmap:8736): Gdk-CRITICAL **: 20:49:05.012: gdk_cairo_create: assertion 'GDK_IS_DRAWABLE (drawable)' failed
(mathmap:8736): Gdk-CRITICAL **: 20:49:05.036: gdk_cairo_create: assertion 'GDK_IS_DRAWABLE (drawable)' failed
Error: The MathMap compiler failed, for the following reason:
Could not write temporary file `/tmp/mathfunc8736_1.c'


Any hint where the error lies?

Attachments:
ErrorMM gdk.png
ErrorMM gdk.png [ 37.38 KiB | Viewed 19970 times ]

Author:  Tas_mania [ Fri Nov 01, 2019 4:09 am ]
Post subject:  Re: Mathmap Extra Expressions

Hi MareroQ.
I've had that same error before.
https://groups.google.com/forum/#!topic/mathmap/BnkokRxaCPk
I think it comes from GSL.
MathMap is looking for libgsl1X and libgsl2X is installed.
I was able to make a symbolic link on Linux
(sudo ln -s /usr/lib/x86_64-linux-gnu/libgsl.so.23 /usr/lib/x86_64-linux-gnu/libgsl.so.19)
You may not have GSL installed or it's the wrong version.

It's good you got this far with Windows 10. I've been thinking about using Azure which is a MSoft build system.
I'm right out of the Windows environment now and would struggle with it.

Author:  MareroQ [ Fri Nov 01, 2019 12:55 pm ]
Post subject:  Re: Mathmap Extra Expressions

Hi Tas_Mania.

In my system libgsl is version 2.5 (libgsl-25.dll).
I tried to compile an older version of gsl-1.9 [20.02.2007] - but too many bugs and this is not for my completely amateur skills (I would have to rebuild the msys64 environment thoroughly).
The only hope is that the 1.3.5_32 bit version will work for a long time for 64 bit (personally I don't have any problems with this old version) or someone with experience (Samj? or Partha?) will try to compile it.

I had some hope that the problem lies only in the path of the temp file and its strange (for me)
format (* .c)

Author:  Tas_mania [ Fri Nov 01, 2019 6:13 pm ]
Post subject:  Re: Mathmap Extra Expressions

Quote:
I had some hope that the problem lies only in the path of the temp file and its strange (for me)
format (* .c)

Thats because its written in C. Forward slashes in Windows are a problem but you must have resolved that.

Symbolic links can be made in Windows

You just have the new file on your system while the symbolic link provides the file required for compiling. This file is really only a pointer to the newer installed file.

Mark and PhotoComix are the only people who have compiled MathMap on Windows AFAIK and now PhotoComix is gone. Mark is a genius IMHO.
Nobody has ever used MathMap Composer on Windows. If you get it done click on the Composer Tab and see what I mean?

Author:  MareroQ [ Fri Nov 01, 2019 11:19 pm ]
Post subject:  Re: Mathmap Extra Expressions

So from now on I'm Mr. Nobody. :ninja
As for me MM Composer works normally like in Linux (I compared with your movie). After saving the new mmc preset appears in the MathMap menu automatically without having to be restarted.
I also admire the genius of Mark Probst(schani) for this function.
Thanks for the link about: Symbolic links can be made in Windows - I will study soon (but I know that simply replacing the file / or renaming libgsl-25.dll to libgsl-19.dll is not enough because mathmap absolutely will demand libraries with which it was compiled - and compiling very old libraries is a problem of many dependencies - and sometimes the sources are misleading).
I have also another problem - I need more information - how to set the flag in Windows so that after compilation no additional console window pops up (I used to have a working François Collard setting - but it was lost with the old computer - except GIMP and GMIC I haven't compiled anything else recently). :geek

Attachments:
MMComposer.png
MMComposer.png [ 919.4 KiB | Viewed 22512 times ]

Author:  Tas_mania [ Sat Nov 02, 2019 12:34 am ]
Post subject:  Re: Mathmap Extra Expressions

Congratulations MareroQ on getting this going for Windows.
I thought it may never happen.
Mark coded a 'node' based graphical environment 10 years ago.
Today a node system is at the heart of davinci resolve.

Author:  MareroQ [ Sat Nov 02, 2019 3:32 am ]
Post subject:  Re: Mathmap Extra Expressions

I found the repo http://repo.msys2.org/mingw/x86_64/ with older versions of libraries.
I used:
mingw-W64-x86_64-liblas-1.8.0-1-any.pkg.tar
mingw-W64-x86_64-gsl-1.16-3-any.pkg.tar
Unfortunately, the same error remained - and it looks so nice:

Attachments:
It's just a wish.png
It's just a wish.png [ 55.27 KiB | Viewed 22498 times ]

Author:  Rod [ Sat Nov 02, 2019 5:50 pm ]
Post subject:  Re: Mathmap Extra Expressions

Tas_mania wrote:
Quote:
Mark and PhotoComix are the only people who have compiled MathMap on Windows AFAIK and now PhotoComix is gone. Mark is a genius IMHO.?

PhotoComix never compiled MathMap. He only packaged it and hosted it on Deviant Arts website.
Only folks either than Mark i know of that have compiled Mathmap is SamJ. Possibly Partha. Oh and MareroQ. :)

Author:  Rod [ Sat Nov 02, 2019 6:02 pm ]
Post subject:  Re: Mathmap Extra Expressions

MareroQ wrote:
So from now on I'm Mr. Nobody. :ninja
As for me MM Composer works normally like in Linux (I compared with your movie). After saving the new mmc preset appears in the MathMap menu automatically without having to be restarted.
I also admire the genius of Mark Probst(schani) for this function.
Thanks for the link about: Symbolic links can be made in Windows - I will study soon (but I know that simply replacing the file / or renaming libgsl-25.dll to libgsl-19.dll is not enough because mathmap absolutely will demand libraries with which it was compiled - and compiling very old libraries is a problem of many dependencies - and sometimes the sources are misleading).
I have also another problem - I need more information - how to set the flag in Windows so that after compilation no additional console window pops up (I used to have a working François Collard setting - but it was lost with the old computer - except GIMP and GMIC I haven't compiled anything else recently). :geek

So MareroQ does this mean you are going to share the mathmap executable. By the way where did you find the src files? :)

Author:  MareroQ [ Sun Nov 03, 2019 8:48 am ]
Post subject:  Re: Mathmap Extra Expressions

@Tas_Mania
Just considerations

Once again I compared the errors:
(they are just a little similar)

Your error:
The MathMap 'Composer' tab crashes MathMap
Segmentation fault

My error:
Could not write temporary file
The MathMap 'Composer' tab NOT crashes MathMap

So the gsl version is probably not responsible for the error.

If you decided to recompile in Linux, save the version of the library use so that I can repeat it in Windows.

Regarding the additional console after running Mathmap
I had to do something wrong before:
Simple addition to CFLAGS = -mwindows works and mathmap is without an additional console.


xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
@Rod - You will try to compile?

Download Mathmap 1.3.5 for Windows (these are identical versions):

Rich2005
viewtopic.php?f=9&t=4558&start=30#p231005

Graechan
http://gimpchat.com/download/file.php?id=9548

PhotoComix
http://downloads.sourceforge.net/projec ... irror=nchc

Sources Mathmap-master for Linux:
https://github.com/schani/mathmap

Attachments:
Required for Mathmap operation.png
Required for Mathmap operation.png [ 18.61 KiB | Viewed 22444 times ]

Author:  Tas_mania [ Mon Nov 04, 2019 3:44 am ]
Post subject:  Re: Mathmap Extra Expressions

Hi MareroQ
Composer crashing MM was another issue.

I looked at the makefile lines 116 and 294.
(cp /bin/intl.dll /bin/libgsl.dll /bin/libgslcblas.dll /bin/libgtksourceview-2.0-0.dll /bin/libfftw3-3.dll mathmap-$(VERSION)-mingw32/plug-ins/)

Its looking for libgsl.dll in /bin. Maybe edit this line with whatever libgsl.dll you have?

Author:  MareroQ [ Mon Nov 04, 2019 4:29 am ]
Post subject:  Re: Mathmap Extra Expressions

Regardless of the gsl version, -lgsl (line 116) is identical (valid).

On line 294 - only final exe and dll file transfers are done (I'm testing with another program and mathmap gets all the files it needs - but the error goes on).

I am curious about one thing:
in Linux temporary file `/tmp/mathfunc8736_1.c 'is saved to disk and where and which source file is responsible for path selection?

I also suspected the old version of libpng12 (line 68) - replacing it with libpng16 also did nothing.

It's possible that the Cairo version is the key - what version did you compile with?

Author:  mackenzieh [ Fri Nov 13, 2020 5:51 pm ]
Post subject:  Re: Mathmap Extra Expressions

Will Mathmap be updated to work properly with GIMP 3.0 when it becomes available? Some of the expressions don't work properly.

Page 3 of 3 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/