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

file not found #include <boost/preprocessor/control/expr_iif.hpp> #447

Open
juskek opened this issue Jan 2, 2024 · 1 comment
Open

file not found #include <boost/preprocessor/control/expr_iif.hpp> #447

juskek opened this issue Jan 2, 2024 · 1 comment

Comments

@juskek
Copy link

juskek commented Jan 2, 2024

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. npx create-expo-app -e with-tv
  2. export EXPO_TV=1
  3. npx expo prebuild
  4. yarn ios
  5. yarn android

yarn ios works fine, but yarn android throws the following error:

In file included from /Users/justinkek/.gradle/caches/transforms-3/03658dcb6075d6cbc41f64dd0325babd/transformed/jetified-react-android-0.73.1-2-debug/prefab/modules/folly_runtime/include/folly/container/View.h:20:
  /Users/justinkek/.gradle/caches/transforms-3/03658dcb6075d6cbc41f64dd0325babd/transformed/jetified-react-android-0.73.1-2-debug/prefab/modules/folly_runtime/include/folly/functional/Invoke.h:22:10: fatal error: 'boost/preprocessor/control/expr_iif.hpp' file not found
  #include <boost/preprocessor/control/expr_iif.hpp>
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1 error generated.
  ninja: build stopped: subcommand failed.

  C++ build system [build] failed while executing:
      /Users/justinkek/Library/Android/sdk/cmake/3.22.1/bin/ninja \
        -C \
        /Users/justinkek/Desktop/Repositories/theodo/rntv/rntv-app/node_modules/expo-modules-core/android/.cxx/Debug/o3h96h64/arm64-v8a \
        expo-modules-core
    from /Users/justinkek/Desktop/Repositories/theodo/rntv/rntv-app/node_modules/expo-modules-core/android

What platform(s) does this occur on?
Android

Environment
environment info:
System:
OS: macOS Sonoma 14.1.1
Binaries:
Node: v18.19.0
npm: 10.2.3
Packages:
"@react-native-tvos/config-tv": "~0.0.4",
"expo": "^50.0.0-preview.4",
"expo-splash-screen": "~0.26.0",
"expo-status-bar": "~1.11.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "npm:react-native-tvos@~0.73.1-0"

@juskek
Copy link
Author

juskek commented Jan 3, 2024

Spotted more information further up the logs - > Task :expo-modules-core:buildCMakeDebug[arm64-v8a] FAILED

$ expo run:android
› Opening emulator Android_TV_1080p_API_30
› Building app...
Configuration on demand is an incubating feature.

> Configure project :expo

Using expo modules
  - expo-constants (15.4.2)
  - expo-file-system (16.0.2)
  - expo-font (11.10.0)
  - expo-keep-awake (12.8.0)
  - expo-modules-core (1.11.4)
  - expo-modules-core$android-annotation (1.11.4)
  - expo-modules-core$android-annotation-processor (1.11.4)
  - expo-splash-screen (0.26.1)


> Task :expo-modules-core:buildCMakeDebug[arm64-v8a]

...
... more logs ...
...

C/C++: /Users/justinkek/.gradle/caches/transforms-3/03658dcb6075d6cbc41f64dd0325babd/transformed/jetified-react-android-0.73.1-2-debug/prefab/modules/folly_runtime/include/folly/functional/Invoke.h:22:10: fatal error: 'boost/preprocessor/control/expr_iif.hpp' file not found
C/C++: #include <boost/preprocessor/control/expr_iif.hpp>
C/C++:          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C/C++: 1 error generated.

> Task :expo-modules-core:buildCMakeDebug[arm64-v8a] FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':expo-modules-core:buildCMakeDebug[arm64-v8a]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `/Users/justinkek/Desktop/Repositories/theodo/rntv/expo-tv-app/node_modules/expo-modules-core/android/.cxx/Debug/qn1625u5/arm64-v8a'

I'm on an Intel Mac, does the fact that arm64 is running have anything to do with it?

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

1 participant