简体   繁体   English

在Mac OSX上编译kerTeX时遇到问题

[英]Encounter problems while compiling kerTeX on Mac OSX

I was trying to compile kerTeX on Mac OSX 10.9 and encountered some problem. 我试图在Mac OSX 10.9上编译kerTeX,但遇到了一些问题。 I downloaded this get_mk_install.sh from the project homepage and fed it to sh , it worked very well at first for a moment but terminated suddenly, the error message does not make any sense to me: 我从项目主页下载了此get_mk_install.sh并将其馈送到sh ,起初一会儿工作得很好,但突然终止了,错误消息对我来说没有任何意义:

#========== BUILDING sys/sh1/pkglib
sed -e 's!@@TARGETSHELL@@!/bin/sh!'\
                 -e '/^##PKG_SYS_DEPENDENT/r /Users/user/Temp/kertex/kertex_T/sys/sh1/pkglib/./unix.data' /Users/user/Temp/kertex/kertex_T/sys/sh1/pkglib/sh.data\
             | sed -e 's!@@SYS_FTPC@@!ftp!'\
                         -e 's!@@SYS_HTTPC@@!ftp!'\
      -e 's!@@SYS_SUDOING@@!sudo!'\
                         -e 's!@@SYS_ROOT_ID@@!0!' >pkglib.sh

#========== sys/sh1/pkglib DONE (50/50)
Programs that failed to build:
!mpware/sh1/mp2ps
make: *** [all] Error 1

Can any one help on this, or point me to where solutions can be found. 谁能帮上忙,或者指出我在哪里可以找到解决方案。

My purpose is to port some TeX system to mobile platforms such as Android, iOS, etc., to compile TeX scripts locally. 我的目的是将某些TeX系统移植到Android,iOS等移动平台上,以便在本地编译TeX脚本。 Is this the appropriate solution for my task? 这是适合我任务的解决方案吗? If there are ones that are better, please let me know. 如果有更好的,请告诉我。

Thanks. 谢谢。

For the mobile use case I created the TeX-- project. 对于移动用例,我创建了TeX--项目。 Note that it produces DVI files, not PDFs. 请注意,它会生成DVI文件,而不是PDF。

A TeX implementation in a single C++11 class. 一个C ++ 11类中的TeX实现。

Based upon version 3.1415926 of tex.web. 基于tex.web版本3.1415926。 Minimal changes to the original sources were performed; 对原始资源进行了最小的更改; preferring instead to leverage p2c's configurability to manipulate the produced C source. 取而代之的是利用p2c的可配置性来操纵产生的C源代码。 The main goal was getting TeX's massive number of symbols out of the global scope; 主要目标是使TeX的大量符号脱离全球范围。 making it easy to embed. 使其易于嵌入。

Creation of the header file is done through the tex.sh shell script, so that it can be regenerated at any time. 头文件的创建是通过tex.sh Shell脚本完成的,因此可以随时重新生成它。 No manual clean-up or restructuring of the code has been done. 尚未完成代码的手动清理或重组。 Some automated transformations of the code are done in the shell script. 代码的一些自动转换是在Shell脚本中完成的。 Primarily to replace certain C constructs with C++ equivalents. 主要是用C ++等效项替换某些C构造。

The web/tex.hpp file should be all you need. web/tex.hpp文件应该是您所需要的。 Feel free to open Github issues on the project. 随时打开该项目的Github问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM