Code Monkey home page Code Monkey logo

Comments (4)

Svalorzen avatar Svalorzen commented on June 24, 2024 1

It seems I forgot to link the Python libraries against the .cpp implementations. I'll fix this ASAP and add a couple of easy tests just to check that everything is working. I only had MDP tests so I unfortunately missed this. Thanks for the report!

from ai-toolbox.

Svalorzen avatar Svalorzen commented on June 24, 2024

I seem to have fixed this, however fixing it revealed a worse problem: CMake does not seem to be able to discriminate between static and shared libraries.

This is a problem since lpsolve can be found in both static and shared forms. I can't seem to be able to make linking work with the static version since the Python library is shared.

This means that we'd need to automatically understand whether CMake could find a shared version, and depending if Python was requested or not stop the configuring process. I'm looking around but there does not seem to be a portable way to do this, so I'm still trying to understand what the best way of doing this is.

from ai-toolbox.

Svalorzen avatar Svalorzen commented on June 24, 2024

I've resolved this by simply emitting a warning if lpsolve libraries may be static, since we may not be able to link Python in this way (the default static Ubuntu ones in liblpsolve55-dev are not compiled with -fpic). However, we cannot know for certain since the user may have compiled his/her own, and there is no real cross platform way to be sure.

So we just emit the CMake warning and hope for the best.

Let me know if it works again!

from ai-toolbox.

omangin avatar omangin commented on June 24, 2024

It seems that the problem is solved now! Thanks a lot.

from ai-toolbox.

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.