CDP Forum Forum Index CDP Forum
NOTE: The forum is being replaced by support.icd.no
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Running CDP Developer under WINE in Linux

 
Post new topic   Reply to topic    CDP Forum Forum Index -> Linux programming
View previous topic :: View next topic  
Author Message
Kent



Joined: 12 Sep 2008
Posts: 12

PostPosted: Mon 29 Sep 13:44:52 2008    Post subject: Running CDP Developer under WINE in Linux Reply with quote

Some of the ICD tools are not (yet) available for Linux, but run fairly well using WINE (http://www.winehq.org/). This also applies to CDPDeveloper.

The below steps outline how to get CDPDeveloper up and running on a Debian Linux installation using WINE. It assumes you have a valid Windows license for the computer in question.

First, we need WINE which should be available in your favourite package manager in Debian. But you may want to ensure that you have the most recent version of WINE. The default WINE version in Debian Etch (stable) is older and will give some errors. We tested with WINE version 1.1.1 from winehq.com by adding it as an apt source and installed the WINE package (see http://www.winehq.org/site/download-deb for details).

Second, we install ies4linux which gives you a very basic Windows system with Internet Explorer. (http://www.tatanka.com.br/ies4linux/) It requires the cabextract package which is in the default package repository. Then download ies4linux, unpack and run the installation script. Make sure to choose to install Internet Explorer 6. Once this is done, you'll probably want to start IE6 to check that it installed OK.

Next we'll use the IE6 setup we now have as our basic Windows installation for running CDPDeveloper. We do this by setting WINEPREFIX enviroment variable to point to the IE6 WINE configuration. Add the following to your .bash_profile or create a suitable symlink to the [tt]~/.ies4linux/ie6[/tt] folder called [tt]~/.wine[/tt] to make it default for all WINE applications.
Code:
export WINEPREFIX=~/.ies4linux/ie6/

Now download and run the CDP installer in WINE. Make sure to install WinGraphviz and the Adobe SVG viewer as part of this process.
Code:
wine "./CDP 2.3.1.0 beta 35 Setup (Windows 2000-XP-Vista).exe"

We should now be able to run CDP Developer. Copy your license key into the License directory and run CDPDeveloper.exe in wineconsole.
Code:
cd "~/.ies4linux/ie6/drive_c/Program Files/CDP Developer/CDPDeveloper/"
wineconsole ./CDPDeveloper.exe

The reason to use wineconsole command instead of just wine is that it gives us a MS-DOS prompt where you can give the normal CDP key commands. Especially if WINE and/or CDPDeveloper start acting erratically and the GUI is not responding, you may still be able to do a clean exit by pressing "Q" key in the wineconsole window.

Several parts of CDPDeveloper rely on the WebServer component. As Linux will only allow you to use ports below 1024 if you are root, you will need to select a different port for the WebServer. Go to Tools -> Options and replace the default "89" with some higher and unused port, like "8089".

Some useful links:
* http://www.winehq.org/
-- http://www.winehq.org/site/download-deb
* http://www.tatanka.com.br/ies4linux/
* http://www.cabextract.org.uk/[/list]
_________________
Kent Dahl - Software Developer
Industrial Control Design AS - http://www.icd.no/
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    CDP Forum Forum Index -> Linux programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group