When I want to run programs that use the YARP language bindings, I find the following instructions.
What is the meaning of the following instruction?
How do I need to operate specifically?
https://www.yarp.it/yarp_swig.html#yarp_swig_configure
There are basic examples in the "bindings" subdirectory of the YARP source code for all the supported languages. There are a few important things to be aware of:
When you compiled the bindings, a shared library (.so/.dll/.pyd/...) was created. This library needs to be in your operating system's library path. On Linux, if you are in the build directory, you can do something like one of:
setenv LD_LIBRARY_PATH $PWD:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
On Windows, you can update your PATH environment variable.
When you compiled the bindings, one or many wrapper files may have been produced in your language of interest. These files will need to be in whatever path is appropriate to guide your language's interpreter/compiler/... to find them.
Hi @YANGGANG1971,
As a general posting issue, it's good to know your configuration (as mentioned in the issue templates): OS, as well as how you tried to install YARP and how you tried to install the bindings.
As general pointers:
sudo apt install swig on an Ubuntu) and some headers (e.g. sudo apt install python-dev for Python on Ubuntu).YARP_COMPILE_BINDINGS and CREATE_PYTHON can be as simple as cmake .. -DYARP_COMPILE_BINDINGS=ON -DCREATE_PYTHON=ON for Python on Ubuntu).make; sudo make install on Ubuntu).Hope this helps!
Most helpful comment
Hi @YANGGANG1971,
As a general posting issue, it's good to know your configuration (as mentioned in the issue templates): OS, as well as how you tried to install YARP and how you tried to install the bindings.
As general pointers:
sudo apt install swigon an Ubuntu) and some headers (e.g.sudo apt install python-devfor Python on Ubuntu).YARP_COMPILE_BINDINGSandCREATE_PYTHONcan be as simple ascmake .. -DYARP_COMPILE_BINDINGS=ON -DCREATE_PYTHON=ONfor Python on Ubuntu).make; sudo make installon Ubuntu).Hope this helps!