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

Build with meson/ninja #71

Merged
merged 3 commits into from
Feb 26, 2024
Merged

Build with meson/ninja #71

merged 3 commits into from
Feb 26, 2024

Conversation

hoheinzollern
Copy link
Contributor

I have prepared some build scripts for meson/ninja, README.md is updated with information how to build with meson.
This also automates the creation of Xcode projects, that I also described, but did not test.

@jlaurens
Copy link
Owner

Hi,

I could not build on OSX, neither with ninja, nor Xcode. I am not used to meson, so here is the relevant error of meson build

meson.build:1:0: ERROR: Unable to detect linker for compiler `cc -Wl,--version`
stdout: 
stderr: ld: unknown options: --version 
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The web site of the project is https://github.com/jlaurens/synctex, better than texlive

@jlaurens
Copy link
Owner

An old meson was hiding the most recent one. Things are OK now.

@jlaurens jlaurens self-assigned this Feb 26, 2024
Copy link
Owner

@jlaurens jlaurens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order to test if the build is correct, I run

./debug/synctex edit -o 1:100:100:../../synctex/synctex\ test\ files/1/edit\ query/1.pdf

from the build directory, the expected output contains

SyncTeX result begin
Output:../../synctex/synctex test files/1/edit query/1.pdf
Input:./1.tex
Line:23
Column:-1
Offset:0
Context:
SyncTeX result end

Maybe this kind of information is relevant...
BTW, I am on OSX

@hoheinzollern
Copy link
Contributor Author

Thank you for all the comments, I hope they are now addressed

@jlaurens jlaurens merged commit 7abfd95 into jlaurens:2020 Feb 26, 2024
jlaurens pushed a commit that referenced this pull request Feb 26, 2024
* meson build file

* setup instructions
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

Successfully merging this pull request may close these issues.

2 participants