Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Emscripten compilation & linking
| Re: Emscripten compilation & linking [message #61971 is a reply to message #61970] |
Sat, 11 April 2026 10:51   |
Oblivion
Messages: 1264 Registered: August 2007
|
Senior Contributor |
|
|
Hi Frederik,
Unless you're trying to compile U++ into wasm (good news, I am porting it to it and Core is already ported), here's what you need:
WASM=1 is default, you don't need to explicity set it.
In link options set: -sENVIRONMENT=web
If you are compiling a cpp project, use em++ instead of emcc.
Don't set the -o in builder. Instead, in output mode, set the target file override to myfile.js.
E.g:

Path:
PATH = "/usr/lib/emscripten;/usr/lib/emscripten/system/bin";
Path:
LIB = "/usr/lib/emscripten/system/lib;/lib";
This is for archlinux, but the correct paths should be similar in other distros or on windows.
Best regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Sat, 11 April 2026 10:52] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Sat Apr 25 14:05:55 GMT+2 2026
Total time taken to generate the page: 0.00732 seconds
|