From: Thomas H. <th...@in...> - 2011-12-11 14:37:51
|
Volker, I've added a new feature to the plugin for you to disable the path management. It seems to work, but I would appreciate if you'd give it a try as well before I release it. The button to disable the path management can be found on the AVR -> Paths preference page. I have attached it to this mail, but I think sourceforge lists do not allow attachments, so if it is not there then send me (th...@in...) your email address and I will forward it to you. BTW, I am working on a much improved path management, where the plugin will support any number of toolchains concurrently and where they can be selected on a project or even on a build configuration basis. The GUI is basically done, but rewriting the internal management code will take some more effort. Cheers, Thomas On 05.12.2011 13:19, Volker Kuhlmann wrote: > On Mon 05 Dec 2011 01:53:14 NZDT +1300, Thomas Holland wrote: > > Hi Thomas, > > Thanks! > >> Have you tried to change the path to "avr-gcc" in the Eclipse >> Preferences? (Preferences -> AVR -> Paths) > Yes just now, and it's not good. > > It is possible to beat eclipse mostly into submission by starting with a > very limited $PATH (env .../4.6.2/bin:/bin:/usr/bin eclipse). Those > avr-gcc preferences are then changed to (in my case) > /opt/cross/avr/lib64/gcc/avr/4.6.2/bin, still with path source "system". > Ok so far. > > Starting eclipse normally again with the usual $PATH does not however > change that setting back, otherwise the feature would be of no use. That > 4.6.2/bin is not in the normal $PATH. > > And eclipse is being smart-arse here too, one can't set a path here of > /nowhere, or something that's already in, like /bin. > >> The Plugin prepends the path to "avr-gcc" and the path to "make", in >> that order, to the system path. > Ok, that explains what I've been seeing. > >> But this is also useful on Linux for changing to a different Toolchain >> not located in the system path, something I think you are trying to do. > Yes, but I have a script for that, run-avr-gcc-462 which prepends the > versioned bin directory to $PATH before doing an exec. That script is > needed for running the Arduino IDE, with which neither the compiler name > nor the PATH can be adjusted. Adjusting the compiler name would be a > nightmare anyway (too many executables), and I sure don't want to > remember or type "/opt/cross/avr/lib64/gcc/avr/4.6.2/bin" all the time. > > Sorry, from my point of view I give this feature a pain-for-no-gain > rating... :-( > > Perhaps it's possible to set up a toolchain for each gcc version here. > >> Haven't seen that effect before. Could you please copy and paste the >> content of the console window? Maybe I can decipher whats happening on >> your system. > Thanks, will do. > > Greetings, > > Volker > |