Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bulid error #65

Open
captainshan opened this issue Jun 6, 2024 · 5 comments
Open

bulid error #65

captainshan opened this issue Jun 6, 2024 · 5 comments

Comments

@captainshan
Copy link

captainshan commented Jun 6, 2024

`
Compiling tectonic_xetex_layout v0.2.4 (/Users/captain/texpresso/tectonic/crates/xetex_layout)
The following warnings were emitted during compilation:

warning: tectonic_xetex_layout@0.2.4: /opt/homebrew/Cellar/icu4c/74.2/include/unicode/localpointer.h:224:40: error: expected ';' at end of declaration list

warning: tectonic_xetex_layout@0.2.4: /opt/homebrew/Cellar/icu4c/74.2/include/unicode/localpointer.h:399:36: error: expected ';' at end of declaration list

warning: tectonic_xetex_layout@0.2.4: /opt/homebrew/Cellar/icu4c/74.2/include/unicode/ubidi.h:579:1: error: expected ';' at end of declaration list

warning: tectonic_xetex_layout@0.2.4: 7 warnings and 3 errors generated.

error: failed to run custom build command for tectonic_xetex_layout v0.2.4 (/Users/captain/texpresso/tectonic/crates/xetex_layout)

Caused by:
process didn't exit successfully: /Users/captain/texpresso/tectonic/target/release/build/tectonic_xetex_layout-b37a63f57be228df/build-script-build (exit status: 1)
--- stdout

cargo:warning=/opt/homebrew/Cellar/icu4c/74.2/include/unicode/localpointer.h:224:40: error: expected ';' at end of declaration list

cargo:warning=/opt/homebrew/Cellar/icu4c/74.2/include/unicode/localpointer.h:399:36: error: expected ';' at end of declaration list

cargo:warning=/opt/homebrew/Cellar/icu4c/74.2/include/unicode/ubidi.h:579:1: error: expected ';' at end of declaration list

cargo:warning=

cargo:warning=7 warnings and 3 errors generated.

exit status: 1

--- stderr

error occurred: Command env -u IPHONEOS_DEPLOYMENT_TARGET "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-arch" "arm64" "-I" "layout" "-I" "/Users/captain/texpresso/tectonic/crates/bridge_core/support" "-I" "/Users/captain/texpresso/tectonic/target/release/build/tectonic_bridge_harfbuzz-9e8707849e7aac32/out" "-I" "/opt/homebrew/Cellar/graphite2/1.3.14/include" "-I" "/opt/homebrew/opt/freetype/include/freetype2" "-I" "/opt/homebrew/opt/libpng/include/libpng16" "-I" "/opt/homebrew/Cellar/graphite2/1.3.14/include" "-I" "/opt/homebrew/Cellar/icu4c/74.2/include" "-Wall" "-Wextra" "-Wall" "-Wall" "-Wdate-time" "-Wendif-labels" "-Wextra" "-Wformat=2" "-Wmissing-declarations" "-Wmissing-include-dirs" "-Wpointer-arith" "-Wredundant-decls" "-Wshadow" "-Wswitch-bool" "-Wundef" "-Wextra-semi" "-Wno-unused-parameter" "-Wno-implicit-fallthrough" "-fno-exceptions" "-fno-rtti" "-DXETEX_MAC=1" "-o" "/Users/captain/texpresso/tectonic/target/release/build/tectonic_xetex_layout-db2d797d0ccb69e2/out/layout/xetex-XeTeXLayoutInterface.o" "-c" "layout/xetex-XeTeXLayoutInterface.cpp" with args "c++" did not execute successfully (status code exit status: 1).

make[1]: *** [tectonic] Error 101
make: *** [texpresso-tonic] Error 2
`

The above error occurs when I make texpresso-tonic

@let-def
Copy link
Owner

let-def commented Jun 7, 2024

Commit fbb1c47 should fix the build issue. Please try again.

@captainshan
Copy link
Author

Commit fbb1c47 should fix the build issue. Please try again.

After your modifications, the command 'make texpresso-tonic' now runs successfully. Thank you very much.
However, I have another problem, if it is a Chinese document, the real-time preview is very very slow. Take the following document for example.

\documentclass[12pt]{article} \usepackage{amsmath} \usepackage{ctex} \begin{document} 您好 \end{document}

@let-def
Copy link
Owner

let-def commented Jun 7, 2024

I confirm there is an issue with handling of fonts with large character sets on macOS :/.
Sorry, I have an idea about what could be done, but I have no time for a fix in the short term.

@let-def
Copy link
Owner

let-def commented Jun 7, 2024

The problem is that with your document, the CJK fonts are loaded from the OS and the OS font loader is broken on macOS.
I have had more success by loading xeCJK package:

\documentclass[12pt]{article}
\usepackage{amsmath} 
\usepackage{xeCJK}
\begin{document}
您好
\end{document}

This results in a decent experience. Fixing support for OS fonts would be nice but this will take some time. If you want, you can use this workaround in the meantime.

@captainshan
Copy link
Author

The problem is that with your document, the CJK fonts are loaded from the OS and the OS font loader is broken on macOS. I have had more success by loading xeCJK package:

\documentclass[12pt]{article}
\usepackage{amsmath} 
\usepackage{xeCJK}
\begin{document}
您好
\end{document}

This results in a decent experience. Fixing support for OS fonts would be nice but this will take some time. If you want, you can use this workaround in the meantime.

Your scheme is indeed a good choice at present, thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants