User forums > Help
Setting enviroment variable for cross compiling
CmKaHo:
Yes. It is really required to set environment variable for cross compiling (at least in my case). Solution mentioned by Biplab works fine (i used bash export before).
The problem is, that I am developping cross application (PPC) and native application (x86) in one time. So I have to manually switch on and off this variable - works, but uncomfortable.
mandrav:
Post a feature request for the env.vars plugin. It shouldn't be difficult to add per-project/target env. variables.
MortenMacFly:
--- Quote from: mandrav on April 25, 2007, 12:12:30 am ---Post a feature request for the env.vars plugin. It shouldn't be difficult to add per-project/target env. variables.
--- End quote ---
Well this would only make sense if the envvars are stored in the project file... is that what you mean?
I had the idea to provide the envvars plugin with the possibility to store different sets of envvars (not only one). The sets can than be selected (similar to the global variables) but are project-independent. I would have found that useful some month ago but didn't get it ready (so far)...
Anyways: IIRC there was a time where the custom variables were *also* exported to envvars if setup. Should this feature return? (I know it's difficult in case it overwrites a real "global" system variable but this would be the same for the plugin anyway...)
With regards, Morten.
mandrav:
--- Quote ---Well this would only make sense if the envvars are stored in the project file... is that what you mean?
--- End quote ---
Yes.
--- Quote ---Anyways: IIRC there was a time where the custom variables were *also* exported to envvars if setup. Should this feature return?
--- End quote ---
That's a possibility too :).
MortenMacFly:
--- Quote from: mandrav on April 25, 2007, 08:49:43 am ---That's a possibility too :).
--- End quote ---
Looking into it... it seems to be as simple as to modify compileroptionsbase.cpp "SetVar", "UnsetVar" and "UnsetAllVars" accordingly... Should it really be as simple as that?!
With regards, Morten.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version