GithubHelp home page GithubHelp logo

Comments (5)

sbc100 avatar sbc100 commented on August 16, 2024

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.

notsilverhoft avatar notsilverhoft commented on August 16, 2024

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.

sbc100 avatar sbc100 commented on August 16, 2024

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.

notsilverhoft avatar notsilverhoft commented on August 16, 2024

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.

notsilverhoft avatar notsilverhoft commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.