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

build error #46

Open
alireza11048 opened this issue Jan 11, 2023 · 4 comments
Open

build error #46

alireza11048 opened this issue Jan 11, 2023 · 4 comments

Comments

@alireza11048
Copy link

Hi,
executing "cmake .." gives the following error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
SRPC_INCLUDE_DIR
used as include directory in directory /home/netopeer/netopeer/sysrepo-plugin-interfaces
used as include directory in directory /home/netopeer/netopeer/sysrepo-plugin-interfaces

-- Configuring incomplete, errors occurred!

any idea to fix it?

@zinccyy
Copy link
Contributor

zinccyy commented Jan 12, 2023

Hi,

sorry for the inconvenience, the README has been updated just now.

The following library is needed for the plugin build: https://github.com/telekom/sysrepo-plugins-common
The build/installation instructions are provided in the README of the library.

@alireza11048
Copy link
Author

thanks for the response, that problem was fixed by installing the mentioned library.
but another problem during the build is, running the below command gives another error:

netopeer@netopeer:~/netopeer/sysrepo-plugin-interfaces/build$ make -j$(nproc) install
make: *** No rule to make target 'install'.  Stop.

any idea to fix it?

@a-trantham
Copy link

I am also facing the same issue. It appears there is no install target in the makefile.

$ make help
The following are some of the valid targets for this Makefile:
... all (the default if no target is provided)
... clean
... depend
... rebuild_cache
... edit_cache

@zinccyy
Copy link
Contributor

zinccyy commented Feb 13, 2023

The build documentation in the README has been updated and merged to main. As for the make install command, there are two units being built: the standalone application and the sysrepo-plugind module. If you need to install the application, you can do that by invoking make install. However, as for the module, you need to manually run sysrepo-plugind -P libsrplg-ietf-interfaces.so. The built module can be found in build/src/interfaces/ directory once the plugin is compiled.

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

3 participants