Documentation: Cannot Build Oryol for WASM, Android or Linux
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
Yeah, Oryol is totally outdated and abandondend. I'll need to update the fips documentation to use a different sample project (fips itself is actively supported though, I use it everyday, I just haven't looked at the documentation for a long time).