-
Notifications
You must be signed in to change notification settings - Fork 198
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
Setup environment variable for Debug/Run configuration from scripts #464
Comments
Thanks @PengZheng for this enhancement request. I suppose for now your workaround is to run/source these scripts before starting Eclipse? @betamaxbandit This is very similar to the work you have recently been working on. I wonder if there would be a benefit of making this standard that a script can be provided to source/run before launching make/gdb/etc. WDYT? |
Yes that seems like a good idea. |
How could we make scripting for environment setup portable across all host operating systems without installing extra native tools? I wonder if the Eclipse properties file format would be most appropriate here rather than a shell script since all we need are key/value pairs. |
I'm now aware of at least three tool chains that use the source (on bash) or run bat file (on Windows) to setup environment. So the idea is to integrate with what the tool chains already produce. FTR the tool chains are:
|
Thanks for suggesting this workaround. It works for my case. Previously I was too worried about affecting the dynamic library loading of the entire development environment. Thus I setup Debug/Run configuration manually, using a script to extract LD_LIBRARY_PATH from the script into xclip, with all double quotation marks removed. |
When using Conan package manager, various dependencies are managed by Conan, and shared libraries are stored in Conan's cache of mysterious path like
/home/peng/.conan/data/gtest/1.10.0/_/_/package/e3949dc4f4b1aedb09a080372c49d53e7ce5c305/lib
. To find these shared libraries, Conan'svirtualrunenv
generator generates scripts like the following:CLion/VScode supports setting environment variables using these scripts.
Check https://github.com/apache/celix/blob/master/documents/building/dev_celix_with_clion.md#configuring-clion for an example.
Correction: for new version of Conan,
environment_run.sh.env
rather thanactivate_run.sh
should be used.It would be nice if Eclipse CDT could do the same.
The text was updated successfully, but these errors were encountered: