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

Documentation: Cannot Build Oryol for WASM, Android or Linux #296

Open
jdhackshaw opened this issue Jun 27, 2024 · 1 comment
Open

Documentation: Cannot Build Oryol for WASM, Android or Linux #296

jdhackshaw opened this issue Jun 27, 2024 · 1 comment

Comments

@jdhackshaw
Copy link

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

@floooh
Copy link
Owner

floooh commented Jun 27, 2024

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).

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