Git Product home page Git Product logo

Comments (3)

wisk avatar wisk commented on August 21, 2024

Hi archey and thanks for your message.

I'm not a Linux packaging guru, so may I ask you some questions to fulfill your need?

  • Regarding the first two questions; I'm not confident about the location of shared libraries dependencies.
    The initial problem is that medusa needs libraries to work (e.g.: boost, ogdf, qt5, soci, and so on). Some of them are not packaged.
    Basically, I'm trying to get rid of these dependencies by linked them as a static libraries and using the project hunter (https://github.com/ruslo/hunter). But it's more tedious than I though since some libraries failed to compile/link as static libraries.
    The easiest solution would be to package these dependencies as shared library, but I've no clue how to force Linux to use .so files provided by medusa (, to tell the true I'm not even sure it's possible).
  • I think pybind11 provides a solution to select the python version during the compilation, the thing is: which python version should be used by default? Is it possible to provide two different libraries for each version? I'll try to take a look.
  • That's a good idea; at this time, the default module location is ., because it's easier to test module and debug medusa. I'll add an option to override this default value for packaged version. :)

from medusa.

archey avatar archey commented on August 21, 2024

@wisk in my opinion the external modules such as boost and ogdf and such its the pkgers responsability to get support for those. As in add them as a pkg or what not, we specifically had to pull in ogdf, but boost is a default library in most linux distributions. I think if you move it all to a static library setup, it might make it more difficult to pkg.

Python version, I used a sed line to just change the default to python2 as it finds python3 no problem.

sed -i 's|find_package(PythonLibs REQUIRED)|find_package(PythonLibs 2 REQUIRED)|' src/ui/python/CMakeLists.txt

from medusa.

archey avatar archey commented on August 21, 2024

To be FHS compliant most libraries will go into /usr/lib/ or /usr/lib/pkgname, and that is currently how my patch file works. It drops the libs and bins into the correct locations. I can provide it, if youd like

from medusa.

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.