I'm sure this question comes up waaaay to often in this list, and I apologize if I've missed the obvious answer. I did spend the last two hours looking for a solution and trying various things, but to no avail. I'm trying to run a command-line app (text-only). It's a cross-compiler tool for which we only have Windows binaries. The app works fine, but when I run it (i.e. to compile a test file), I see: $ wine c:\\diab\\5.2.1.0\\WIN32\\bin\\dcc -c -o obj/hello.o hello.c err:imagelist:ImageList_ReplaceIcon no color! err:imagelist:ImageList_ReplaceIcon no color! err:imagelist:ImageList_ReplaceIcon no color! err:imagelist:ImageList_ReplaceIcon no color! err:imagelist:ImageList_ReplaceIcon no color! err:imagelist:ImageList_ReplaceIcon no color! err:imagelist:ImageList_ReplaceIcon no color! err:imagelist:ImageList_ReplaceIcon no color! Looked to me like this was trying to do something in X (even though the app produces NO graphical output), so I tried overriding the DISPLAY variable to an invalid display: $ WINEPREFIX=/work/diab DISPLAY=qqq:0.0 c:\\diab\\5.2.1.0\\WIN32\\bin\\dcc -c -o obj/hello.o hello.c _X11TransSocketINETConnect() can't get address for qqq:6000: Name or service not known err:imagelist:ImageList_ReplaceIcon no color! err:imagelist:ImageList_ReplaceIcon no color! err:imagelist:ImageList_ReplaceIcon no color! err:imagelist:ImageList_ReplaceIcon no color! _X11TransSocketINETConnect() can't get address for qqq:6000: Name or service not known err:imagelist:ImageList_ReplaceIcon no color! err:imagelist:ImageList_ReplaceIcon no color! err:imagelist:ImageList_ReplaceIcon no color! err:imagelist:ImageList_ReplaceIcon no color! So it's definitely trying to connect to an X server. Should I expect this? If so, is there any way to not do this? This is a compiler, so speed of execution is important (the resulting app has several hundred files!). I'd like to eliminate any extra overhead if possible. (I know, if performance is a problem then don't use an emulated environment.....but the wine solution would save us the $3000 required to update our compiler to a newer version with Linux support......). I tried configuring the HKCU\Software\Wine\Drivers "Graphics"="null", and other settings which didn't seem to have any effect. I saw references to the "nulldriver" graphics driver, but couldn't see how to configure this (and didn't even know if it would change what I am seeing!). Any help/hints would be appreciated.... Thanks, Steve -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Steve Hein (ssh@sgi.com) Engineering Diagnostics/Software Silicon Graphics, Inc. 1168 Industrial Blvd. Phone: (715) 726-8410 Chippewa Falls, WI 54729 Fax: (715) 726-6715 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
There is an easy solution for this, just use Xvfb, that is just a dummy virtual X server. If you already have a X server running on :0 you have to use :1, so you issue the following command: Xvfb -ac :1 & after that, just set the variable DISPLAY to :1, and execute what you want. export DISPLAY=:1 wine c:\\diab\\5.2.1.0\\WIN32\\bin\\dcc -c -o obj/hello.o hello.c Hope, this helps, Andr? Carvalho Steven Hein wrote:> I'm sure this question comes up waaaay to often in this > list, and I apologize if I've missed the obvious answer. > I did spend the last two hours looking for a solution > and trying various things, but to no avail. > > I'm trying to run a command-line app (text-only). It's a > cross-compiler tool for which we only have Windows binaries. > The app works fine, but when I run it (i.e. to compile a > test file), I see: > > $ wine c:\\diab\\5.2.1.0\\WIN32\\bin\\dcc -c -o obj/hello.o hello.c > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > > Looked to me like this was trying to do something in X > (even though the app produces NO graphical output), > so I tried overriding the DISPLAY variable to an invalid > display: > > $ WINEPREFIX=/work/diab DISPLAY=qqq:0.0 > c:\\diab\\5.2.1.0\\WIN32\\bin\\dcc -c -o obj/hello.o hello.c > _X11TransSocketINETConnect() can't get address for qqq:6000: Name or > service not known > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > _X11TransSocketINETConnect() can't get address for qqq:6000: Name or > service not known > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > > So it's definitely trying to connect to an X server. > > Should I expect this? If so, is there any way to not do this? > This is a compiler, so speed of execution is important (the > resulting app has several hundred files!). I'd like to > eliminate any extra overhead if possible. > (I know, if performance is a problem then don't use an > emulated environment.....but the wine solution would save > us the $3000 required to update our compiler to a newer > version with Linux support......). > > I tried configuring the HKCU\Software\Wine\Drivers > "Graphics"="null", and other settings which didn't seem > to have any effect. I saw references to the "nulldriver" > graphics driver, but couldn't see how to configure this > (and didn't even know if it would change what I am seeing!). > > Any help/hints would be appreciated.... > > Thanks, > Steve > >
Your app must be checking for a possible graphical output, an hello world test binary can be run without any DISPLAY variable at all. [syl@wine tw]$ set |grep DISPLAY [syl@wine tw]$ wine /mnt/hdb5/reactos/output-i386/modules/rosapps/tests/hello/hello.exe Hello world [syl@wine tw]$ --- Steven Hein <ssh@sgi.com> a ?crit :> I'm sure this question comes up waaaay to often in this > list, and I apologize if I've missed the obvious answer. > I did spend the last two hours looking for a solution > and trying various things, but to no avail. > > I'm trying to run a command-line app (text-only). It's a > cross-compiler tool for which we only have Windows binaries. > The app works fine, but when I run it (i.e. to compile a > test file), I see: > > $ wine c:\\diab\\5.2.1.0\\WIN32\\bin\\dcc -c -o obj/hello.o hello.c > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > > Looked to me like this was trying to do something in X > (even though the app produces NO graphical output), > so I tried overriding the DISPLAY variable to an invalid > display: > > $ WINEPREFIX=/work/diab DISPLAY=qqq:0.0 > c:\\diab\\5.2.1.0\\WIN32\\bin\\dcc -c -o obj/hello.o hello.c > _X11TransSocketINETConnect() can't get address for qqq:6000: Name or > service not known > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > _X11TransSocketINETConnect() can't get address for qqq:6000: Name or > service not known > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > > So it's definitely trying to connect to an X server. > > Should I expect this? If so, is there any way to not do this? > This is a compiler, so speed of execution is important (the > resulting app has several hundred files!). I'd like to > eliminate any extra overhead if possible. > (I know, if performance is a problem then don't use an > emulated environment.....but the wine solution would save > us the $3000 required to update our compiler to a newer > version with Linux support......). > > I tried configuring the HKCU\Software\Wine\Drivers > "Graphics"="null", and other settings which didn't seem > to have any effect. I saw references to the "nulldriver" > graphics driver, but couldn't see how to configure this > (and didn't even know if it would change what I am seeing!). > > Any help/hints would be appreciated.... > > Thanks, > Steve > > > -- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Steve Hein (ssh@sgi.com) Engineering Diagnostics/Software > Silicon Graphics, Inc. > 1168 Industrial Blvd. Phone: (715) 726-8410 > Chippewa Falls, WI 54729 Fax: (715) 726-6715 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > _______________________________________________ > wine-users mailing list > wine-users@winehq.org > http://www.winehq.org/mailman/listinfo/wine-users >Kind regards, Sylvain Petreolle (aka Usurp) --- --- --- --- --- --- --- --- --- --- --- --- --- Tired of a proprietary Windows on your computer ? Use free ReactOS instead ( http://www.reactos.org )
Steven Hein wrote:> I'm sure this question comes up waaaay to often in this > list, and I apologize if I've missed the obvious answer. > I did spend the last two hours looking for a solution > and trying various things, but to no avail. > > I'm trying to run a command-line app (text-only). It's a > cross-compiler tool for which we only have Windows binaries. > The app works fine, but when I run it (i.e. to compile a > test file), I see: > > $ wine c:\\diab\\5.2.1.0\\WIN32\\bin\\dcc -c -o obj/hello.o hello.c > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > > Looked to me like this was trying to do something in X > (even though the app produces NO graphical output), > so I tried overriding the DISPLAY variable to an invalid > display: > > $ WINEPREFIX=/work/diab DISPLAY=qqq:0.0 > c:\\diab\\5.2.1.0\\WIN32\\bin\\dcc -c -o obj/hello.o hello.c > _X11TransSocketINETConnect() can't get address for qqq:6000: Name or > service not known > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > _X11TransSocketINETConnect() can't get address for qqq:6000: Name or > service not known > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > err:imagelist:ImageList_ReplaceIcon no color! > > So it's definitely trying to connect to an X server. > > Should I expect this? If so, is there any way to not do this? > This is a compiler, so speed of execution is important (the > resulting app has several hundred files!). I'd like to > eliminate any extra overhead if possible. > (I know, if performance is a problem then don't use an > emulated environment.....but the wine solution would save > us the $3000 required to update our compiler to a newer > version with Linux support......). > > I tried configuring the HKCU\Software\Wine\Drivers > "Graphics"="null", and other settings which didn't seem > to have any effect. I saw references to the "nulldriver" > graphics driver, but couldn't see how to configure this > (and didn't even know if it would change what I am seeing!). > > Any help/hints would be appreciated.... > > Thanks, > Steve > >I would look at dosemu.org and if that does not work running a windows install or dos7 inside of qemu. Wine at current does just enough dos to get the winapi to work. Paul R.