AutoCad
From Wine-Wiki
AutoCad software is very popular and some view it as the standard to measure other Cad software.
There is a useful version history http://en.wikipedia.org/wiki/AutoCAD#Version_history
A lot of older versions are still in use, often because of dependency on older plug-ins.
There is apparently a recent [Jul 06] Linux Alternative that has been released
wine user Aug 08 raja: [...] try wine [the latest wine].. remember to add a test data on AppDB!
if you are a programmer try to fix this bugs:
Contents |
Forum and Bug Report Comments
- Winehq Bugzilla entry 4627 docking is difficult - need to be careful with mouse.
- [Dec 08] Micomax has been working on speeding text up with some success. He apparently plans to soon publish a git repository with his DIB engine changes built upon the work of two other wine developers
update May. Mico has a lot of the DIB working now. He wrote May 09: I did the jump 2 years ago [running Autocad on Wine], and I'm very happy about It costed me some effort, indeed, to adapt wine to Autocad real work....
He updated this in January: there is a patch of current GIT tree (today 24/01/2009) with an updated testing dib engine on Bug 421 page. Just fetch git tree, patch it with
Code:
- patch -p1 < DIBENGINE.patch
rebuild wine and enjoy it. BEWARE, DIB Engine is disabled by default, you can enable it by environment variable (export WINEDIB=ON) or by registry (HKCU/Software/Wine/DIB Engine/Enable set to 'Y', use regedit to create the key and set the value) Still much to do, but impressive improvement on truetype font display. BTW, some almost unnoticeable slow down of other graphics, due to absolutely unoptimized code, and some ugly results on icons (see layer command) due to missing ROP operations in blitting. Tested ONLY on AutoCAD 2005, NOT 2008; btw it works also with most other apps.
[Update feb 09] J. Allen wrote: I have placed the patches unchanged onto this git page: http://repo.or.cz/w/wine/dibdrv-max.git
Hope this helps.
2008-09-21 news about slow text rendering in AutoCAD http://bugs.winehq.org/show_bug.cgi?id=13801#c40
Sept 18 'Grof' in wine user forum reported Autocad 2008 installs on the latest wine: I tried install AutoCAD 2008, and I succeed! Without any patch and recompile wine 1.1.4, only known winetricks... but acad 2008 is unstable (errors in initialize CUI....). [With users filing bug reports and quickly responding to developer requests, this may improve as did Autocad 2005.] Miciomax: The CUI error is due to (IIRC) msxml3 (must be native) and because of the registry bug on which I wrote 3 patches [...] Just dig on wine bugzilla, grab the patch [..] Look at autocad 2005 howto, it works for 2008 and has a step-by-step explanation. BTW, on my wine (1.1.2) 2008 is still by far more unstable than 2005, so I suggest you to not use it for production purposes. 2005 works wonderful (using it daily) besides of slow TTF rendering and a crash on multiline text edit. [Anon: I wonder if you might be able to workaround slow fonts by avoiding true type fonts perhaps by using font substitution via the registry]
Sept 08 Jan Ploski reported new way to reproduce the slow rendering text bug and fixing this bug will require DIB code skill. Jul 08 Miciomax reported: OpenGL patch applied, now AutoCAD 2005 can be installed even on a unpatched wine. [a] registry problem remains, if you don't patch wine [with reg fix] you'll have problems with add-ons like expresstools... but it's already usable. Jun 2008 Bug 13599 One developer took a look at Autocad with a bug report and offered a 'hack' to get the install further along. With this Autocad has been reported as successfully installing on Wine RC4: A tester reported Installing gdiplus with winetricks now autocad 2005 starts... missing icons and so, but I can open a drawing and work on it. http://bugs.winehq.org/attachment.cgi?id=13812 . With the 'hack/workaround' 2004 also installs and perhaps some other versions will also install. The tester then reported this bug is related to 2004, 2005, 2006 and 2008 setup problems. Solving this one will allow (imho) to install any of the products above. For more information see the application database entry for Autocad as the tester plans to report further there. Jun 08 he reported: I'm using, thanx to Louis's hack, Autocad for my daily job. I'd say that I tested 100% of it. Before the hack I had to use a virtual machine just to run it
Request for testers: Wine devel Jun 2008: L. Lenders: Would be nice if we could have this running in near future. I found that you can download a few old trialversions from http://www.brothersoft.com/autocad-download-78215.html (this is autocad2006l on the right side you can see the downloadlinks for 2004/2007/2008 as well) I'm currently testing AutoCAD 2004 and with a bit workarounds/tweaking it seems to run but the main issues seem to be with the installer; I'll add some info to the appdb; i'll test other versions lateron; if someone wants to join testing feel welcome
[Jun 06] I'm trying to install autoCad 2004. Without winetools I got an error message about IE6 not being found. adding the Software\\Microsoft\\Internet Explorer\Version=6.0.2900.2180 registry key (suggested by Dan Kegel) resulted in a similar error further on in the installation process. I'm using a clean ".wine" with the build in MSI. After a lot of digging through WINEDEBUG=+all and WINEDEBUG=+msimg,+msi,+msidb I found that the installer sets the value of ACAD_MSIE_INSTALLED based in the version of SHDOCVW.DLL (as suggested in http://support.microsoft.com/kb/164539 ). It is done by searching for a signature in MSI: msi:ACTION_AppSearch Searching for Property L"ACAD_MSIE_INSTALLED", Signature_ L"SHDOCVW.DLL"
(The +msidb is missing in the Debug Channels list at: http://www.winehq.com/site/docs/wineusr-guide/x509 )
Adding this dll to /windows/system32/ "solved" this problem. Note that i have set this dll to "buildin" in winecfg, but it seems that the native dll is still used to check the version number. [...] I'm now back onto the "EULA not found" error. (Bug 3226) but this time without having the winetools installed :-) Wine archive
In reply one developer opined [April 2006]: Missing AutoCAD Linux support has been a **MAJOR** [difficulty] for many years (piles and piles of requests), so it's very nice to finally see this resolved the right way (read: by direct competitors to AutoCAD [...]) There are several almost fully identically cloned CAD programs for Linux available (full AutoCAD interface with even slightly improved capabilities, so they're actually better), doing an internet search should help here ([...] BricsCAD was one of the major alternatives).
[Jun 06] An investigation into the current state of wine support for autocad 2004:
After some modifications the installation program completed, but it does not yet run. a summery:
- Internet Explorer 6: (resolved)
- Add registry key Software\\Microsoft\\Internet Explorer\Version=6.0.2900.2180
- And change the version of the fake SHDOCVW.DLL to 6.0 or replace with a native 6.0.
- "EULA not found" error: (bug no. 3226) (workaround)
- The path to the file is not constructed correctly (not a full path)
- Copy the cd-rom to drive_c, and then copy the <cd-rom>/bin/acadfeui/eula/ directory also to drive_c.
- "Unhandled page fault" error: (workaround)
- msi_scrolltext_add_text crashes with NULL as the text parameter.
- In the file /dlls/msi/dialog.c add this hack to the beginning of the msi_scrolltext_add_text function:
if( !text ){
FIXME("msi_scrolltext_add_text( , NULL)\n");
return;
}
- The eula text is missing, and there are no eula languages to choose from, but clicking "acept" works.
- After that the user details and the serial number can be entered, and an installation type can be chosen. ("compact" install was tested)
- "Error restarting the computer": restarting is not needed for wine anyway. (also: if installed on XP, the computer is also not restarted, so it's probably not needed)
- "Acad.exe can't find DLL's in drive_c/Program Files/Common Files/Autodesk Shared":
- copying the dll's from Autodesk Shared to drive_c/windows/system works, but the same will be needed for other Common Files, so setting up the correct path variables would be preferable.
- The next hurdle will be implementing ntoskrnl.exe. this is required for some drivers of autocad (CDAC15BA.SYS). A lot of the needed code is already written, and there currently [June 2006] is some effort to add this to the official wine.
- With the current ntoskrnl.exe patch [20 June 2006] acad.exe starts up but exits without error or warning. It seems to load all needed DLL's without any problems, but then detects that something is not right and exists without any indication of the problem. This may also be caused by one of the many warning and error messages during the installation. After a few calls to "GetVersion()" the program immediately calls "FreeLibrary()" so this may be a version problem. There are also many calls to RtlNtStatusToDosError() which may give a clue.
checking autocad 2004 install:
A normal autocad 2004 "compact" install should install about 1675 files on a clean windows XP. Over 100 files are installed in locations like: C:\Documents and Settings\<user>\Local Settings\Application Data\Autodesk\AutoCAD 2004\R16.0\enu\Template\ In Wine, these files are not installed anywhere. (a copy if these files seem to be installed in: C:\Program Files\AutoCAD 2004\UserDataCache\ these are also installed in Wine) This may result in problems when starting the program.
more problems:
I sometimes got a "debugstr buffer overflow" error. this seems to be caused by the ExAllocatePoolWithTag( ) function in the file ntoskrnl_api.c.
change: WINE_TRACE("(%d %ld %.4s), semi-stub\n", PoolType, NumberOfBytes, (char*)&Tag);
to: WINE_TRACE("(%d %ld %.4s), semi-stub\n", PoolType, NumberOfBytes, wine_dbgstr_a((char*)&Tag));
- Somewhere there is a problem, and a gdb backtrace is mixed in with the log file. the problem seems to be in the ntoskrnl, but it's not clear where.
- There is an exception caused by user32.SetDeskWallPaper( ). This does not seem to affect the running of the program. adding the SetDeskWallPaper patches http://www.winehq.org/pipermail/wine-patches/2006-June/027247.html and http://www.winehq.org/pipermail/wine-patches/2006-June/027431.html doesn't help.
Further Reading
- Note: non english link.
- http://linux.cad.de/softwareliste_tech.shtml
- http://de.wikipedia.org/wiki/Liste_mechanischer_CAD-L%C3%B6sungen
Links

