-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation on Windows #59
Comments
Hi, Thanks for reaching out. Unfortunately, I have not worked on Windows for years so I was never able to try L4CasADi on Windows. That being said, it looks like many would like to use it on Windows, so it would be fantastic if you could get this to work. In [1] there are arguments passed to CMAKE. Possibly adding the right flag here could help? Let me know if this works! Thanks [1] Line 36 in c4d7b2e
|
Hi, any luck here? Thanks |
Haven't tried since as I had other things to do before the Christmas break... I'll take a another shot at it in January! |
Okay.. I spent way to much time on this... After trying everything I could think of, I've decided that error on warning needed to be set as it is not the default option... Setting that to OFF obviously works. I did not find this line as CMAKE_COMPILE_WARNING_AS_ERROR was introduced 3.24 of CMake and I did not know about it (as I am using older CMake versions for my projects). I would suggest to set this to OFF by default and only setting this to ON for the developpers (maybe ON only on Debug?). Whatever you chose, I made a PR so you guys can discuss this at the right place |
Hi there! We are planning to use l4casadi in optimal control (in conjonction with bioptim). For that, I was trying to compile l4casadi with Windows.
This actually works just fine, except when using
pip install .
. The reason is that, for some reason the flag "/WX" is automatically set ("treat warning as error"). Unfortunately, there is one warning which I cannot solve. I am pasting you the full output of the compilation. Please note the relevant line contains "error C2220" (sorry for the french output, my computed is set to my native language)I tried to manually set
$env:CFLAGS="/W-
(OFF), but I get :which basically means both /WX and /WX- are set so it ignores my cries...
Any idea why fail on warning is set (or how to fix the warnings)?
Thanks!
The text was updated successfully, but these errors were encountered: