Closed adamhall closed 4 years ago
Hey,
this doesn't look like a CMake problem, looks more like a bug in Apple Clang. It's trying to compile a file but gives an error, but the code is correct. Does this only happen when setting Python to 3, or also with Python 2? From what I am seeing the problem looks to be completely unrelated to Python.
If you want, you could go at line 161
in file src/Factored/Bandit/Algorithms/Utils/UCVE.cpp
and try to replace
newFactorCrossSum.erase(
std::remove_if(begin + 1, bound, [max, x_u = x_u, logtA12 = logtA12](const UCVE::Entry & e) { return computeValue(e, x_u, logtA12) <= max; }),
end
);
with
auto tmpMax = max;
newFactorCrossSum.erase(
std::remove_if(begin + 1, bound, [tmpMax, x_u = x_u, logtA12 = logtA12](const UCVE::Entry & e) { return computeValue(e, x_u, logtA12) <= tmpMax; }),
end
);
This might side-skip the bug. Let me know!
Thanks for the quick reply! I tried using python2.7 and got the same issue during make. So it not's python related.
I then made the updates to UCVE.cpp as you suggested above, and built using python37. It worked! And all 66 tests passed. Thanks!
I'll let you know if I have any further problems working with the library in python.
Hello,
I followed what was done in #35. I wanted to use python37, so I changed
I also made /usr/local/include/lpsolve and copied all the lp_*.h into it. I also used the bash file cedavidyang provided.
This allowed cmake to succeed. Here is the output:
And then used make and got the error:
I'm not the best at using CMake, so now I'm a little confused about how to proceed. I also tried to not build FMDP using
But I received the same error. Any thoughts?