Comments (4)
What I usually do in these cases is go inside the FindLpSolve.cmake
file (in the cmake/Modules
folder) and edit it to add some debugging statements.
You can do this by simply adding some message("my_message ${my_var}")
statements inside the various if
branches of the script, and at least you can figure out whether CMake is finding the library, if it can use it to compile and so on.
For example, you could put at line 28 something like:
message("Found basic path to lp_lib.h as ${LPSOLVE_INCLUDE_PATH}")
Be sure you have the .lib
version of the library as the .a
and .so
version will not work.
Having to debug CMake is unfortunately annoying, but I have found it is a necessity on Windows given the non-existence of default paths (and also given that the scripts we use to find LpSolve and Eigen are not officially from CMake and I'm not that much of a CMake expert to make them more foolproof).
Let me know if you manage to figure out exactly which step breaks.
from ai-toolbox.
Tried a bunch of things, including putting a copy of lpsolve55.dll in System32 and a number of other locations. Finally, I managed to stop the "missing" errors but wound up with "Could not link against lpsolve55!" error. This one is very difficult to troubleshoot, but compiling a test .cpp file came back with an error about linking to dlfcn.h. This file exists in the MinGW/include folder.
Tried installing on OSX machine. The library name is not 'lpsolve55.a' but 'liblpsolve55.a'. Are you aware of that fact? So, on the Apple machine, the error remains as "Missing: LPSOLVE_LIBRARIES".
So I'm unable to build on either platform.
from ai-toolbox.
I've never used MinGW to compile the library to be honest, my tests with Windows were always with Visual Studio.
On Mac, and also on Linux, library files are always prefixed with "lib". It's normal, and the build system expects it and automatically adjusts for it. But I think on a Mac the library should have the suffix .dylib
, not .a
. In issue #35 and #41 two people managed to build the library on Mac, and you can see from their logs that it is the case.
Not sure where they got the library though, as I'm unfamiliar with Macs.
from ai-toolbox.
Hi, did you manage to make it work? If you don't need help anymore otherwise I can close this issue.
from ai-toolbox.
Related Issues (20)
- Python module problem HOT 26
- Using the Toolbox to solve the Tag problem HOT 4
- Save POMDP policy HOT 6
- Sparse Matrix's on POMDP model HOT 22
- Improve serialization for MDP and POMDP Sparse Models HOT 1
- Problem with make HOT 5
- Make cannot find .hpp file in Boost HOT 2
- Errors when compiling tutorials HOT 5
- Can't find Lpsolve when run cmake HOT 9
- Using AI-Toolbox with OMNeT++ HOT 2
- Make issue HOT 9
- Not able to find "compare" file HOT 3
- Trouble installing and running AIToolbox HOT 9
- about LP_Solve HOT 13
- error C3779: 'AIToolbox::IndexMapIterator<IdsIterator,Container>::operator *': a function that returns 'auto' cannot be used before it is defined HOT 11
- Better Project Setup Tutorial HOT 6
- C++: error: expected โ)โ before โelementsNโ HOT 10
- Problems when building the library HOT 4
- Sparse Matrix: Space Time Complexity while assigning and accessing an element. HOT 1
- Can't build because of lpslove HOT 16
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 ai-toolbox.