I tiried to compile:
https://github.com/Rallaz/LibreCAD/archive/dwgsupp2.zip What is wrong, if it throws following error: make[3]: Entering directory `/home/tcc/Documents/HSRai/Programming/LC/DWG/LibreCAD-dwgsupp2/tests/libraries/libdxfrwtest' g++ -c -pipe -std=c++0x -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DDRWG_DBG -DDRWG_TEST_DIR=\"/home/tcc/Documents/HSRai/Programming/LC/DWG/LibreCAD-dwgsupp2/tests/libraries/libdxfrwtest/../..\" -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -I../../../libraries/libdxfrw/src -I../../../generated/tests/libraries/libdxfrwtest/moc -o ../../../generated/tests/libraries/libdxfrwtest/obj/dwgBuffer_test.o tests/dwgBuffer_test.cpp tests/dwgBuffer_test.cpp:13:25: fatal error: gtest/gtest.h: No such file or directory compilation terminated. make[3]: *** [../../../generated/tests/libraries/libdxfrwtest/obj/dwgBuffer_test.o] Error 1 make[3]: Leaving directory `/home/tcc/Documents/HSRai/Programming/LC/DWG/LibreCAD-dwgsupp2/tests/libraries/libdxfrwtest' make[2]: *** [sub-libdxfrwtest-make_default] Error 2 make[2]: Leaving directory `/home/tcc/Documents/HSRai/Programming/LC/DWG/LibreCAD-dwgsupp2/tests/libraries' make[1]: *** [sub-libraries-make_default] Error 2 make[1]: Leaving directory `/home/tcc/Documents/HSRai/Programming/LC/DWG/LibreCAD-dwgsupp2/tests' make: *** [sub-tests-make_default-ordered] Error 2
--
H.S.Rai |
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 |
I tested with following file created in DraftSight
LCTest.dwg and many other AutoCAD files.
--
H.S.Rai |
you have not read in the LC command line (marked in red)
Testers are needed, but, at the moment, only for implemented parts. 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... A example file from cben.net: https://github.com/Rallaz/LibreCAD/tree/dwgsupp2/tests/libraries/dwgdevel/testfiles/R-2001-1.DWG |
Free forum by Nabble | Edit this page |