Wine How To
Wine How To
Page 1 of 24
Version 1.0.2
Page 2 of 24
Table of Contents 1 Introduction 2 Installing Enterprise Architect with Standard Wine 3 Installing Enterprise Architect with Support for ODBC Connections 4 Installing Enterprise Architect with Support for Scripting and ODBC Connections 5 Installing Enterprise Architect with Crossover 6 Upgrading Enterprise Architect in Crossover 7 Installing Enterprise Architect Add-ins
7.1 .NET Add-ins Connecting to a project
3 4 5 7 9 10 11
12
13
14
16 18 21
21 21 21 24
Page 3 of 24
1 Introduction
This document describes how to install Enterprise Architect within Wine. We assume some knowledge of downloading installers and running scripts. Requirements The install process documented in this paper makes frequent use of the winetricks script. The winetricks script is maintained by the Wine community and is able to download, install and configure Wine packages on the users behalf. The winetricks script is available from http://kegel.com/wine/winetricks Additionally it is assumed that Wine and the associated Wine utility cabextract are already installed on the host computer. If you are using a 64 bit linux distribution, please read Appendix D: Installing Wine dependencies for Linux 64 bit editions before continuing.
Page 4 of 24
Step 2: Install Windows Components At the command line, run the following $ winetricks allfonts $ winetricks msxml4 Step 3: Install Enterprise Architect At the command line, run the following $ wine easetupfull.exe # install windows fonts # install MSXML4 support.
Step 4: Adding Unicode support (optional) At the command line, run the following $ winetricks jet40
Download the Jet 4.0 model from Jet 4.0 Model, and copy the contents of the file to the install directory of EA. Run EA and enabled the JET4 option from menu "Tools -> Options -> General Tab".
Page 5 of 24
Step 2: Install Windows Components At the command line, run the following $ winetricks allfonts $ winetricks msxml4 $ winetricks mdac28 # install windows fonts # install MSXML4 support. # install data access components
Step 3: Override OLEAUT32 At the command line, run the following $ winecfg Set the library overrides for oleaut32 to (native, builtin) Step 4: Install an ODBC Driver At the command line, run the following $ wine msiexec /i mysql-connector-odbc-3.51.25-win32.msi NOTE: 'msiexec /i' is only needed for MSI installers.
Page 6 of 24
Step 5: Install Enterprise Architect At the command line, run the following $ wine easetupfull.exe
Page 7 of 24
4 Installing Enterprise Architect with Support for Scripting and ODBC Connections
This section explains how to set up Enterprise Architect under the Wine environment with support for Scripting and Open Database Connectivity (ODBC) repository. Step 1: Download Necessary Components To install Enterprise Architect with ODBC support, the following components are required: Enterprise Architect (available from http://www.sparxsystems.com) An ODBC driver (see Appendix B: ODBC Versions for a list of compatible ODBC drivers) The winetricks script (available from http://kegel.com/wine/winetricks)
Step 2: Install Windows Components At the command line, run the following $ $ $ $ winetricks winetricks winetricks winetricks allfonts msxml4 mdac28 wsh56 # # # # install install install install windows fonts MSXML4 support. data access components MS Scripting Host
Step 3: Override OLEAUT32 At the command line, run the following $ winecfg Set the library overrides for oleaut32 to (native, builtin) Step 4: Install an ODBC Driver At the command line, run the following $ wine msiexec /i mysql-connector-odbc-3.51.25-win32.msi NOTE: 'msiexec /i' is only needed for MSI installers.
Page 8 of 24
Step 5: Install Enterprise Architect At the command line, run the following $ wine easetupfull.exe
Page 9 of 24
Step 2: Using CodeWeavers automated install Navigate to Crossover Community Page for Enterprise Architect. Click on the "Install Enterprise Architect 9.0 Now" button. Click the Load button. Click the Install button Everything Enterprise Architect needs is installed automatically. If the installer doesn't start automatically, run the following. $ CROSSOVER_PATH/bin/cxinstaller PATH_TO_FILE/9035.c4p
NOTE: The trial will be downloaded and installed by default. Once the trial starts to download you can skip/cancel this stage if want to install the registered version. Step 3: Installing Registered Version of Enterprise Architect. Under the Crossover Menu, select "Install Windows Software". Find the "Unsupported Application section" and select "Other Application" Click Proceed Click "Choose Installer File..." Select file easetupfull.exe. Click Install.
Page 10 of 24
Step 1: Remove Existing version of Enterprise Architect Under the Crossover menu, select "Manage Bottles" Find the Bottle Enterprise Architect is installed into. Select the "Applications" tab. Select "Enterprise Architect" in the "Installed Application" list. Click "Repair or Remove..." Follow prompts to remove. Step 2: Installing Registered Version of Enterprise Architect. Click "Install Software..." button. Find the "Unsupported Application section" and select "Other Application" Click Proceed Click "Choose Installer File..." Select file easetupfull.exe. Click Install.
Page 11 of 24
Page 12 of 24
Page 13 of 24
Page 14 of 24
Step 2: Load Ea
Load EA and Open a Model
Page 15 of 24
Page 16 of 24
NOTE: The following clients have been tested Subversion Client SlikSVN Versions known NOT to work Subversion Client CollabNet Subversion Client
Step 2: Check out initial repository At the command line, run the following. $ wine <PATH_TO_SVN> co <PATH_TO_REPOSITORY> <OUTPUT_PATH> --username <USERNAME> --password <PASSWORD> WARNING: Don't checkout the repository using the Native Linux/MAC client since the SVN credentials will not be cached correctly.
Page 17 of 24
When you are prompted for "Are you using a Unix based Subversion Client" select "NO" Step 4: Connect package to Version control.
Page 18 of 24
Step 1. Copy All need Files to the WINE directory. Copy all your source from your development machine to the WINE environment, the path *MUST* match exactly. So if your source was compile in C:\source\yourApp. then you must copy the code to ~/.wine/drive_c/source/yourApp. At this stage you might have to create a drive in winecfg if you use a build machine, so the correct is path For every EXE and DLL you wish to debug, you must have the PDB for that file. If you are using an Debug EXE, you might have to copy the MFC/ATL Debug SXS from your Windows machine to your WINE environment. C:\windows\WinSxS -> ~/.wine/drive_c/windows/winsxs Step 2. Run your application On the command line attempt to run your application manually. $ wine PATH_TO_APPLICATION If it runs, go to Step 3. Check any output from WINE, for missed dependencies, and install them as needed. If you are sure that no dependencies are missed, and the crash is due to something else go to Step 3. HINT: If a huge amount of output is generated by WINE, pipe the output to a file. $ wine PATH_TO_APPLICATION >& output.txt
Step 3. Import your Code (optional) You don't have to import your code into Enterprise Architect, but it does help when you want to set breakpoints within your code.
Page 19 of 24
Step 4. Setup Enterprise Architect Build Scripts. On a package, add a build script Setup the Run command. Setup the Debug command Set "Use Debugger:" to "Microsoft Native"
Step 5. Breakpoints Open a source file and place a breakpoint within the function to debug.
Page 20 of 24
Step 6. Debugging your application Open the Debugger Window or use the "Execution Analysis - Debug" workspace (preferred). Select the Build Script you created in the previous step.. Click the Play button.
Notes
Check the breakpoint is bound, i.e. stays red, if it has a question mark it hasn't bound. If your breakpoint didn't bind, then DOUBLE check the source path match. Ensure PDB(s) are in the same directory as you EXE(s) Ensure EXE and PDB match, i.e. are from the same compile.
Page 21 of 24
11 Appendix
11.1 Appendix A: Links
Sparx Systems Sparx Systems Support Wine Crossover Office WineSkin (MAC only) http://www.sparxsystems.com http://www.sparxsystems.com/support/index.html http://www.winehq.com http://www.codeweavers.com/ http://wineskin.doh123.com/
NOTE: Once the ODBC driver is installed, you can configure the connection from "Tools -> ODBC Data Source Administrator" menu item.
Page 22 of 24
Issue 2: Clicking on the link "Connect to Server" displays a Error dialog. Solution: Override "oledb32" and re-install MDAC Issue: Enterprise Architect prompts with Cannot create GUID or Error creating XML Parser when loading. Solution: Install "msxml4" via winetricks Issue: When attempting to Debug or Profile an application the Debugger/Profiler crashes Solution: Ensure that SSampler and SSProfiler75 have WinXP as their windows version. Issue: When attempting to Debug or Profile an application no data is returned. Solution 1: Ensure that SSampler and SSProfiler75 have "dbghelp" overridden. Solution 2: Ensure that the source path matches exactly to where it was originally compiled. Issue 1: Help sometime doesn't display correctly or crashes Enterprise Architect Issue 2: Help loads but you cannot change help topics. Solution: Install "ie6" via winetricks Issue: RTF Template editor, Linked Document editor and Note window Text appears corrupted on load or after enter a carriage return. Solution: This bug was introduced in Wine 1.1.43, current status can be found at Reported Bug. This bug is fixed in Wine 1.2-rc3. Issue: EA crashes on startup when using development Wine 1.3 series. Solution: This bug was introduced in Wine 1.3.0, current status can be found at Reported Bug. Use EA build 861 or greater to avoid the crash.
Page 23 of 24
Issue: RTF document images have their text inverted. Solution: Before generating the document set the "Diagram Format" to "Bitmap". Using EA 9.0 or later forces this flag on. Issue: RTF document images are offset incorrect when "Diagram Format" is "Bitmap" Solution: In Tools -> Options -> Diagram -> Appearance, Set "Renderer: to "Enhanced -1" Issue: When using the MAC and WineSkin, EA crashes with an OLE error Solution: Use WineSkin crossover engine WS4WineCX. NOTE: You will need crossover gecko engine for help to work. Issue: Images (PNG,WMF,EMF) within Linked Documents don't display correctly. Solution: Disable "gdiplus" library on the EA.exe. Issue 1: JScript files don't loop over collection properly. Issue 2: JScript file doesn't support Recursion. Solution: Install "Window Scripting" via winetricks Issue: All text is mirrored when printing a Diagram. Solution: Upgrade to WINE 1.3.12 or greater. Solution: Upgrade to Crossover Office 10.1.0 or greater. Issue: When Profiling an application for a long period of time, the machine locks up. Workaround: Profile in smaller time periods. Solution: No know solution. Issue: Enterprise Architect runs at the end of the install. Solution: This is a regression in Wine 1.3.22, please upgrade to a newer version.
Page 24 of 24
Step 2: Using other 64 bit Linux distributions Check the following web pages for help http://wiki.winehq.org/WineOn64bit http://wiki.winehq.org/Recommended_Packages