Can't find standard headers while working for Android
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- android, cpp
- Ambito
- build-system, mobile-dev
Direzione di ricerca
Start by reviewing the attached build_android.txt script alongside the linked Android setup guide, then reproduce the build and inspect the include chain through raylib-cpp/include/./RaylibException.hpp. Trace why standard headers such as stdexcept, cstring, and cmath are unavailable; done means the Android build completes with raylib-cpp without those header errors.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hi, I'm currently trying to develop a Raylib game using the raylib-cpp wrapper; following this guide and modifying a bit the launch script (that I will attach), I was able to make Raylib run on Android.
The problem is that when I start to use raylib-cpp (after following the Getting Started section obviously), I get this error message:
In file included from src/main.cpp:2:
In file included from src/engine/engine.hpp:4:
In file included fro
[build_android.txt](https://github.com/user-attachments/files/20458700/build_android.txt)
[build_android.txt](https://github.com/user-attachments/files/20458710/build_android.txt)
m raylib-cpp/include/raylib-cpp.hpp:34:
In file included from raylib-cpp/include/./AudioDevice.hpp:4:
raylib-cpp/include/././RaylibException.hpp:4:10: fatal error: 'stdexcept' file not found
4 | #include <stdexcept>
| ^~~~~~~~~~~
1 error generated.
I think every there's a linking problem regarding raylib-cpp and Android projects, because when I try using a cmake to make the project run on desktop everything works perfectly. How can I fix this?
Steps to replicate:
- Follow the guide linked to setup Android developing Raylib project
- Clone raylib-cpp into the project directory
- Run the building script
EDIT: I tried commenting the #include <stdexcept> line in the RaylibException.hpp file, and I got the same error with the #include <string>. I also commented this last include and, again, got the same error with cmath on a different file. It seems raylib-cpp can't find the standard libraries at all.
- Lingua principale
- C++
- Stelle
- 960
- Fork
- 120
- Merge medio
- 10m
- PR unite (30g)
- 1
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di RobLoach/raylib-cpp
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
RobLoach/raylib-cpp#425 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
RobLoach/raylib-cpp#427 ·
-
Code gen Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
RobLoach/raylib-cpp#415 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
RobLoach/raylib-cpp#370 · 1 commento ·
-
SDF Font Support Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
RobLoach/raylib-cpp#366 · 3 commenti ·
Tutte le issue di RobLoach/raylib-cpp
Issue simili
-
ai_reviewed
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ydb-platform/ydb#53869 · 3 commenti ·
-
bug cert blocker needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
project-chip/connectedhomeip#74373 ·
-
[request] tracy/0.14.1 Apertaupstream update
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
conan-io/conan-center-index#31035 ·
-
Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
vllm-project/vllm-ascend#17329 ·