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)
- Failed to install 3.1.7 HOT 2
- Set a version with available linux/arm64 release HOT 1
- how to install sdl2,boost_header when i offline HOT 2
- Won't Install HOT 24
- Encounter 404 Error when Installing Emscripten SDK Version 1.38.45 HOT 3
- CMake 3.28 and C++20, error: CMAKE_CXX_COMPILER_CLANG_SCAN_DEPS-NOTFOUND HOT 11
- compile wams64 using bazel mode HOT 4
- em++ hangs when run HOT 2
- Gf
- Support `--emit-tsd` in Docker container by default HOT 2
- undeclared identifier 'strtoll_l' and use of undeclared identifier 'strtoull_l' in c++\v1\locale HOT 2
- Bazel: Python3 not found HOT 3
- (bazel) cc-toolchain-wasm does not have mandatory providers: TemplateVariableInfo HOT 2
- (bazel) Unable to fetch wasm-binaries.tar.xz for emsdk 3.1.47+ HOT 12
- emsdk activate breaks things HOT 1
- errors while running emmake make HOT 1
- Version of `wasm_cc_binary` that doesn't untar the result? HOT 4
- set -sMAXIMUM_MEMORY = 4GB & use uuid HOT 1
- [Bazel] [Potential solution] Cannot build multiple emscripten binaries in parallel with bazel HOT 1
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.