http://librecad.org/cms/home/from-source/windows.html
Following the steps on the above page I ran into some compile error/warnings. The page said to report any issues with compiling. Background: --- Personally, I would prefer to stick with Linux but I would like to have some windows users (Vista/7) be able to view and toggle visibility of layers/blocks to print. Nothing I'm doing is mission critical, just for fun and as a hobby. Specifically, putting my entire property and structures/features in CAD. There is just a coolness factor to it all. I've come to the conclusion that having the latest/freshest build of LibreCAD is very nice so I've taken up the endevor to compile it myself. IT/Comp Sci background, use C++ mostly. --- Using Git Bash: --- $ cd Desktop/LibreCAD/ user@BOX ~/Desktop/LibreCAD (master) $ date Thu Feb 14 03:27:34 PST 2013 $ git pull origin master From git://github.com/LibreCAD/LibreCAD * branch master -> FETCH_HEAD Already up-to-date. --- Errors: --- (3-errors) error(message) requires one argument. src.pro 862 C2466: cannot allocate an array of constant size 0 drw_cptable932.h 16 C2466: cannot allocate an array of constant size 0 drw_cptable949.h 13 C2466: cannot allocate an array of constant size 0 drw_cptable950.h 13 --- 71 "Issues": --- 03:55:21: Running steps for project librecad... 03:55:21: Configuration unchanged, skipping qmake step. 03:55:21: Starting: "C:\Qt\Qt5.0.1\Tools\QtCreator\bin\jom.exe" cd libraries\ && ( if not exist Makefile C:\Qt\Qt5.0.1\5.0.1\msvc2010\bin\qmake.exe C:\Users\jonathan\Desktop\LibreCAD\libraries\libraries.pro -spec win32-msvc2010 -o Makefile ) && C:\Qt\Qt5.0.1\Tools\QtCreator\bin\jom.exe -f Makefile cd libdxfrw\ && ( if not exist Makefile C:\Qt\Qt5.0.1\5.0.1\msvc2010\bin\qmake.exe C:\Users\jonathan\Desktop\LibreCAD\libraries\libdxfrw\libdxfrw.pro -spec win32-msvc2010 -o Makefile ) && C:\Qt\Qt5.0.1\Tools\QtCreator\bin\jom.exe -f Makefile C:\Qt\Qt5.0.1\Tools\QtCreator\bin\jom.exe -f Makefile.Release cl -c -nologo -Zm200 -Zc:wchar_t -U__STRICT_ANSI__ -std=c++0x -O2 -MD -W3 -w34100 -w34189 -GR -EHsc -DUNICODE -DWIN32 -DEMU_C99 -D_USE_MATH_DEFINES -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"..\..\..\..\..\..\Qt\Qt5.0.1\5.0.1\msvc2010\include" -I"..\..\..\..\..\..\Qt\Qt5.0.1\5.0.1\msvc2010\include\QtSvg" -I"..\..\..\..\..\..\Qt\Qt5.0.1\5.0.1\msvc2010\include\QtWidgets" -I"..\..\..\..\..\..\Qt\Qt5.0.1\5.0.1\msvc2010\include\QtGui" -I"..\..\..\..\..\..\Qt\Qt5.0.1\5.0.1\msvc2010\include\QtCore" -I"..\..\generated\lib\libdxfrw\moc" -I"..\..\..\..\..\..\Qt\Qt5.0.1\5.0.1\msvc2010\mkspecs\win32-msvc2010" -Fo..\..\generated\lib\libdxfrw\obj\ @C:\Users\jonathan\AppData\Local\Temp\libdxfrw.obj.6068.15.jom cl : Command line warning D9002 : ignoring unknown option '-std=c++0x' libdxfrw.cpp c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\drw_entities.h(570) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\drw_entities.h(620) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\drw_entities.h(708) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\drw_entities.h(709) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\drw_entities.h(838) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\drw_entities.h(1114) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\drw_entities.h(1115) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\dxfreader.h(41) : warning C4244: 'return' : conversion from 'unsigned __int64' to 'int', possible loss of data c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\dxfreader.h(42) : warning C4800: 'short' : forcing value to bool 'true' or 'false' (performance warning) src\libdxfrw.cpp(152) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(371) : see declaration of 'sprintf' src\libdxfrw.cpp(185) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(371) : see declaration of 'sprintf' src\libdxfrw.cpp(221) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(371) : see declaration of 'sprintf' src\libdxfrw.cpp(261) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(371) : see declaration of 'sprintf' src\libdxfrw.cpp(301) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(371) : see declaration of 'sprintf' src\libdxfrw.cpp(383) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(371) : see declaration of 'sprintf' src\libdxfrw.cpp(894) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data src\libdxfrw.cpp(906) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data src\libdxfrw.cpp(1211) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(371) : see declaration of 'sprintf' src\libdxfrw.cpp(1215) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(371) : see declaration of 'sprintf' src\libdxfrw.cpp(1248) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(371) : see declaration of 'sprintf' src\libdxfrw.cpp(1274) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(371) : see declaration of 'sprintf' src\libdxfrw.cpp(1277) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(371) : see declaration of 'sprintf' src\libdxfrw.cpp(1289) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(371) : see declaration of 'sprintf' src\libdxfrw.cpp(1292) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(371) : see declaration of 'sprintf' src\libdxfrw.cpp(1633) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(371) : see declaration of 'sprintf' src\libdxfrw.cpp(1637) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(371) : see declaration of 'sprintf' src\libdxfrw.cpp(1661) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(371) : see declaration of 'sprintf' drw_entities.cpp cl -c -nologo -Zm200 -Zc:wchar_t -U__STRICT_ANSI__ -std=c++0x -O2 -MD -W3 -w34100 -w34189 -GR -EHsc -DUNICODE -DWIN32 -DEMU_C99 -D_USE_MATH_DEFINES -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"..\..\..\..\..\..\Qt\Qt5.0.1\5.0.1\msvc2010\include" -I"..\..\..\..\..\..\Qt\Qt5.0.1\5.0.1\msvc2010\include\QtSvg" -I"..\..\..\..\..\..\Qt\Qt5.0.1\5.0.1\msvc2010\include\QtWidgets" -I"..\..\..\..\..\..\Qt\Qt5.0.1\5.0.1\msvc2010\include\QtGui" -I"..\..\..\..\..\..\Qt\Qt5.0.1\5.0.1\msvc2010\include\QtCore" -I"..\..\generated\lib\libdxfrw\moc" -I"..\..\..\..\..\..\Qt\Qt5.0.1\5.0.1\msvc2010\mkspecs\win32-msvc2010" -Fo..\..\generated\lib\libdxfrw\obj\ @C:\Users\jonathan\AppData\Local\Temp\dxfreader.obj.6068.15.jom dxfreader.cpp c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\dxfreader.h(41) : warning C4244: 'return' : conversion from 'unsigned __int64' to 'int', possible loss of data c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\dxfreader.h(42) : warning C4800: 'short' : forcing value to bool 'true' or 'false' (performance warning) dxfwriter.cpp src\dxfwriter.cpp(185) : warning C4244: '=' : conversion from 'unsigned __int64' to 'char', possible loss of data src\dxfwriter.cpp(186) : warning C4244: '=' : conversion from 'unsigned __int64' to 'char', possible loss of data src\dxfwriter.cpp(187) : warning C4244: '=' : conversion from 'unsigned __int64' to 'char', possible loss of data src\dxfwriter.cpp(188) : warning C4244: '=' : conversion from 'unsigned __int64' to 'char', possible loss of data src\dxfwriter.cpp(189) : warning C4244: '=' : conversion from 'unsigned __int64' to 'char', possible loss of data src\dxfwriter.cpp(190) : warning C4244: '=' : conversion from 'unsigned __int64' to 'char', possible loss of data src\dxfwriter.cpp(269) : warning C4244: 'initializing' : conversion from 'std::streamsize' to 'int', possible loss of data Generating Code... cl : Command line warning D9002 : ignoring unknown option '-std=c++0x' c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\drw_entities.h(570) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\drw_entities.h(620) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\drw_entities.h(708) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\drw_entities.h(709) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\drw_entities.h(838) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\drw_entities.h(1114) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\drw_entities.h(1115) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\dxfreader.h(41) : warning C4244: 'return' : conversion from 'unsigned __int64' to 'int', possible loss of data c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\dxfreader.h(42) : warning C4800: 'short' : forcing value to bool 'true' or 'false' (performance warning) src\drw_entities.cpp(203) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data src\drw_entities.cpp(268) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data Generating Code... cl -c -nologo -Zm200 -Zc:wchar_t -U__STRICT_ANSI__ -std=c++0x -O2 -MD -W3 -w34100 -w34189 -GR -EHsc -DUNICODE -DWIN32 -DEMU_C99 -D_USE_MATH_DEFINES -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"..\..\..\..\..\..\Qt\Qt5.0.1\5.0.1\msvc2010\include" -I"..\..\..\..\..\..\Qt\Qt5.0.1\5.0.1\msvc2010\include\QtSvg" -I"..\..\..\..\..\..\Qt\Qt5.0.1\5.0.1\msvc2010\include\QtWidgets" -I"..\..\..\..\..\..\Qt\Qt5.0.1\5.0.1\msvc2010\include\QtGui" -I"..\..\..\..\..\..\Qt\Qt5.0.1\5.0.1\msvc2010\include\QtCore" -I"..\..\generated\lib\libdxfrw\moc" -I"..\..\..\..\..\..\Qt\Qt5.0.1\5.0.1\msvc2010\mkspecs\win32-msvc2010" -Fo..\..\generated\lib\libdxfrw\obj\ @C:\Users\jonathan\AppData\Local\Temp\drw_objects.obj.6068.15.jom drw_objects.cpp c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\dxfreader.h(41) : warning C4244: 'return' : conversion from 'unsigned __int64' to 'int', possible loss of data c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\dxfreader.h(42) : warning C4800: 'short' : forcing value to bool 'true' or 'false' (performance warning) drw_textcodec.cpp c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\drw_cptable932.h(16) : error C2466: cannot allocate an array of constant size 0 c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\drw_cptable949.h(13) : error C2466: cannot allocate an array of constant size 0 c:\users\jonathan\desktop\librecad\libraries\libdxfrw\src\drw_cptable950.h(13) : error C2466: cannot allocate an array of constant size 0 Generating Code... cl : Command line warning D9002 : ignoring unknown option '-std=c++0x' jom: C:\Users\jonathan\Desktop\LibreCAD\libraries\libdxfrw\Makefile.Release [..\..\generated\lib\libdxfrw\obj\drw_objects.obj] Error 2 jom: C:\Users\jonathan\Desktop\LibreCAD\libraries\libdxfrw\Makefile [release] Error 2 jom: C:\Users\jonathan\Desktop\LibreCAD\libraries\Makefile [sub-libdxfrw-make_first] Error 2 jom: C:\Users\jonathan\Desktop\LibreCAD\Makefile [sub-libraries-make_first-ordered] Error 2 03:55:25: The process "C:\Qt\Qt5.0.1\Tools\QtCreator\bin\jom.exe" exited with code 2. Error while building/deploying project librecad (kit: Desktop Qt 5.0.1 MSVC2010 32bit) When executing step 'Make' |
Additional Information:
--- Built on Microsoft Vista 64bit Ultimate SP2 Qt 5.0.1 for Windows 32-bit (VS 2010, 481 MB) Qt Creator 2.6.2 (based on Qt 5.0.1 32bit) Built on Jan 30 2013 at 7:08:53 From revision 55e2124f32 Microsoft Visual Studio 2010 Version 10.0.30319.1 RTMRel Microsoft .NET Framework Version 4.0.30319 RTMRel Installed Version: VC Express Microsoft Visual C++ 2010 |
To build LibreCAD in windows is required "Qt libraries 4.8.4 for Windows (minGW 4.4, 317 MB)"
version 5 do not work (at the moment) |
I made some patches in source code to remove yours compiler error and many of the issues.
To build LibreCAD on windows read this: https://github.com/LibreCAD/LibreCAD/blob/master/README.md Prerequisites are boost & and Qt 4.7.x or 4.8.x Qt 5.0.x are very recent and not supported at the moment. About compiler Mingw are supported Visual C++ are not tested and you can found more errors and issues. If you want, you can send patches to: http://sourceforge.net/tracker/?group_id=342582&atid=1433846 or https://github.com/LibreCAD/LibreCAD If you just want a more updated version (2013-01-28) you can found in this thread: http://forum.librecad.org/download-master-branch-precompiled-binaries-td5707583.html |
Free forum by Nabble | Edit this page |