U++ framework
Do not panic. Ask here before giving up.

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 Go to previous messageGo to previous message
Oblivion is currently offline  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:

/forums/index.php?t=getfile&id=7149&private=0

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






[Updated on: Sat, 11 April 2026 10:52]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: theide Compilation Error - UPP ver 18167
Goto Forum:
  


Current Time: Sat Apr 25 14:05:55 GMT+2 2026

Total time taken to generate the page: 0.00732 seconds