jbeder / yaml-cpp

A YAML parser and emitter in C++
MIT License
4.91k stars 1.78k forks source link

how to build yaml-cpp for aarch64? #1236

Closed njuhang closed 8 months ago

njuhang commented 8 months ago

I use cmake .. and make, then libyaml-cpp.a is incompatibel with aarch64linux

jbeder commented 8 months ago

Can you give more details? Is there a reason it's incompatible?

njuhang commented 8 months ago

Because if I use cmake ..&& make, it will be built for x64 platform. Now I need to cross compile it for android aarch64 platform.

jbeder commented 8 months ago

What happens if you use cmake's cross compilation tools?

njuhang commented 8 months ago

But I don't know how to do cross compilation now.

jbeder commented 8 months ago

Have you tried looking it up?

njuhang commented 8 months ago

Sorry, could you please let me know what options I can set for aarch64 cross compilation?

jbeder commented 8 months ago

Your question isn't yaml-cpp specific. Just ask in general on the internet and I'm sure you'll get an answer.