-
Notifications
You must be signed in to change notification settings - Fork 44
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
CMake Error at libonvif/CMakeLists.txt:63 #75
Comments
Copying the /home/mangrove/libonvif/CMakeLists.txt to /home/mangrove/libonvif/libonvif/pybind11 ~/libonvif/build$ cmake -DBUILD_GUI=ON .. CMake Error at libonvif/pybind11/CMakeLists.txt:41 (add_subdirectory): CMake Error at libonvif/pybind11/CMakeLists.txt:43 (add_subdirectory): CMake Error at libonvif/pybind11/CMakeLists.txt:64 (install): CMake Error at libonvif/pybind11/CMakeLists.txt:69 (install): CMake Error at libonvif/CMakeLists.txt:65 (pybind11_add_module): -- Configuring incomplete, errors occurred! |
Hello, thank you for reaching out. It definitely looks like something is missing. If I have to guess, I would think that the git clone was done without the recursive flag. This is necessary to get the pybind11 and libavio sub directories to populate. I would suggest deleting the libonvif directory completely and re-starting the git clone from scratch.
You will also need the sudo apt commands and the python environment set up as per the installation instructions. If you have already done these, it is not necessary to repeat. If you have successfully cloned with recursive flag, the pybind11 sub directory will be populated. If not, there will be a pybind11 sub directory, but it will be empty. This applies to the libavio sub directory as well. If these sub directories are populated, the cmake command should work. If this is not the case, please let me know, we can investigate further. Best Regards, Stephen |
Thanks for the reply and help!
I did pip install libonvif and libavio before onvif-gui I also did the onvif-util install, which worked perfectly:
|
Thank you for the so much for the feedback, I did not realize that there was an error in the Build From Source Instructions. The step to install onvif-gui should be slightly different than the previous. You want to download the pip package rather than compile. The command is
rather than the 'pip install .' shown. This will bring in the dependencies like loguru. |
I am happy to help out :) Apparently, loguru is not in the right place:
|
Thank you so much for your patience. After the latest error, I took a closer look at the installation package and found a couple issues that have evolved since it was first put together, and it has been updated. Additionally, It looks like you might have installed the package in the system python as well as to the virtual environment. This might explain the loguru error when it seems to have been installed in the virtual environment. I would recommend attempting to remove the onvif-gui install in the system python. The best chance for getting onvif-gui to work would be to wipe the python virtual environment and start over fresh. Assuming that you start from the command prompt without starting the virtual environment and the myenv folder is in the home directory:
|
Ubuntu Studio OS 22.04
mangrove@mangrove-hpelitedesk800g3dm35w:~/libonvif/build$ cmake -DBUILD_GUI=ON ..
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.13")
CMake Error at libonvif/CMakeLists.txt:63 (add_subdirectory):
The source directory
does not contain a CMakeLists.txt file.
CMake Error at libonvif/CMakeLists.txt:65 (pybind11_add_module):
Unknown CMake command "pybind11_add_module".
-- Configuring incomplete, errors occurred!
See also "/home/mangrove/libonvif/build/CMakeFiles/CMakeOutput.log".
The text was updated successfully, but these errors were encountered: