9 April, 2013


Compiled DWG support in LibreCAD

Currently, it is work in progress.

Implemented versions: R13, R14 & v2000 
Implemented objects: linetype, layer, block & text style 
Implemented entities: point, line, circle, arc, ellipse, ellipse arc, insert, lwpolyline & text 

More entities & versions comming soon..

REQUIREMENTS:

Make sure you have the qt-4 SDK installed.
Install the qt4 SDK by executing the following commands:

$ sudo apt-get install g++ gcc make git-core libqt4-dev qt4-qmake \
libqt4-help qt4-dev-tools libboost-all-dev libmuparser-dev

Compilation steps:

1. First download this

https://github.com/Rallaz/LibreCAD/archive/dwgsupp2.zip

2. Extract this

3. Go to this directory

    $ cd LibreCAD-dwgsupp2

4. Disable test build (only used in libdxfrw develop).
    To disable comment line #7 in tests/libraries/libraries.pro (#        libdxfrwtest \)

5. Build makefile

    $ qmake librecad.pro

6. Compile

    $ make

Running steps:

1. Made DWG file in CAD software like circle.dwg.
You can download from this.
http://202.164.53.122/~avneet/circle.dwg

2. Go to this directory

    $ cd unix/

3. Run this

    $ ./librecad circle.dwg

4. If nothing shows, then click on Auto Zoom.

It shows following output:
circle

Installed google test dependecy for DWG support.
Now tried to make a simple example using it.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s