Hi Francois Gouget,
Thanks for the reply.
Francois Gouget wrote:
On Thu, 13 Feb 2003, J. Grant wrote: [...]
I think this is a key feature, I would like to use this to set some enviroment variables, currently I have to run a batch file manually each time I start wcmd. Could this be considered for implementation please?
Why not set the environment variables on the Unix side instead? For instance in the wine wrapper script?
This could be a something to try, however I cannot find out the command line, in man page or by guessing.
Is it something like "wcmd -vars=BLAH=moo" d-aliegri mentioned this on #winehq
Regards
JG
On Fri, 14 Feb 2003, J. Grant wrote: [...]
This could be a something to try, however I cannot find out the command line, in man page or by guessing.
Is it something like "wcmd -vars=BLAH=moo" d-aliegri mentioned this on #winehq
No, I mean:
$ export BLAH=moo $ wcmd
IOW, just set the Unix environment variable before starting wine. Or to automate things, write a script that executes the above two commands, or edit wcmd itself (I believeit is a shell script that invokes the wineloader).
Hi Francois,
Thanks for your email.
Francois Gouget wrote:
On Fri, 14 Feb 2003, J. Grant wrote: [...]
This could be a something to try, however I cannot find out the command line, in man page or by guessing.
Is it something like "wcmd -vars=BLAH=moo" d-aliegri mentioned this on #winehq
No, I mean:
$ export BLAH=moo $ wcmd
IOW, just set the Unix environment variable before starting wine. Or to automate things, write a script that executes the above two commands, or edit wcmd itself (I believeit is a shell script that invokes the wineloader).
OK, thank you, I will document my results below.
VC++ 6 has been unable to use the includes, it requires two enviroment variables INCLUDE and LIB. So far I have not been able to get it to find them.
I tried the shell way, as you sugested:
$ INCLUDE=d:\vs\vc98\include:d:\chaos-src\iainlib\h $ export INCLUDE $ wcmd
I tried adding to "config"
"INCLUDE" = "d:\vs\vc98\include;d:\chaos-src\iainlib\h"
I found that I had declared the INCLUDE dir with ":" instead of ";" as DOS requires, as I had been testing in bash. I can now compile and it finds the includes and libs correctly by calling c.bat from wcmd or cmd.exe.
set INCLUDE=d:\vs\vc98\include;d:\vs\vc98\mfc\include;d:\chaos-src\iainlib\h;d:\chaos-src\chaossrc\h;d:\chaos-src\gpdumb set LIB=d:\vs\vc98\lib;d:\vs\vc98\mfc\lib;c:\chaos-src\iainlib\
Is there a way to declare the INCLUDE and LIB from bash and have Wine convert the ":" to ";" so it is usable by the win32 nmake.exe program at all?
Thanks for the help so far!
Regards
JG
On Sat, 15 Feb 2003, J. Grant wrote:
Is there a way to declare the INCLUDE and LIB from bash and have Wine convert the ":" to ";" so it is usable by the win32 nmake.exe program at all?
Thanks for the help so far!
Regards
JG
can you not just export them with the ; so wine doesn't need to convert them?
[whit@giftie whit]$ export INCLUDE="c:\foo\var\bas;d:\bar\baz" [whit@giftie whit]$ echo $INCLUDE c:\foo\var\bas;d:\bar\baz [whit@giftie whit]$ export LIB='c:\fubar;d:\oops\help' [whit@giftie whit]$ echo $LIB c:\fubar;d:\oops\help
Lawson -- ---oops---
________________________________________________________________ Sign Up for Juno Platinum Internet Access Today Only $9.95 per month! Visit www.juno.com
J. Grant wrote:
VC++ 6 has been unable to use the includes, it requires two enviroment variables INCLUDE and LIB. So far I have not been able to get it to find them.
I tried the shell way, as you sugested:
$ INCLUDE=d:\vs\vc98\include:d:\chaos-src\iainlib\h $ export INCLUDE $ wcmd
I'm having no trouble... the way I do it is I make a batch file which then calls vcvars32.bat, then runs nmake or cl.
I did have to edit vcvars32.bat to change quoting, since it looks like wcmd's quote processing is all screwed up (though I seem to recall seeing a patch about that recently).
I then run the outer batch file (foo.bat) with wine wcmd /c foo
Hi,
I'm having no trouble... the way I do it is I make a batch file which then calls vcvars32.bat, then runs nmake or cl.
I did have to edit vcvars32.bat to change quoting, since it looks like wcmd's quote processing is all screwed up (though I seem to recall seeing a patch about that recently).
I then run the outer batch file (foo.bat) with wine wcmd /c foo
yes, this seems to work, thanks for pointing this out. I could not find a man page on on wcmd when I looked... Is there one planned?
whitnl73@juno.com wrote: <snip>
can you not just export them with the ; so wine doesn't need to convert them?
[whit@giftie whit]$ export INCLUDE="c:\foo\var\bas;d:\bar\baz" [whit@giftie whit]$ echo $INCLUDE c:\foo\var\bas;d:\bar\baz [whit@giftie whit]$ export LIB='c:\fubar;d:\oops\help' [whit@giftie whit]$ echo $LIB c:\fubar;d:\oops\help
Lawson
I tried these and they solve the problem, thank you.
Cheers
JG
type help in wmcd.
yes, this seems to work, thanks for pointing this out. I could not find a man page on on wcmd when I looked... Is there one planned?
===== Sylvain Petreolle spetreolle@users.sourceforge.net Fight against Spam ! http://www.euro.cauce.org/en/index.html ICQ #170597259
"Don't think you are. Know you are." Morpheus, in "Matrix".
___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com
J. Grant wrote:
I'm having no trouble... the way I do it is I make a batch file which then calls vcvars32.bat, then runs nmake or cl.
I did have to edit vcvars32.bat to change quoting, since it looks like wcmd's quote processing is all screwed up (though I seem to recall seeing a patch about that recently).
I then run the outer batch file (foo.bat) with wine wcmd /c foo
yes, this seems to work, thanks for pointing this out. I could not find a man page on on wcmd when I looked... Is there one planned?
I think people have been getting by knowing how Microsoft's cmd works. There's a fair bit of doc about that on the web. - Dan