Comments (5)
If you want to use liblzma you would need to build it yourself using emscripten. You would then either need to reference your version explicitly or install it in the emscripten sysroot such that it can be found at cmake time.
from emsdk.
I did, I have built it, but I have no idea what to do next, where is the sysroot directory? How would I reference it, and if I were to install it, where would I install it? I know how I can use the config prefix to set the directory for make install, but where would I install to, if that was the case?
from emsdk.
The emscripten sysroot by default lives in cache/sysroot
inside the emscripten directory. e.g. /path/to/emscripten/cache/sysroot
.
You can either install liblzma there yourself or maybe use the make install
rules for liblzma (no sudo/root required remember since this is not in the root directory). If you want the cmake to be able to find it you might also need to install the liblzma pkg-config file in cache/sysroot/lib/pkgconfig
.
Alternatively you could just skip the cmake FindPkgConfig thing and just add -I/path/to/lzma/headers
and -L/path/to/lxma/libs
and -llzma
compiler falgs.
from emsdk.
Nevermind I found that setting both PKG_CONFIG_PATH and EM_PKG_CONFIG_PATH to the Liblzma installed lib/pkg-config path, it will find the packages, now I just need to install the other packages needed, thank you, this would be great to add to the wiki, if you want I can make a pr for it.
from emsdk.
I apologize, GitHub did not load your comment, this information is still useful as I did not know you could install directly to emscripten. Thank you.
from emsdk.
Related Issues (20)
- [Bazel] [Potential solution] Cannot build multiple emscripten binaries in parallel with bazel HOT 1
- [Bazel] Add example of extracting Emscripten's output with rules_foreign_cc
- emsdk install tot command fails HOT 2
- 3.1.61 Docker image not published HOT 1
- The compilation speed is too slow. HOT 1
- [Bazel] Should the toolchain set the same variables as tools/building.py? HOT 2
- TypeError: Failed to execute 'createObjectURL' on 'URL': Overload resolution failed. HOT 1
- [Bazel] Main bootstrap script for Wasm Audio Worklets not generated HOT 3
- [Bazel] feature flags for the Emscripten toolchain HOT 18
- [Bazel] Dynamically generate Emscripten cache HOT 5
- Downloading files with urllib results in missing KB HOT 3
- THYDU𝕏
- THYDU𝕏
- THYDU𝕏
- [bazel] [rules_foreign_cc] ModuleNotFoundError: No module named 'tools' HOT 11
- wasm_cc_binary with tensorflow lite minimal example failed HOT 7
- Error when running (or linking) with GLFW HOT 1
- The latest published Docker image uses a version of CMake that appears incompatible with sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE=$dynCall HOT 8
- [bazel] Example to Bind Packages with Non-Standard Libraries HOT 2
- [bazel] Frozen Cache exception with MEMORY64=1 HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emsdk.