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

can't built in linux #8

Open
jz5121 opened this issue Dec 8, 2021 · 1 comment
Open

can't built in linux #8

jz5121 opened this issue Dec 8, 2021 · 1 comment

Comments

@jz5121
Copy link

jz5121 commented Dec 8, 2021

OS: arch linux
GCC: 11
built with error in Yoga:

In file included from /home/x/apl-core-library/build/yoga-prefix/src/yoga/yoga/event/event.cpp:7:
/home/x/apl-core-library/build/yoga-prefix/src/yoga/yoga/event/event.h:46:31: error: ‘uint8_t’ was not declared in this scope
   46 |   std::array<int, static_cast<uint8_t>(LayoutPassReason::COUNT)>

In latest yoga, the event.h has included the <stdint.h>
can you please consider to patch it?
Thanks!

@tschaffter
Copy link

tschaffter commented Jan 23, 2022

I had the same issue when building this project (v1.8.1) on Debian 11. More information can be found in this ticket. This PR shows how to patch the yoga-layout package. To summarize, the issue is solved by adding the following lines at the end of the file patches/yoga.patch included with this repository. I can open a PR if you accept them.

diff --git a/yoga/event/event.h b/yoga/event/event.h
index 39b0739..8e5edb1 100644
--- a/yoga/event/event.h
+++ a/yoga/event/event.h
@@ -10,6 +10,7 @@
 #include <vector>
 #include <array>
 #include <yoga/YGEnums.h>
+#include <stdint.h>

 struct YGConfig;
 struct YGNode;

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