harryvanderwolf@hccnet.nl
2005-May-19 04:56 UTC
[Wine]Start Windows application from another windows application
Hi all, Being a little (completely) fed-up with windows, I'd like to make a complete switch to Linux, which I already use for about 90%. I still use a specific panorama photo stiching program within WinXP called PTGui. The PTGui program runs fine within Wine. However, PTgui knows/uses two "helper" programs called autopano(.exe) and enblend(.exe). Both are console based executables doing calculations for ptgui. PTGui has the option to call them from within PTGui. After the (external) program (for example autopano) has run, the output is somehow picked up and used within ptgui. The same works for enblend. This combination of programs doesn't work in wine. I don't even think they get started as normally (in windows) a textbased cmd windows pops up and shows the "activity". When finished the text based cmd window closes and the output is returned to PTGui. So in short: how can I start a second windows (text based) program from the first (GUI) program in Wine ? Note: I also tried to use the linux ports/versions of the autopano tool and enblend tool, but that did not succeed either. Maybe because I'm to new to the subject. If anyone of you know how I can combine these versions instead of the windows versions, I would be very happy too. Your help will be appreciated. kind regards, Harry ps: yes, I know hugin for unixes and I'm experimenting with it right now, but I do have a (company) laptop with XP which I can't change and ptgui is a very nice program.)
Duane Clark
2005-May-19 11:21 UTC
[Wine]Re: Start Windows application from another windows application
harryvanderwolf@hccnet.nl wrote:> Hi all, > > Being a little (completely) fed-up with windows, I'd like to make a > complete switch to Linux, which I already use for about 90%. I still > use a specific panorama photo stiching program within WinXP called > PTGui. The PTGui program runs fine within Wine. However, PTgui > knows/uses two "helper" programs called autopano(.exe) and > enblend(.exe). Both are console based executables doing calculations > for ptgui. PTGui has the option to call them from within PTGui. After > the (external) program (for example autopano) has run, the output is > somehow picked up and used within ptgui. The same works for enblend.I don't have an answer for you, unfortunately. I just thought I would mention that in general programs running under Wine can execute additional programs with no problem. I use an engineering program, where a GUI frontend executes a series of separate executables. And the gui sends and receives data from the programs via pipes. The difference from your example is that my program does not open terminal windows to do that. So I am guessing that your program is trying to run cmd.exe, and probably does not find it. I believe there is a Wine equivalent to that somewhere, though I am not sure what it is. So probably there needs to be a way, when a program tries to execute cmd.exe, to run the Wine equivalent.
Rein Klazes
2005-May-19 13:36 UTC
[Wine]Re: Start Windows application from another windows application
On Thu, 19 May 2005 11:56:01 +0200 (MEST), in gmane.comp.emulators.wine.user you wrote:> Hi all, > > Being a little (completely) fed-up with windows, I'd like to make a complete switch to Linux, which I already use for about 90%. I still use a specific panorama photo stiching program within WinXP called PTGui. > The PTGui program runs fine within Wine. However, PTgui knows/uses two "helper" programs called autopano(.exe) and enblend(.exe). Both are console based executables doing calculations for ptgui. > PTGui has the option to call them from within PTGui. After the (external) program (for example autopano) has run, the output is somehow picked up and used within ptgui. > The same works for enblend. > > This combination of programs doesn't work in wine. I don't even think they get started as normally (in windows) a textbased cmd windows pops up and shows the "activity". When finished the text based cmd window closes and the output is returned to PTGui. > So in short: how can I start a second windows (text based) program from the first (GUI) program in Wine ?This kind of arrangement works with some other applications. If you want to find out why it does not for yours, it must be debugged. First: - You did not specify the wine version. Make sure you have the latest wine; - if you start wine from a terminal, are there any messages when trying to run a helper prog? - did you try to use ps to find if the helper prog was started? ( "ps -ax|grep wine" ) If that does not give any clues, as a next step I would do a: WINEDEBUG=+process,+exec wine PTgui.exe and see if that gives further insights.> > Note: I also tried to use the linux ports/versions of the autopano tool and enblend tool, but that did not succeed either. Maybe because I'm to new to the subject. If anyone of you know how I can combine these versions instead of the windows versions, I would be very happy too.Is there a (demo) version of that program somewhere available? Rein. -- Rein Klazes rklazes@xs4all.nl
Harry van der Wolf
2005-May-20 12:01 UTC
[Wine]Re: Start Windows application from another windows application
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <font face="Helvetica, Arial, sans-serif">Thanks for the reply. Sorry for the incomplete info.<br> <br> First the wine version<br> </font> <div align="left" dir="ltr"><font color="#330033"><span class="877513413-20052005"><font face="Arial" size="2">wine --version</font></span></font></div> <div align="left" dir="ltr"><font color="#330033"><span class="877513413-20052005"><font face="Arial" size="2">Wine 20050419<br> <br> I started the autopano.exe tool from an xterminal with wine autopano.exe. It dumped with a lot of errors.<br> <br> </font></span></font> <div align="left" dir="ltr"><font color="#330033"><span class="877513413-20052005"><font face="Arial" size="2">then I did "<font face="Courier" size="1">echo quit | WINEDEBUG=+process,+exec,+loaddll wine autpano.exe >& debug.txt;"</font></font></span></font></div> <div align="left" dir="ltr"><font color="#330033"><span class="877513413-20052005"></span> </font></div> <div align="left" dir="ltr"><font color="#330033"><span class="877513413-20052005"><font face="Courier" size="1">This gives me a debug list of:</font></span></font></div> <div align="left" dir="ltr"><font color="#330033" face="Courier New"><span class="877513413-20052005"><font size="1">------------------------------------------------</font></span></font></div> <div align="left" dir="ltr"><font color="#330033" face="Courier New"><span class="877513413-20052005"><font size="1">trace:process:init_current_directory starting in L"C:\\Program Files\\PTGui\\autopano\\" 0x10<br> trace:process:find_exe_file looking for L"autopano.exe"<br> trace:process:find_exe_file Trying native exe L"C:\\Program Files\\PTGui\\autopano\\autopano.exe"<br> trace:process:__wine_kernel_init starting process name=L"C:\\Program Files\\PTGui\\autopano\\autopano.exe" file=0x14 argv[0]="autopano.exe"<br> trace:process:__wine_kernel_init starting Win32 binary L"C:\\Program Files\\PTGui\\autopano\\autopano.exe"<br> trace:loaddll:MODULE_LoadModule16 Loaded module "krnl386.exe" : builtin<br> trace:loaddll:MODULE_LoadModule16 Loaded module "system.drv" : builtin<br> wine: Unhandled exception (thread 0009), starting debugger...<br> trace:process:CreateProcessW app (null) cmdline L"winedbg --auto 8 36"<br> trace:process:find_exe_file looking for L"winedbg"<br> trace:process:find_exe_file Trying built-in exe L"c:\\windows\\system\\winedbg.exe"<br> trace:process:CreateProcessW starting L"c:\\windows\\system\\winedbg.exe" as Winelib app<br> trace:process:init_current_directory starting in L"C:\\Program Files\\PTGui\\autopano\\" 0x10<br> trace:process:__wine_kernel_init starting process name=L"C:\\windows\\system\\winedbg.exe" file=(nil) argv[0]="winedbg"<br> trace:process:__wine_kernel_init starting Winelib app L"C:\\windows\\system\\winedbg.exe"<br> trace:loaddll:load_dll Loaded module L"c:\\windows\\system\\psapi.dll" : builtin<br> trace:loaddll:load_dll Loaded module L"c:\\windows\\system\\dbghelp.dll" : builtin<br> trace:loaddll:load_dll Loaded module L"c:\\windows\\system\\advapi32.dll" : builtin<br> trace:loaddll:MODULE_LoadModule16 Loaded module "krnl386.exe" : builtin<br> trace:loaddll:MODULE_LoadModule16 Loaded module "system.drv" : builtin<br> WineDbg starting on pid 0x8<br> Unhandled exception: divide by zero in 32-bit code (0x00469ceb).<br> In 32 bit mode.<br> Register dump:<br> CS:0023 SS:002b DS:002b ES:002b FS:1007 GS:0000<br> EIP:00469ceb ESP:4067fab8 EBP:004b3240 EFLAGS:00010246( - 00 -RIZP1)<br> EAX:00000000 EBX:00000000 ECX:00000000 EDX:00000000<br> ESI:004b3230 EDI:00000000<br> Stack dump:<br> 0x4067fab8: 00000000 004b3230 00000001 0041afae<br> 0x4067fac8: 304a38d2 00000000 00000000 00000000<br> 0x4067fad8: 004b0048 004b0038 4067fe48 40532c80<br> 0x4067fae8: 1908b140 00000000 3f3e3d3c 000022c6<br> 0x4067faf8: c93276c1 00000827 c93276c1 00000827<br> 0x4067fb08: 001234de 00000000 5f5e5d5c 004b3230<br> 0200: sel=1007 base=40017000 limit=00001f97 32-bit rw-<br> Backtrace:<br> =>1 0x00469ceb in autopano (+0x69ceb) (0x004b3240)<br> 2 0x40791cd0 (0x00000000)<br> 0x00469ceb: divl %ecx,%eax<br> Modules:<br> Module Address Debug info Name (16 modules)<br> PE 0x00400000-004b5000 Export autopano<br> ELF 0x40000000-40017000 Deferred ld-linux.so.2<br> ELF 0x40019000-40022000 Deferred libnss_compat.so.2<br> ELF 0x40022000-4002c000 Deferred libnss_nis.so.2<br> ELF 0x4002d000-40046000 Deferred libwine.so.1<br> ELF 0x40046000-40163000 Deferred libc.so.6<br> ELF 0x40164000-40168000 Deferred libdl.so.2<br> ELF 0x40168000-401db000 Deferred ntdll<elf><br> \-PE 0x40180000-401db000 \ ntdll<br> ELF 0x401db000-402d0000 Deferred libwine_unicode.so.1<br> ELF 0x402d0000-402f3000 Deferred libm.so.6<br> ELF 0x40309000-4031f000 Deferred libnsl.so.1<br> ELF 0x4031f000-40329000 Deferred libnss_files.so.2<br> ELF 0x40440000-4054b000 Deferred kernel32<elf><br> \-PE 0x40470000-4054b000 \ kernel32<br> ELF 0x77f00000-77f07000 Deferred <wine-loader><br> Threads:<br> process tid prio (all id:s are in hex)<br> 00000008 (D) C:\Program Files\PTGui\autopano\autopano.exe<br> 00000009 0 <==<br> WineDbg terminated on pid 0x8</font></span></font></div> <div align="left" dir="ltr"><font color="#330033" face="Courier New"><span class="877513413-20052005"><font size="1">------------------------------------------------</font></span></font></div> <font face="Courier New"><font color="#330033"><br> </font>Maybe a uselees attempt, but in my (wine beginners) eyes the only dll I could "override" was advapi32.dll, so I created a config for Wine (only) containing<br> -----<br> WINE REGISTRY Version 2<br> <br> <br> [AppDefaults\\autopano.exe\\DllOverrides]<br> "advapi32.dll" = "native,builtin"<br> -----<br> </font></div> <br> However, the dump gave the exact same results.<br> <br> The PTgui program is shareware and can be obtained from <a class="moz-txt-link-freetext" href="http://www.ptgui.com">http://www.ptgui.com</a> including the necessary panotools (these seem to work. I will do some further testing)..<br> The autopano program is freeware and can be obtained from <a class="moz-txt-link-freetext" href="http://autopano.kolor.com/">http://autopano.kolor.com/</a><br> The enblend program is also freeware and can be obtained from <a class="moz-txt-link-freetext" href="http://enblend.sourceforge.net/">http://enblend.sourceforge.net/</a><br> <br> Do you have a clue ?<br> <br> thanks,<br> <br> Harry van der wolf<br> <br> <br> <br> <br> <br> Rein Klazes wrote: <blockquote cite="midptkp81p01132pla1gvpltj4u7rmrvherl6@smtp.wanadoo.nl" type="cite"> <pre wrap="">On Thu, 19 May 2005 11:56:01 +0200 (MEST), in gmane.comp.emulators.wine.user you wrote: </pre> <blockquote type="cite"> <pre wrap="">Hi all, Being a little (completely) fed-up with windows, I'd like to make a complete switch to Linux, which I already use for about 90%. I still use a specific panorama photo stiching program within WinXP called PTGui. The PTGui program runs fine within Wine. However, PTgui knows/uses two "helper" programs called autopano(.exe) and enblend(.exe). Both are console based executables doing calculations for ptgui. PTGui has the option to call them from within PTGui. After the (external) program (for example autopano) has run, the output is somehow picked up and used within ptgui. The same works for enblend. This combination of programs doesn't work in wine. I don't even think they get started as normally (in windows) a textbased cmd windows pops up and shows the "activity". When finished the text based cmd window closes and the output is returned to PTGui. So in short: how can I start a second windows (text based) program from the first (GUI) program in Wine ? </pre> </blockquote> <pre wrap=""><!----> This kind of arrangement works with some other applications. If you want to find out why it does not for yours, it must be debugged. First: - You did not specify the wine version. Make sure you have the latest wine; - if you start wine from a terminal, are there any messages when trying to run a helper prog? - did you try to use ps to find if the helper prog was started? ( "ps -ax|grep wine" ) If that does not give any clues, as a next step I would do a: WINEDEBUG=+process,+exec wine PTgui.exe and see if that gives further insights. </pre> <blockquote type="cite"> <pre wrap="">Note: I also tried to use the linux ports/versions of the autopano tool and enblend tool, but that did not succeed either. Maybe because I'm to new to the subject. If anyone of you know how I can combine these versions instead of the windows versions, I would be very happy too. </pre> </blockquote> <pre wrap=""><!----> Is there a (demo) version of that program somewhere available? Rein. </pre> </blockquote> </body> </html>
Reasonably Related Threads
- [Fwd: Re: [Fwd: Re: Start Windows application from another windows application]]
- [Fwd: Re: Start Windows application from another windows application]
- [Fwd: Re: [Fwd: Re: Start Windows application from another windows application]]
- PTgui.exe runs fine on one Kubuntu 6.0.6 pc but not on another
- PTgui.exe runs fine on one Kubuntu 6.0.6 pc but not on the other