go-lolhtml icon indicating copy to clipboard operation
go-lolhtml copied to clipboard

lolhtml for arm?

Open macosupdate opened this issue 4 years ago • 2 comments

I tested on macos and it works fine, I plan to try it on arm specifically armv7 In the build folder I don't see any library for arm, can you create a library for arm, or guide so I can build? I hope it works on arm

macosupdate avatar Jun 14 '21 01:06 macosupdate

I got an error while building cargo build --lib --release --target armv7-unknown-linux-gnueabihf --manifest-path c-api/Cargo.toml But have been successful when using cross build --target armv7-unknown-linux-gnueabihf --lib --release --manifest-path c-api/Cargo.toml

now i have to create linux-arm or arm-linux-gnueabihf folder to copy the liblolhtml.a file into it

macosupdate avatar Jun 14 '21 09:06 macosupdate

Hi, is everything working out for you now?

I got an error while building cargo build --lib --release --target armv7-unknown-linux-gnueabihf --manifest-path c-api/Cargo.toml

It is probably related to https://github.com/rust-lang/rust/issues/28924. (Currently cross-compilation of Rust requires you to manually specify the linker for the target architecture. Maybe cross did that for you silently.)

In the build folder I don't see any library for arm, can you create a library for arm, or guide so I can build?

Glad to hear that you have successfully built the binary. So is there still a need for me to add something to the build folder?

I am hesitant in this matter for the following reasons:

  • Using a git repository itself to distribute binary doesn't seem like a good idea. Each time the binaries are updated, the repository will grow unnecessarily larger.

  • I'm not sure what architectures should be included because there are too many of them.

CoolSpring8 avatar Jun 16 '21 12:06 CoolSpring8