Difference between revisions of "Third-party software integration: Acme CAD Converter"

From OpenKM Documentation
Jump to: navigation, search
m
Line 10: Line 10:
 
   $ ln -s drive_c/Program\ Files/Acme\ CAD\ Converter ACC
 
   $ ln -s drive_c/Program\ Files/Acme\ CAD\ Converter ACC
  
This way, the configuration of the '''Bold text''' property is:
+
This way, the configuration of the '''system.dwg2dxf''' property is:
  
 
   wine /home/openkm/.wine/ACC/AcmeCADConverter.exe
 
   wine /home/openkm/.wine/ACC/AcmeCADConverter.exe
Line 20: Line 20:
 
And modify the startup JBoss script:
 
And modify the startup JBoss script:
  
  DIRNAME=`dirname $0`
+
<source lang="bash">
  PROGNAME=`basename $0`
+
DIRNAME=`dirname $0`
  GREP="grep"
+
PROGNAME=`basename $0`
  JAVA_OPTS="-Xms256m -Xmx2048m -XX:PermSize=128m -XX:MaxPermSize=256m -Djava.awt.headless=true"
+
GREP="grep"
 
+
JAVA_OPTS="-Xms256m -Xmx2048m -XX:PermSize=128m -XX:MaxPermSize=256m -Djava.awt.headless=true"
  # Wine stuff
+
  echo "Starting Xvfb"
+
# Wine stuff
  Xvfb :1 &
+
echo "Starting Xvfb"
  export DISPLAY=:1
+
Xvfb :1 &
 
+
export DISPLAY=:1
  # Use the maximum available, or set MAX_FD != -1 to use that
+
 
  MAX_FD="maximum"
+
# Use the maximum available, or set MAX_FD != -1 to use that
 +
MAX_FD="maximum"
 +
</source>
  
 
If you see an error like this:
 
If you see an error like this:

Revision as of 14:26, 31 August 2011

This utility is used to manage AutoCAD preview and conversion. This configuration has been tested with Acme CAD Converter 2011 v8.2.2.

As this is a Windows application, you need to install wine in Linux to be used. A tip in Linux is making a soft link to ease the application execution:

 .wine/ACC -> .wine/drive_c/Program\ Files/Acme\ CAD\ Converter/

To achieve this, run these commands:

 $ cd .wine
 $ ln -s drive_c/Program\ Files/Acme\ CAD\ Converter ACC

This way, the configuration of the system.dwg2dxf property is:

 wine /home/openkm/.wine/ACC/AcmeCADConverter.exe

If the server does not have the X-Window system, is necessary to install a Virtual Framebuffer 'fake' X server:

 $ sudo aptitude install xvfb

And modify the startup JBoss script:

DIRNAME=`dirname $0`
PROGNAME=`basename $0`
GREP="grep"
JAVA_OPTS="-Xms256m -Xmx2048m -XX:PermSize=128m -XX:MaxPermSize=256m -Djava.awt.headless=true"
 
# Wine stuff
echo "Starting Xvfb"
Xvfb :1 &
export DISPLAY=:1

# Use the maximum available, or set MAX_FD != -1 to use that
MAX_FD="maximum"

If you see an error like this:

 X11DRV_WineGL_InitOpenglInfo Direct rendering is disabled, most likely your OpenGL drivers haven't been installed correctly

Try to set this environment variables (In that case will be needed to add to the startup JBoss script):

 $ export LIBGL_DRIVERS_PATH=/usr/lib32/dri

If you see this error:

 Error initialising GL driver, check that the file 'opengl32.dll' exists

Try to install these packages:

 $ sudo aptitude install fontforge libgl1-mesa-glx

See also Autocad preview.