Skip to content
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

Install from source code errors and limitations #340

Open
vera121 opened this issue Aug 6, 2024 · 1 comment
Open

Install from source code errors and limitations #340

vera121 opened this issue Aug 6, 2024 · 1 comment

Comments

@vera121
Copy link

vera121 commented Aug 6, 2024

Is there any limitation on the dependency tools version for build from source setup?
I tried to use commands like

pip install .

python setup.py install

cmake  .

but none of them works.

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

    /home/onnx-simplifier/third_party/onnx-optimizer

  does not contain a CMakeLists.txt file.


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

    /home/onnx-simplifier/third_party/pybind11

  does not contain a CMakeLists.txt file.


CMake Error at CMakeLists.txt:75 (pybind11_add_module):
  Unknown CMake command "pybind11_add_module".

Any simple instructions and requirements on how to build this repo for development debug?
BTW, I have installed all tools in requirements.txt, and use pip install onnx-simplifier elsewhere also works for my environment.

@vera121 vera121 changed the title Install from source code Install from source code errors and limitations Aug 6, 2024
@umarbutler
Copy link

I would recommend checking out OnnxSlim. I was able to install it on Python 3.12 without any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants