Documentation: Cannot Build Oryol for WASM, Android or Linux

Aperta
#296 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
18/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
android, c, cmake, cpp, linux, python, wasm
Ambito
build-system

Direzione di ricerca

The failures come from fips-unittestpp's CheckMacros.h and ExecuteTest.h (exception flags) and from the Map.h Insert call in the oryol Core containers, across the linux, android and emsc builds. Start by reading the cross-compiling section of the fips docs and reproducing one target, such as linux-make-debug. Done means the docs or build config produce a successful build for each target, and the issue author has confirmed it.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I'm following along with the examples in the documentation and I'm up to the section on cross compiling Oryol. I can't get this to work on my machine. I'm not sure if this issue should be submitted to the fips or the oryol repository.

The linux-make-debug build runs into this -fexception related error in multiple files:

/home/jdh/Documents/projects/hypersnake-workspace/fips-unittestpp/UnitTest++/src/CheckMacros.h:41:16: error: exception handling disabled, use ‘-fexceptions’ to enable
   41 |         catch (...) { \
      |                ^~~

Full output: linux.txt

The android-make-release build doesn't recognize a linker option

[ 45%] Linking CXX shared library libIOQueueSample.so
ld: error: unknown argument '-framework'
ld: error: cannot open Foundation: No such file or directory
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

Full output: android.txt

The emsc-make-release build runs into two types of error. The first is related to this Map implementation:

/home/jdh/Documents/projects/hypersnake-workspace/oryol/code/Modules/Core/Containers/Map.h:430:11: error: no member named 'Insert' in 'Map<KEY, VALUE>'
  430 |     this->Insert(KeyValuePair<KEY, VALUE>(key, value));
      |     ~~~~  ^

The second is another issue with exception handling:

/home/jdh/Documents/projects/hypersnake-workspace/fips-unittestpp/UnitTest++/src/ExecuteTest.h:20:2: error: cannot use 'try' with exceptions disabled
   20 |         try
      |         ^

Full output: wasm.txt

Lingua principale
Python
Stelle
506
Fork
84
Merge medio
13h 14m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di floooh/fips

Tutte le issue di floooh/fips

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.