You need to setup your Qt_Dir, Mingw_Ver and Qt_Version in the scripts\postprocess-windows\custom.nsh file if they don't match the default settings in scripts\postprocess-windows\nsis-5.4.nsi.Įxample for scripts\postprocess-windows\custom.nsh: If you would like to build an installer for Windows, you will need the tool. With that information set NSIS_DIR like following in scripts/custom-windows.bat to avoid the issues:īy default, LibreCAD uses NSIS to generate installers in Windows. You need the short name of the Program Files (x86) folder. In this case use the command dir /X \ and get an output like this: When NSIS is installed in the Program Files (x86) folder and NSIS_DIR is added to the PATH, something goes wrong in the build process. There are issues with the NSIS_DIR path on 64 Bit Windows. To change these default settings you have to create the file scripts/custom-windows.bat and overwrite the different settings without effect to the SCM (git). Default values for Qt_Dir, MINGW_VER and NSIS_DIR are set in file scripts/set-windows-env.bat: To be able to use this batch file, you need to have your Qt and NSIS directories set up first. In librecad/src edit the custom.pro (or custom.pri) file accordingly :Ī command line building script file is added as scripts/build-windows.bat. You don't have to build boost in order to build LibreCAD, because LibreCAD only uses headers. Verify that you have the file C:\boost\boost_1_60_0\booststrap.bat. Unzip the boost files to the directory: C:\boost\ - the extracted folder would be: C:\boost\boost_1_60_0\. Instead create the files custom.pro, custom-windows.bat and custom.nsh, which are ignored by git, and set your local settings there. This would result in changes for git you have to care about in each commit, pull and push. If you are planning to contribute, don't edit the librecad.pro, build-windows.bat and nsis-5.4.nsi files to fit your local settings. The other custom files are for when you want to create an installer. If you only care about building with Qt Creator, then you only need to read the boost and custom.pro section. On Windows, muParser is not required to build LibreCAD since LibreCAD-2.0.4, because LibreCAD uses by default a patched version of muParser included within LibreCAD source. The MinGW tools will be in C:\Qt\5.4\mingw491_32\bin by default. Install Qt (including Qt-Creator) to C:\Qt\5.4\ (the default path prompted by Qt installer). Qt-5.4.1 for Windows 32 bit (MinGW 4.9.1) is used as an example in this article. Offline installer with MinGW is recommended instead of the Windows online installer. press clone and then wait for it to downloadĭownload Qt from : Qt download.enter target directory: where you want the project on your hard drive.enter source location: git:///LibreCAD/LibreCAD.git.after the program loads select "Clone existing repository".press the windows-key and then type git.To clone LibreCAD source code by command line: Installing Linux and building LibreCad on android devices in a Linux chroot environmentĭetailed steps are here: Building LibreCAD 2.0 on Windows Cloning the source package unix/librecad, and you may launch LibreCAD: If building is successful, the generated executable is at. Or just insert the option "-qt=5" in the qmake command "qtchooser -qt5") or use the qtool option "-qt=5". So either use qtchooser to set default for qt5 (e.g. $ git clone Update a local LibreCAD repository $ cd ~/develop/LibreCAD/ĭuring the previous install dependencies commands, you downloaded QT5 base and default libraries. If ~/develop does not exist, create this folderĬlone the LibreCAD repository, please note this is needed only once If you have a local LibreCAD repository, continue to Update a local LibreCAD repository instead If you have not cloned the LibreCAD repository You also have to either install the qt5-default package ("apt-get install qt5-default") or use qtchooser prior to running qmake (e.g., "qtchooser -qt5"). Libboost-dev libfreetype6-dev libicu-dev pkg-config Qttools5-dev qtchooser qttools5-dev-tools libmuparser-dev librsvg2-bin\ $ sudo apt-get install g gcc make git-core qtbase5-dev libqt5svg5-dev\ Building LibreCAD 2.0 on Linux Install dependencies 5.2 Alternative: Building from Downloaded Source Code.3 Installing Linux and building LibreCad on android devices in a Linux chroot environment.2.1.2 Update a local LibreCAD repository.2.1.1 If you have not cloned the LibreCAD repository.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |