| Author |
Message |
|
|
Posted: Aug 29, 2007 - 03:53 AM |
|

Joined: Aug 28, 2007
Posts: 35
|
|
AAARG!
I tried to get this to go all yesterday without success:
In wine with both debian package and the version from git, I could not install AVRStudio 4.07, and 4.12 gave the R6034 errors . I copied boththe folder and the contents thereof into the AVRStudio4 directory without success.
Crossover office gets me to the splash screen then no further.
In all cases to get anywhere I had to set the windows environment to win98 to get as far as I did.
It has been a while since the oiginal howto came out. I was hoping to say "This is the new way now..." no way, so ime back asking for advise
tia
Jasper |
|
|
| |
|
|
|
|
|
Posted: Aug 31, 2007 - 07:42 AM |
|

Joined: Aug 26, 2007
Posts: 11
|
|
With wine 0.9.44 and wine-doors I was able to install and run AvrStudio4.13 with ease. Primarily I did two things:
a. Install all of windows specific fonts, runtime libraries from wine-doors.
b. Put msxml3.dll, ole32.dll, oleaut32.dll, rpcrt4.dll in native mode. These builtin dlls have some functions which are not yet implemented/buggy.
With these I was able to get AvrStudio to run. I will try out WinAvr or avr-gcc tonight and see if they work too.
cheers
 |
|
|
| |
|
|
|
|
|
Posted: Aug 31, 2007 - 07:49 AM |
|

Joined: Aug 26, 2007
Posts: 11
|
|
| I forgot to mention in step a select IE6 too in wine-doors gui. |
|
|
| |
|
|
|
|
|
Posted: Aug 31, 2007 - 11:56 AM |
|

Joined: Aug 28, 2007
Posts: 35
|
|
Hmmm, I hvae no such luck.
I uninstalled wine from git and installed 0.9.44 debian package frm winehq, installed wine-doors.
Ran wine doors, got a few errors that didnt seem to matter. Installed IE6 from the wine-doors gui.
Installed AvrStudio4.13
set native dlls... ... download the dll's and put in the AvrStudio4 directory.
run AvrStudio, and get the rot... error in creating avr framework. removed the native dll thingees and I get the splash screen, then it errors out.
I wonder if its the version of dll that I got from dllarchive. I tried adding the dll's from the link above, but same thing.
Is it possible to try your .wine dir to see if thats the issue or its a debian/wine related thing.
cheers \\
Jasper |
|
|
| |
|
|
|
|
|
Posted: Aug 31, 2007 - 04:38 PM |
|

Joined: Aug 26, 2007
Posts: 11
|
|
| Can I post my entire Wine dir in this forum? It is few megabytes. |
|
|
| |
|
|
|
|
|
Posted: Aug 31, 2007 - 04:52 PM |
|

Joined: Aug 26, 2007
Posts: 11
|
|
I think there is size limit to what I can post. Try these:
a. Delete old wine dir and using wine-doors 0.1 install everything Microsoft specific - dcom98, mdac etc. Please make sure wine-doors doesnt give out any error and installs everything (though it might spew lots of garbage while doing so).
b. Wine-doors will automatically put odbc32 and odbccp32 dlls in native mode. Use winecfg to check that.
c. From a windows machine get all the four dlls. I have an XP machine which I dont use so I copied all the four dlls from there. It is important you take the dlls from a running machine.
It should work.
FYI: I am using Puppy Linux 2.17 and I had to compile almost everything to get the thing running.
 |
|
|
| |
|
|
|
|
|
Posted: Sep 01, 2007 - 11:41 AM |
|

Joined: Aug 28, 2007
Posts: 35
|
|
GadNabbit!
I just cant force the damned thing to work.
Doing as you say, delete .wine, reinstall every windows component and font with only the Y:\\Desktop thing errors which I dont think matter. Some things produce error but dont when they are installed after others, so it seems the order is important...
Anyway, with all that done and the dll's provided by wine-doors I get the splash screen then errors and starts the debugger. The error seems to be about msxml:
Code:
...
fixme:msxml:bsc_QueryInterface interface {79eac9e4-baf9-11ce-8c82-00aa004ba90b} not implemented
fixme:msxml:xmlnode_get_xml
wine: Unhandled page fault on read access to 0x00000000 at address 0x4c898f (thread 001b), starting debugger...
So I copied the dll's from dllarchive including msxmls and rcpsomething to the AvrStudio4 dir, and set them native, and it errors out way before the splash screen.
I have compiled wine from source to eliminate debian as the problem, and have included the dll's if you could try them and see if avrstudio continues to work.
Wine-doors would seem to give us a very convinient way to install avrstudio, once we figure out how to make it work... Assuming that the problem isn't gross negligence or mental deficiency...
Could you post your dll's as well so I can try them and see if things improve. My w.wine dir is 229Meg so not mch good to uplad when the limit is 1Meg, and no .bz files allowed... |
|
|
| |
|
|
|
|
|
Posted: Sep 02, 2007 - 07:47 PM |
|

Joined: Aug 26, 2007
Posts: 11
|
|
Looks like I need to create a how-to to get AVRStudio working in one shot. I changed Y: to C: in system.reg and user.reg files inside wine to be sure that these are not causing the problem. I am not sure if it really helped my cause. I will try your dlls tommorow but looks like they are of different date and size than mine. That might well be the reason why it is failing. Can you reboot your wine through wineboot command and send me the log which gets generated when you try to run AVRStudio?
FYI: I was able to run WinAVR from within AVRStudio with some tweaking of registry files and using Portable WinAVR instead of regular WinAVR. I downloaded my first code to AVR Butterfly via serial cable and it worked!!! Believe me I find AVRStudio much much better than all the opensource IDEs and plugins available on Linux. I wish wine and wine-doors are able to come out with a version which can do away with MS dlls. |
|
|
| |
|
|
|
|
|
Posted: Sep 02, 2007 - 09:28 PM |
|

Joined: Aug 26, 2007
Posts: 11
|
|
| Please put the native dlls in .wine/drive_c/windows/system32 directory and do a wineboot. Otherwise wine will use built in dlls and it will not solve your problem. Wine log should not display fixme:ole:xxxxx, fixme:msxml:xxxx etc messages since the calls are made to native version and wine loses execution control for those calls. |
|
|
| |
|
|
|
|
|
Posted: Sep 02, 2007 - 11:31 PM |
|

Joined: Aug 28, 2007
Posts: 35
|
|
| Looks like my msxml3 is a bit dodgy... |
|
|
| |
|
|
|
|
|
Posted: Sep 05, 2007 - 03:28 PM |
|

Joined: Aug 26, 2007
Posts: 11
|
|
| The problem is that ole32 and oleaut32.dll being used is builtin not native. Using winecfg to make ole32 oleaut32 rpc4rt msxml as native only (no native, builtin). Do a wineboot and it should work. |
|
|
| |
|
|
|
|
|
Posted: Sep 05, 2007 - 03:31 PM |
|

Joined: Aug 26, 2007
Posts: 11
|
|
| BTW also make sure that you are copying these dlls in system32 folder and register them using regsvr32. Also please delete the system folder which is there inside the wine. If there are files in system folder copy them to system32 folder. Create a soft link called system which points to system32 folder. |
|
|
| |
|
|
|
|
|
Posted: Sep 06, 2007 - 12:23 PM |
|

Joined: Jul 05, 2004
Posts: 30
|
|
Hi,
I tried the steps you described, the 4.13 is installed OK, but whenever I start it I get the "Cannot connect to ROT" messages.
Do you use win98 or win2k emulation?
Thanks,
Chris |
|
|
| |
|
|
|
|
|
Posted: Sep 06, 2007 - 10:58 PM |
|

Joined: Aug 26, 2007
Posts: 11
|
|
| I use default win2k. Just post me logs so that i can see which dll is creating problem. Also please try putting msvcrt.dll msvcrt40.dll and msvcrt80.dll in native mode. Which Linux are you using? |
|
|
| |
|
|
|
|
|
Posted: Sep 08, 2007 - 12:51 PM |
|

Joined: Jul 05, 2004
Posts: 30
|
|
Hi,
I get following error:
Quote:
[ganyaik@DeepThought AvrStudio4]$ ./AVRStudio.exe
fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.VC80.MFCLOC"
fixme:win:WIN_CreateWindowEx Parent is HWND_MESSAGE
fixme:reg:RegOpenUserClassesRoot (0xc0, 0x0, 0x2000000, 0x33ef4c) semi-stub
fixme:actctx:FindActCtxSectionGuid 00000001 (null) 4 {e1436b4e-bb62-4f9e-b60e-473a82a239b6} 0x33ef20
fixme:actctx:FindActCtxSectionGuid 00000001 (null) 4 {e1436b4e-bb62-4f9e-b60e-473a82a239b6} 0x33eecc
fixme:actctx:FindActCtxSectionGuid 00000001 (null) 4 {e1436b4e-bb62-4f9e-b60e-473a82a239b6} 0x33e840
wine: Unhandled page fault on read access to 0x00000000 at address 0x40e206 (thread 0009), starting debugger...
Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x0040e206).
Register dump:
CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
EIP:0040e206 ESP:0033f1c0 EBP:0033f208 EFLAGS:00010206( - 00 - RIP1)
EAX:00000000 EBX:00000000 ECX:00000000 EDX:781c3b84
ESI:00602e68 EDI:00000000
Stack dump:
0x0033f1c0: 0043379f 3eb1d565 ffffffff 00602e68
0x0033f1d0: 00000000 00000000 00602e68 0033f1c8
0x0033f1e0: 0033f27c 0033f1bc 0033f1c0 009441e0
0x0033f1f0: 00602e68 009441b0 0033f1c4 0033f27c
0x0033f200: 00555614 00000002 0033f288 004496ae
0x0033f210: 3eb1d5e5 ffffffff 00602e68 00000001
Backtrace:
=>1 0x0040e206 in avrstudio (+0xe206) (0x0033f208)
2 0x004496ae in avrstudio (+0x496ae) (0x0033f288)
3 0x30303932 (0x2e302e36)
4 0x00000000 (0x00000000)
0x0040e206: movl 0x0(%eax),%edx
Modules:
Module Address Debug info Name (97 modules)
...
There's something wrong with the msvcrt8.
Chris |
|
|
| |
|
|
|
|
|
Posted: Sep 09, 2007 - 07:38 PM |
|

Joined: Aug 26, 2007
Posts: 11
|
|
Execution path seems to be different than mine. I hope you are using win2k emulation and not win98.
My guess it is not able to instantiate COM object belonging to AVRStudio AvrRot3.dll. Use regedit to search for avrrot3.dll inside registry. Make sure path is c:\Program Files\Atmel\Avr Tools\xxxx. Wine is not able to laod either this dll or its dependent dll(s). There is a utility called depends.exe which you can use to figure out what all dependent dlls are for a windows executable or dll. Do you have some place where I can post my entire wine folder just to check whether its a system issue or config issue?
All in all I know its a big pain to make AVRStudio run. I guess its high time somebody started AVRStudio4Linux project. |
|
|
| |
|
|
|
|
|
Posted: Sep 10, 2007 - 01:03 PM |
|

Joined: Aug 28, 2007
Posts: 35
|
|
SUCESS!!!
What a F*ing Idiot I have been!!!
When you said put ole32 and oleaut32 in native mode I thought, yea yea, whatever Ive done that what kind of fool do you think I am.... Well I didnt read very carefuly and I was putting obdc32 and obdcc32 instead of <hum> ole32 and oleaut32.
SO my procedure:
wine and wine-doors from git/svn (not sure if nescesarry)
run wine doors, and install all the fonts and microsoft components, keeping a backup of .wine every step in case one fails. when one fails restore the backup and try nother microsoft component. Eventually they all install without failing
do a wine reboot.
set msxml3, ole32, oleaut32, and rpcrt4 to native mode. No need to get the dll's from anywhere else. They come from the m$ stuff installed above.
wineboot -r
then install avrstudio 4.13 (build 528)
wineboot -r
Now it workes. All I want now is for it to talk to the dragon I want to get...
Is this what you have done ganyaik? If not could you try it and see if what skhare suggested forms a method. Then if so we could figure out the wine-doors xml thing and try and get avrstudio added to the repository (If ive understood how it wolks from my very cursory look at it.) |
|
|
| |
|
|
|
|
|
Posted: Sep 10, 2007 - 01:22 PM |
|

Joined: Aug 28, 2007
Posts: 35
|
|
Dammit! The Y:\Desktop thing!
I have no file browser, so cant load or save anything.
Where does wine keep its settings for the Desktop integration? I cant find where this is set. I tried to make a symlink for Y: pointing to my home directory, but didnt work. |
|
|
| |
|
|
|
|
|
Posted: Sep 10, 2007 - 05:03 PM |
|

Joined: Aug 26, 2007
Posts: 11
|
|
| Go to system.reg and user.reg and change y: to c:. Create a directory named Desktop inside .wine/drive_c/. Wineboot -r and it should solve the problem. |
|
|
| |
|
|
|
|
|
Posted: Sep 11, 2007 - 01:19 AM |
|

Joined: Aug 28, 2007
Posts: 35
|
|
Worked perfectly, cheers.
(I symlinked Desktop to ~/Desktop) |
|
|
| |
|
|
|
|
|