I'm trying to run 'DVDSubEdit 1.51' with 'wine 1.2.2' on 'Ubuntu 10.04 desktop 32 bit'. After launching 'winecfg' I added 'DVDSubEdit' and chose 'Windows 98'. From a terminal I gave the following comands: utente at utente-desktop:~$ cd ~/.wine/drive_c/Programmi utente at utente-desktop:~/.wine/drive_c/Programmi$ wine DVDSubEdit.exe err:module:import_dll Library MFC42.DLL (which is needed by L"C:\\Programmi\\DVDSubEdit.exe") not found err:module:LdrInitializeThunk Main exe initialization for L"C:\\Programmi\\DVDSubEdit.exe" failed, status c0000135
paolocchio wrote:> I'm trying to run 'DVDSubEdit 1.51' with 'wine 1.2.2' on 'Ubuntu 10.04 desktop 32 bit'.Fist upgrade Wine. Latest version is wine-1.3.21. If that won't fix your problem, reinstall your applications into new wineprefix.
> That's because the Gimp, like all Linux programs, expects '/' rather > than '\' as the separator in a path name. One way to get round it is to > write a small script as a wrapper for the Gimp and tell your program to > use the script as the bitmap editing tool. I just wrote and tested one: > it is called gimpwrapper and has three lines..... > > ==============start of gimpwrapper==============> #!/bin/bash > f1=$(echo "$*" | tr '\\' '/') > gimp $f1 > ===============end of gimpwrapper===============> > The first line is standard script boiler-plate to make sure that the > bash shell is used to interpret the script, which must be made > executable with chmod. The second line does all the work: it feeds all > the arguments supplied to gimpwrapper through the 'tr' utility, which > replaces all ocurrences of '\' with '/'. The third line passes the > processed argument(s) to the Gimp. > > > MartinThanks for the answers. First I tried Martin Gregorie 'gimpwrapper'. I saved the script in my desktop (scrivania) and gave the following commands: utente at utente-desktop:~$ sudo cp /home/utente/Scrivania/gimpwrapper /usr/bin utente at utente-desktop:~$ sudo chmod +x /usr/bin/gimpwrapper But when I choose 'Edit subpic with external tool', 'Gimp' keeps on giving: <Opening of "/usr/bin/C:\users\utente\Temp\tempbitmap.bmp" has failed: cannot open '/usr/bin/C:\users\utente\Temp\tempbitmap.bmp' in read mode: non existing file or directory> I don't know what went wrong. Best regards, Paolo
Dear Martin, I've followed your instructions creating the following script: #!/bin/bash f1=$(echo "$*" | tr '\\' '/') echo "gimpwrapper: $f1" gimp $f1 Then I've given the commands: utente at utente-desktop:~$ sudo cp /home/utente/Scrivania/gimpwrapper /usr/local/bin utente at utente-desktop:~$ sudo chmod +x /usr/local/bin/gimpwrapper utente at utente-desktop:~$ cd ~/.wine/drive_c/Programmi utente at utente-desktop:~/.wine/drive_c/Programmi$ wine DVDSubEdit.exe fixme:dwmapi:DwmIsCompositionEnabled 0x4889ac fixme:bitblt:client_side_dib_copy potential optimization: client-side color-index mode DIB copy err:richedit:CharAttr unknown font 3 err:richedit:CharAttr unknown font 3 err:richedit:CharAttr unknown font 3 err:richedit:CharAttr unknown font 3 err:richedit:CharAttr unknown font 3 The error messages are given when I open a VOB file and select 'Edit subpic bitmap with external tool'. 'Gimp' gives the message: Opening of "/usr/local/bin/C:/users/utente/Temp/tempbitmap.bmp" has failed: Cannot open '/usr/local/bin/C:/users/utente/Temp/tempbitmap.bmp' in read mode: non existing file or directory In DVDSubEdit preferences the tool path is: Z:\usr\local\bin\gimpwrapper Best regards, Paolo
> > @paolocchio: Here's a script you can use to call Gimp with a Windows > path. It uses winepath to turn the Windows path into a Unix path so Gimp > can see it: > > #!/bin/sh > gimp `winepath -u "$*"` > > Associate bitmap files with this script, and you should be able to open > them with Gimp. > > ChipI have created the script you suggested and I've called it 'gimpcall'. I have given the following commands: utente at utente-desktop:~$ sudo cp /home/utente/Scrivania/gimpcall /usr/local/bin[sudo] password for utente: utente at utente-desktop:~$ sudo chmod +x /usr/local/bin/gimpcall utente at utente-desktop:~$ cd ~/.wine/drive_c/Programmi utente at utente-desktop:~/.wine/drive_c/Programmi$ wine DVDSubEdit.exe fixme:dwmapi:DwmIsCompositionEnabled 0x4889ac fixme:bitblt:client_side_dib_copy potential optimization: client-side color-index mode DIB copy err:richedit:CharAttr unknown font 3 err:richedit:CharAttr unknown font 3 err:richedit:CharAttr unknown font 3 err:richedit:CharAttr unknown font 3 err:richedit:CharAttr unknown font 3 'Gimp' gives the message: Opening of "/home/utente/.wine/dosdevices/c:/users/utente/Temp/tempbitmap.bmp" has failed: Cannot open '/home/utente/.wine/dosdevices/c:/users/utente/Temp/tempbitmap.bmp' in read mode: non existing file or directory Best regards, Paolo