LibreCAD/libdxfrw

Successor of https://sourceforge.net/projects/libdxfrw/, developed for LibreCAD, by LibreCAD Contributors, usable for all

292

stars

249

commits

C

primary language

Nov 6, 2025

updated

c
dwg-reader
dxf
library

README

libdxfrw Build status

libdxfrw is a free C++ library to read and write DXF files in both formats, ascii and binary form. It also has rudimentary capabilities to read DWG files. It is licensed under the terms of the GNU General Public License version 2 (or at you option any later version).

libdxfrw was created by LibreCAD contributors in the process of making LibreCAD. As the original code at SourceForge was no longer supported by the orignal authors, this repo has become its successor.

If you are looking for historical information about the project, it's still there: http://sourceforge.net/projects/libdxfrw

Please note:

When you clone or download this project to build LibreCAD_3 use the branch LibreCAD_3. The master or other branches may have incompatible interface definitions which are not yet implemented in LibreCAD_3!

Building and installing the library

Debug version

mkdir build
cd build
cmake ..
make 
sudo make install

Non-debug version

mkdir release
cd release
cmake -DCMAKE_BUILD_TYPE=Release ..
make 
sudo make install

Ubuntu/Mint Folks

mkdir release
cd release
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make all
make 
sudo make install

Example usage of the library

See how we use it in LibreCAD V3 : https://github.com/LibreCAD/LibreCAD_3/tree/master/persistence/libdxfrw

Contributors

Rallaz

85 commits

lordofbikes

55 commits

nyalldawson

39 commits

feragon

17 commits

LibreCAD/libdxfrw

Successor of https://sourceforge.net/projects/libdxfrw/, developed for LibreCAD, by LibreCAD Contributors, usable for all

292

stars

249

commits

C

primary language

Nov 6, 2025

updated

c
dwg-reader
dxf
library

README

libdxfrw Build status

libdxfrw is a free C++ library to read and write DXF files in both formats, ascii and binary form. It also has rudimentary capabilities to read DWG files. It is licensed under the terms of the GNU General Public License version 2 (or at you option any later version).

libdxfrw was created by LibreCAD contributors in the process of making LibreCAD. As the original code at SourceForge was no longer supported by the orignal authors, this repo has become its successor.

If you are looking for historical information about the project, it's still there: http://sourceforge.net/projects/libdxfrw

Please note:

When you clone or download this project to build LibreCAD_3 use the branch LibreCAD_3. The master or other branches may have incompatible interface definitions which are not yet implemented in LibreCAD_3!

Building and installing the library

Debug version

mkdir build
cd build
cmake ..
make 
sudo make install

Non-debug version

mkdir release
cd release
cmake -DCMAKE_BUILD_TYPE=Release ..
make 
sudo make install

Ubuntu/Mint Folks

mkdir release
cd release
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make all
make 
sudo make install

Example usage of the library

See how we use it in LibreCAD V3 : https://github.com/LibreCAD/LibreCAD_3/tree/master/persistence/libdxfrw

Contributors

Rallaz

85 commits

lordofbikes

55 commits

nyalldawson

39 commits

feragon

17 commits

Languages

C

81.3%

C++

18.4%