Difference between revisions of "Third-party software integration: Acme CAD Converter"
m |
m |
||
Line 16: | Line 16: | ||
If the server does not have the X-Window system, is necessary to install a Virtual Framebuffer 'fake' X server: | If the server does not have the X-Window system, is necessary to install a Virtual Framebuffer 'fake' X server: | ||
− | $ sudo | + | $ sudo apt-get install xvfb |
And modify the startup JBoss script: | And modify the startup JBoss script: |
Revision as of 12:09, 2 January 2014
This utility is used to manage AutoCAD preview and conversion. This configuration has been tested with Acme CAD Converter 2011 v8.2.5.
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 apt-get 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.