osqp / osqp-python

Python interface for OSQP

Home Page:https://osqp.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

codegen error

yonchien opened this issue · comments

I used the codegen like this
1576806079(1)

but it er error at CMakeLists.txt:120 (add_subdirectory):
The source directory
/home/lyj/code1/include
does not contain a CMakeLists.txt file.
and I found that the CMakeLists.txt not copy to the target_include folder. I think you have some mistake in codegen.py file

I have just run your code on my machine and it seems to work fine.

Please provide more details on your OS, Python version, OSQP version, how you installed OSQP etc.

I use linux16.04 ,python 3.5 osqp 0.6.0 I install osqp from the source code

When you say "I install osqp from the source code", what did you do specifically? Did you clone via github, and did you remember to clone submodules?

I met same issue, cmake complained the "include/" subfolder under generated code does not contain CMakeLists.txt.

CMake Error at CMakeLists.txt:120 (add_subdirectory):
The source directory

xxxxx/code/include

does not contain a CMakeLists.txt file.

I installed OSQP by pip. Any ideas? Thanks.

I had the same issue, installed 0.6.1 from conda. There's a file called osqp in include directory. Have to rename it to CMakeLists.txt to make it work.

We just released 0.6.2. Can you please check if that's resolved?

As the (confused) author of issue #48 I can confirm that my codegen problem, which was identical to the one in this issue, is resolved by the pypi 0.6.2 release of OSQP.

That's great! Thanks for confirming it.