Help with mathematical on windows

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Help with mathematical on windows

dsisnero
I am trying to get Mathmeatical gem supported in windows.  I got lasem and mtex2mml included in the MINGW-PACKAGE list to be able to install with pacman

pacman -S mingw64/mingw-w64-x86_64-lasem

pacman -S mingw64/mingw-w64-x86_64-mtex2MML

I have forked mathematical and got it to create the makefile with my changes to extconf.rb

ruby extconf.rb --use-system-lasem --use-system-mtex2MML

when I run make I get the following

n file included from mathematical.c:23:0:
./mathematical.h:12:10: fatal error: lsmmathml.h: No such file or directory
 #include <lsmmathml.h>
          ^~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:242: mathematical.o] Error 1stem-lasem --use-system-mtex2MML

So, for some reason the lasem header lsmmathml.h file is not included in the header list for lasem

  I do not know autotools system very well.  If I could get help on the patches to lasem 's Makefile.am file to include the headers needed for mathematical we can get this gem to install on windows.

Here's my fork of the MINGW-PACKAGES which has lasem and mtex2mml that were accepted.  

https://github.com/dsisnero/MINGW-packages  look under the lasem and mtex2mml directories.  I need to patch the lasem Makefile.am somehow to include the needed headers

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Help with mathematical on windows

mojavelinux
Administrator
I highly doubt that mathematical is going to work on Windows, but I could be wrong. Mathematical is a separate project from Asciidoctor, so I recommend asking your question in that project to get it sorted out.

https://github.com/gjtorikian/mathematical

If you want to get something working right away, I highly recommend using the Docker container for Asciidoctor, which comes pre-installed with mathematical. You can run Docker on Windows (see https://docs.docker.com/docker-for-windows/)

Cheers,

-Dan

On Mon, Jan 29, 2018 at 3:33 PM, dsisnero [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I am trying to get Mathmeatical gem supported in windows.  I got lasem and mtex2mml included in the MINGW-PACKAGE list to be able to install with pacman

pacman -S mingw64/mingw-w64-x86_64-lasem

pacman -S mingw64/mingw-w64-x86_64-mtex2MML

I have forked mathematical and got it to create the makefile with my changes to extconf.rb

ruby extconf.rb --use-system-lasem --use-system-mtex2MML

when I run make I get the following

n file included from mathematical.c:23:0:
./mathematical.h:12:10: fatal error: lsmmathml.h: No such file or directory
 #include <lsmmathml.h>
          ^~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:242: mathematical.o] Error 1stem-lasem --use-system-mtex2MML

So, for some reason the lasem header lsmmathml.h file is not included in the header list for lasem

  I do not know autotools system very well.  If I could get help on the patches to lasem 's Makefile.am file to include the headers needed for mathematical we can get this gem to install on windows.

Here's my fork of the MINGW-PACKAGES which has lasem and mtex2mml that were accepted.  

https://github.com/dsisnero/MINGW-packages  look under the lasem and mtex2mml directories.  I need to patch the lasem Makefile.am somehow to include the needed headers

Thanks


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Help-with-mathematical-on-windows-tp6153.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: Help with mathematical on windows

miwi238
I just compiled mathematical for windows, and it basically worked.
I had to make some changes to exconf.rb and CMakeLists.txt.

Using asciidoctor-mathematical with "-r asciidoctor-mathematical -a mathematical-format=svg" works fine after installing cmex10.ttf. PNG output is corrupt, I'll check this again.

Reply | Threaded
Open this post in threaded view
|

Re: Help with mathematical on windows

mojavelinux
Administrator
Great work! If you'd be willing share those changes with the Mathematical project, that could really help us improve the experience for users on Windows.

Thanks!

-Dan

On Tue, Feb 20, 2018 at 8:43 AM, miwi238 [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I just compiled mathematical for windows, and it basically worked.
I had to make some changes to exconf.rb and CMakeLists.txt.

Using asciidoctor-mathematical with "-r asciidoctor-mathematical -a mathematical-format=svg" works fine after installing cmex10.ttf. PNG output is corrupt, I'll check this again.




If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Help-with-mathematical-on-windows-tp6153p6195.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux