Closed Private0xCC closed 4 years ago
As a workaround, you can use the ev3devBrowser.env
setting for this extension. For example, add something like this to .vscode/settings.json
.
{
"ev3devBrowser.env": {
"LD_LIBRARY_PATH": "/home/robot/libev3dev"
}
}
As a workaround, you can use the
ev3devBrowser.env
setting for this extension. For example, add something like this to.vscode/settings.json
.{ "ev3devBrowser.env": { "LD_LIBRARY_PATH": "/home/robot/libev3dev" } }
Thank you very much,The perfect solution
The environment variables of F5 running the program on ev3 are inconsistent with those of SSH terminal, resulting in the program not being able to load the Shared library properly. The error message after F5 is as follows:
LD_LIBRARY_PATH is already set in ~/.profile, and make sure libev3dev.so exists. Running the program through an SSH terminal is no problem. I've compared the environment variables in both ways,They're not the same。