Login  Register

Re: HOWTO: Compiling LibreCAD with Visual Studio 2003 (and Qt 4.3.1 ...)

Posted by dxli on May 24, 2012; 12:25am
URL: https://forum.librecad.org/HOWTO-Compiling-LibreCAD-with-Visual-Studio-2003-and-Qt-4-3-1-tp5108768p5706678.html

I managed to build LibreCAD (the msvc branch) with Visual Studio 2010 (with Qt plugin).

I used Qt plugin to read in the qmake project file: librecad.pro
After that, some settings still have to be modified manually. LibreCAD builds and run without an issue.

Download the latest Qt for Windows (not QtSDK with mingw);

1, you need boost downloaded to a folder, the default setting is c:\boost\boost_1_49_0\
2, you need muparser 2.2.2 downloaded and built with MSVC 2010 as release DLL and static lib, you can keep the muparser_v2_2_2 in the LibreCAD folder or other place at your choice;
3, for boost and muparser, make sure include folder is set in project properties->configuration properties-> VC++ Properties-> Include directories; for muparser, make sure the library directories are set to include the lib directory under muparser source folder.
4, in project properties->configuration properties->Linker->Additional dependency,
change muparser.lib to muparser32.lib

if you still get header file errors, double check step 4.

if you get shared library error, you need to set PATH in windows to include the muparser dll within PATH ( the lib folder under muparser source folder).

Please help us improve msvc support and help building our building document.

thanks,

dxli