Giter Club home page Giter Club logo

Comments (4)

vissarion avatar vissarion commented on August 30, 2024

Thanks for pointing this out! We currently not support Windows for the c++ library but there is a number of workarounds if you want to try. First, use the R api for windows which is well tested and should work. Second, try to link lp_solve in windows (I am guessing that's the problem), e.g. see http://lpsolve.sourceforge.net/5.5/Build.htm Also could you please provide more info on your setup? What compiler are you using, did you compiled the lp_solve or used a binary, (dynamic linking? explicit or implicit?) etc

from volesti.

arbenede avatar arbenede commented on August 30, 2024

I was able to get past linking the lp_solve DLL however I am still getting lots of compilation errors. I am using Visual Studio C++ 2017 under Windows 10. (log is below)

Thanks!

1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------
1>Checking Build System
1>CMake does not need to re-run because C:/Users/arbenede/projects/VolEsti/volume_approximation-master/build/CMakeFiles/generate.stamp is up-to-date.
2>------ Build started: Project: vol, Configuration: Debug x64 ------
2>Building Custom Rule C:/Users/arbenede/projects/VolEsti/volume_approximation-master/test/CMakeLists.txt
2>CMake does not need to re-run because C:/Users/arbenede/projects/VolEsti/volume_approximation-master/build/CMakeFiles/generate.stamp is up-to-date.
2>cl : Command line warning D9002: ignoring unknown option '-O3'
2>cl : Command line warning D9002: ignoring unknown option '-lm'
2>cl : Command line warning D9002: ignoring unknown option '-ldl'
2>vol.cpp
2>Unknown compiler version - please run the configure tests and report the results
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\include\convex_bodies\polytopes.h(39): warning C4003: not enough arguments for function-like macro invocation 'max'
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\include\convex_bodies\polytopes.h(792): warning C4003: not enough arguments for function-like macro invocation 'max'
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(365): warning C4244: 'argument': conversion from 'double' to 'const unsigned __int64', possible loss of data
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(384): error C2146: syntax error: missing ')' before identifier 'and'
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(384): error C2065: 'and': undeclared identifier
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(384): error C2146: syntax error: missing ';' before identifier 'dimi'
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(384): error C2059: syntax error: ')'
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(386): warning C4244: '+=': conversion from 'double' to 'size_t', possible loss of data
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(386): error C2059: syntax error: ';'
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(388): error C2181: illegal else without matching if
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(393): error C2065: 'inside': undeclared identifier
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(395): error C2065: 'k': undeclared identifier
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(395): error C2065: 'i': undeclared identifier
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(398): error C2059: syntax error: '}'
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(398): error C2143: syntax error: missing ';' before '}'
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(408): error C2143: syntax error: missing ';' before '{'
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(408): error C2447: '{': missing function header (old-style formal list?)
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(443): warning C4244: 'argument': conversion from 'double' to 'const unsigned __int64', possible loss of data
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(457): error C2146: syntax error: missing ')' before identifier 'and'
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(457): error C2065: 'and': undeclared identifier
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(457): error C2146: syntax error: missing ';' before identifier 'dimi'
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(457): error C2146: syntax error: missing ';' before identifier 'and'
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(457): warning C4552: '<': result of expression not used
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(457): error C2146: syntax error: missing ';' before identifier 'dimj'
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(457): warning C4552: '>=': result of expression not used
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(457): error C2059: syntax error: ')'
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(459): error C2059: syntax error: 'const'
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(460): error C2065: 'k': undeclared identifier
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(464): error C2059: syntax error: '}'
2>c:\users\arbenede\projects\volesti\volume_approximation-master\external\minimum_ellipsoid\mcpoint.h(464): error C2143: syntax error: missing ';' before '}'
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(40): error C2653: 'ublas': is not a class or namespace name
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(40): error C2143: syntax error: missing ';' before '<'
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(40): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(40): error C2238: unexpected token(s) preceding ';'
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(41): error C2653: 'ublas': is not a class or namespace name
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(41): error C2143: syntax error: missing ';' before '<'
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(41): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(41): error C2238: unexpected token(s) preceding ';'
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(45): error C2653: 'ublas': is not a class or namespace name
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(45): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(45): error C2988: unrecognizable template declaration/definition
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(45): error C2143: syntax error: missing ',' before '<'
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(60): error C2653: 'ublas': is not a class or namespace name
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(60): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(60): error C2143: syntax error: missing ',' before '<'
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(63): error C2065: 'Lambdap': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(63): error C2065: 'LpInv': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(64): error C2065: 'not': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(64): error C2146: syntax error: missing ')' before identifier 'res'
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(64): error C2059: syntax error: ')'
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(69): error C2064: term does not evaluate to a function taking 1 arguments
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(70): error C2143: syntax error: missing ';' before '}'
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(72): error C2653: 'ublas': is not a class or namespace name
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(72): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(72): error C2143: syntax error: missing ',' before '<'
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(75): error C2065: 'Ap': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(75): error C2065: 'A': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(76): error C2065: 'A': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(77): error C2653: 'ublas': is not a class or namespace name
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(77): error C2065: 'matrix_range': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(77): error C2062: type 'double' unexpected
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(79): error C2653: 'ublas': is not a class or namespace name
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(80): error C2653: 'ublas': is not a class or namespace name
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(81): error C2065: 'sub': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(81): error C2065: 'A': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(82): error C2653: 'ublas': is not a class or namespace name
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(82): error C2065: 'Ap': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(82): error C3861: 'row': identifier not found
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(82): error C2065: 'scalar_vector': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(82): error C2062: type 'double' unexpected
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(86): error C2653: 'ublas': is not a class or namespace name
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(86): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(86): error C2143: syntax error: missing ',' before '<'
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(89): error C2065: 'res': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(89): error C2653: 'ublas': is not a class or namespace name
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(89): error C2065: 'zero_matrix': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(89): error C2062: type 'double' unexpected
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(91): error C2065: 'p': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(93): error C3861: 'res': identifier not found
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(93): error C3861: 'p': identifier not found
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(97): error C2653: 'ublas': is not a class or namespace name
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(97): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(97): error C2143: syntax error: missing ',' before '<'
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(102): error C2653: 'ublas': is not a class or namespace name
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(102): error C2062: type 'double' unexpected
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(103): error C2065: 'p': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(103): error C2065: 'dp': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(105): error C2065: 'dp': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(105): error C2653: 'ublas': is not a class or namespace name
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(105): error C2065: 'Ap': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(105): error C3861: 'trans': identifier not found
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(105): error C3861: 'prod': identifier not found
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(106): error C2065: 'Lambdap': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(106): error C2653: 'ublas': is not a class or namespace name
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(106): error C2065: 'Ap': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(107): error C2065: 'dp': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(106): error C3861: 'prod': identifier not found
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(110): error C2653: 'ublas': is not a class or namespace name
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(110): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(110): error C2143: syntax error: missing ',' before '<'
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(114): error C2065: 'Ap': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(114): error C2789: 'd': an object of const-qualified type must be initialized
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(114): note: see declaration of 'd'
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(116): error C2653: 'ublas': is not a class or namespace name
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(116): error C2062: type 'double' unexpected
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(117): error C2653: 'ublas': is not a class or namespace name
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(117): error C2062: type 'double' unexpected
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(118): error C2065: 'Ap': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(118): error C2065: 'p': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(118): error C2065: 'Lp': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(119): error C2653: 'ublas': is not a class or namespace name
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(119): error C2062: type 'double' unexpected
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(120): error C2065: 'Lp': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(120): error C2065: 'ILp': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(121): error C2065: 'M': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(121): error C2653: 'ublas': is not a class or namespace name
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(121): error C2065: 'ILp': undeclared identifier
2>C:\Users\arbenede\projects\VolEsti\volume_approximation-master\external\minimum_ellipsoid\khach.h(121): fatal error C1003: error count exceeds 100; stopping compilation
2>Done building project "vol.vcxproj" -- FAILED.
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

from volesti.

vissarion avatar vissarion commented on August 30, 2024

@arbenede is this still an issue with current develop?

from volesti.

vissarion avatar vissarion commented on August 30, 2024

Since this is quite old I am closing the issue. If this is still a problem @arbenede feel free to open it again.

from volesti.

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.