-
Notifications
You must be signed in to change notification settings - Fork 34
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
Cannot build on macOS: fatal error: 'cassert' file not found #34
Comments
Ugh. That's because of this change: Can you change back that |
Now this happens…
|
Okay I let someone else to chime in. Looks like badly setup toolchain to me. Not sure what harfbuzzjs calls... |
Do you happen to have a newer MacOS version to try? |
I get a ton of other errors when I try to compile the way you are... |
I don’t have a newer macOS version right now. |
Does it work if you revert that HarfBuzz commit? |
Something's definitely wrong with how harfbuzzjs invokes the compiler. I can't get it work here though. |
With the previous
|
Did running this "./build.sh" ever worked for you? Maybe @ebraminio can respond. |
No, this is the first time. I am intending to compile with variations on. |
Headers issue is resolved however there are apparently other issues upstream side,
Apparently ArchLinux CI which also was testing HB_TINY and flake8 testing harfbuzz/harfbuzz@094406b is disabled. |
Ah... it didn't occur to me that the wasm toolchain doesn't come with any standard headers. Thanks Ebrahim. I'll fix the other issue. |
@Lorp, just note on macOS you'll need to put brew installed clang on PATH instead toolchain brought one as the latter isn't updated enough unfortunately. In order to enable variation you'll need to apply the below patch but that's just the start as you'll need to wire up the variation APIs to .wasm (simply adding them to build.sh API listing part) and then use it on .js/.ts wrapper if you need it and don't use .wasm directly. We can work on it ofc but patches are also welcomed,
Have a look at https://harfbuzz.github.io/harfbuzzjs/ also as a [at least supposed to] simple demo |
Hey @ebraminio & @behdad, thanks for the commits. It now builds and runs well, and also builds & runs when I edit
Then I added a
But I cannot seem to pass non-integer parameters, so I have not got |
My attempts:
|
oh, wasm machine doesn't understand complex js structures, am trying to make it work for you :) |
That works perfectly! Thanks very much!
|
Is it possible to apply features? From hbjs.example.js:
|
Apparently we only have implemented it for shapeWithTrace https://github.com/harfbuzz/harfbuzzjs/blob/cc798e5/hbjs.js#L337 and not with the main https://github.com/harfbuzz/harfbuzzjs/blob/cc798e5/hbjs.js#L315 guess for now you can use shapeWithTrace and get a GSUB/GPOS applying steps trace also for free, the API is already used in https://github.com/simoncozens/crowbar, till one implements the same for shape() also. |
Success! It was failing when I constructed
|
I’m getting this error, trying to build on macOS 10.14.6 :
My clang and lld seem to be installed ok.
Any ideas?
The text was updated successfully, but these errors were encountered: