# LDmicro **Repository Path**: wyllgq/LDmicro ## Basic Information - **Project Name**: LDmicro - **Description**: No description available - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-12-04 - **Last Updated**: 2025-12-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # LDmicro LDmicro is a program for creating, developing and editing [ladder diagrams](https://en.wikipedia.org/wiki/Ladder_logic), simulation of a ladder diagram work and the compilation of ladder diagrams into the native hexadecimal firmware code of the Atmel AVR and Microchip PIC controllers. Official [LDmicro Ladder Logic for PIC and AVR Home Page](http://cq.cx/ladder.pl) Official [LDmicro Forum](http://cq.cx/ladder-forum.pl) Actual [manual.txt](https://github.com/LDmicro/LDmicro/blob/master/ldmicro/manual.txt) Download executable binaries buildXXXX.zip from the [Latest release](https://github.com/LDmicro/LDmicro/releases/latest) You probably need to install the Microsoft Visual C ++ Redistributable Package if Visual C ++ is not installed in your operating system. See [MSVCP100.dll is missing error](https://github.com/LDmicro/LDmicro/issues/174) Read Ldmicro [Wiki](https://github.com/LDmicro/LDmicro/wiki) and [HOW TO:](https://github.com/LDmicro/LDmicro/wiki/HOW-TO) ### Building LDmicro #### Building with make LDmicro is built using the Microsoft Visual C++ compiler. If that is installed correctly, then you should be able to just run make.bat and see everything build. Various source and header files are generated automatically. The perl scripts to do this are included with this distribution, but it's necessary to have a perl.exe in your path somewhere. The makefile accepts an argument, D=LANG_XX, where XX is the language code. make.bat supplies that argument automatically, as LANG_EN (English). #### Building with Cmake For building LDmicro with Cmake you need Cmake itself, Perl interpreter and C++11 compiler. You should use out-of-source-tree builds, so create e.g. a directory `build` in the main ldmicro directory. (If you choose to build in other directory, replace the `..` in the following instructions with path pointing to the root/ldmicro directory.) To build with MSYS + [mingw-w64](http://mingw-w64.org) + Make: ```sh $ mkdir build $ cd build $ cmake -G "MSYS Makefiles" .. $ make ``` To build with MSYS + mingw-w64 + [Ninja](http://martine.github.io/ninja): ```sh $ mkdir build $ cd build $ cmake -G "Ninja" .. $ ninja ``` To build within [MSYS2](http://msys2.github.io), make sure you have these MSYS2 packages installed: * `make` * `mingw-w64-i686-gcc`, `mingw-w64-i686-cmake` #### Build with Microsoft Visual Studio 2017 Visual Studio 2017 supports CMake build system, so you may just follow these instructions. 1. Start Visual Studio 2017. 2. In menu File, choose submenu Open and Folder. 3. In the open dialog, navigate to LDmicro/ldmicro folder and open it. 4. In menu CMake, choose to Build all. #### Build with Older Version of Microsoft Visual Studio To build with older Microsoft Visual Studio 2013 or 2015, you have to generate project files manually: ```sh $ mkdir build $ cd build $ cmake -G "Visual Studio 12 2013" .. # MSVC 2013, 32-bit build $ cmake -G "Visual Studio 12 2013 Win64" .. # MSVC 2013, 64-bit build $ cmake -G "Visual Studio 14 2015" .. # MSVC 2015, 32-bit build $ cmake -G "Visual Studio 14 2015 Win64" .. # MSVC 2015, 64-bit build $ cmake -G "Visual Studio 15 2017" .. # MSVC 2017, 32-bit build $ cmake -G "Visual Studio 15 2017 Win64" .. # MSVC 2017, 64-bit build $ cmake -G "Visual Studio 16 2019" .. # MSVC 2019, 32-bit build $ cmake -G "Visual Studio 16 2019 Win64" .. # MSVC 2019, 64-bit build ``` Then open the generated solution file `build/ldmicro.sln` in Visual Studio and build the target `ALL_BUILD`. You can also choose LDmicro language. For that, you should set LDLANG variable for Cmake. LDLANG can be one of those values: EN, DE, ES, FR, IT, PT, TR, RU, JA or ALL. ```sh cmake -G "Ninja" -DLDLANG=DE .. ```