Login  Register

Re: Compiling with dwg support

Posted by hsrai on Apr 07, 2013; 2:03pm
URL: https://forum.librecad.org/Compiling-with-dwg-support-tp5707866p5707869.html

Rallaz wrote
Dwg support is a work in progres.

To compile are needed all dependencies of LibreCAD and google test:
http://code.google.com/p/googletest/

Another option is disable test build (only used in libdxfrw develop)
To disable comment line #7 in tests/libraries/libraries.pro (#        libdxfrwtest \)
I now, it is "Work in progress". So I can act as tester ;-)

I tried to compile googletest. But need more help. Perhaps it needed to place at some suitable folder (as it is not installed systemwide).

So tried with disabling it.

Compiled successfully.

But on trying to  open a dwg file, it says: Can't open /path/to/file/foo.dwg Please check the permission.

--debug information is:

DXFRW Filter: importing file '/home/tcc/LCTest.dwg'...
RS_EntityContainer::RS_EntityContainer: owner: 1
RS_VariableDict::addVariable()
RS_FilterDXFRW::fileImport: reading DWG file
RS_FilterDXFRW::fileImport: reading DWG file: OK
RS_DialogFactory::instance()
RS_DialogFactory::instance(): OK
RS_DialogFactory::getFactoryObject
RS_DialogFactory::getFactoryObject: returning factory object
QG_DialogFactory::commandMessage
QG_DialogFactory::commandMessage: OK
RS_DialogFactory::instance()
RS_DialogFactory::instance(): OK
RS_DialogFactory::getFactoryObject
RS_DialogFactory::getFactoryObject: returning factory object
QG_DialogFactory::commandMessage
QG_DialogFactory::commandMessage: OK
RS_FilterDXFRW::printDwgError: DRW::BAD_VERSION
Cannot open DWG file '/home/tcc/LCTest.dwg'.
RS_FilterDXFRW::~RS_FilterDXFRW(): OK
RS_Graphic::open(/home/tcc/LCTest.dwg): OK
QC_MDIWindow::slotFileOpen: failed
QC_MDIWindow::slotFileOpen: OK
QG_GraphicView::paintEvent begin
QG_GraphicView::paintEvent end
QG_GraphicView::paintEvent begin
QG_GraphicView::paintEvent end
QC_ApplicationWindow::slotWindowActivated begin
QG_GraphicView::paintEvent begin
QG_GraphicView::paintEvent end
--
H.S.Rai