From 35676b739a195dc7ea25b70f8b53ec9cfc02f4cc Mon Sep 17 00:00:00 2001 From: Frank Voorburg Date: Wed, 21 Apr 2021 20:22:38 +0000 Subject: [PATCH] Refs #1245. Added note about LibOpenBLT being a 32-bit DLL under Windows. git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@846 5dc33758-31d5-4daf-9ae8-b24bf3d40d73 --- Host/Source/LibOpenBLT/bindings/pascal/README.md | 8 ++++++++ Host/Source/LibOpenBLT/bindings/python/README.rst | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/Host/Source/LibOpenBLT/bindings/pascal/README.md b/Host/Source/LibOpenBLT/bindings/pascal/README.md index 2d85aae3..70572691 100644 --- a/Host/Source/LibOpenBLT/bindings/pascal/README.md +++ b/Host/Source/LibOpenBLT/bindings/pascal/README.md @@ -25,6 +25,14 @@ https://www.feaser.com/openblt/doku.php?id=manual:libopenblt#run-time_libraries These run-time libraries can be found in the ./Host directory of the OpenBLT bootloader package. These run-time libraries should also be included, when distributing your program. +### Lazarus and Delphi specifics on Windows + +Under Microsoft Windows, the LibOpenBLT shared library (**libopenblt.dll**) is 32-bit. This means that the application you develop needs to build as a 32-bit application as well. + +When using Lazarus, an easy solution is to install the 32-bit version of Lazarus. That way your own application automatically builds as a 32-bit application as well. If you already installed the 64-bit version of Lazarus, then you can go to the *Project Options* and set **Target OS** to **Win32** and **Target CPU Family** to **i386**. + +When using Delphi, go to the *Project Manager* and configure just **32-bit Windows platform (Win32)** for setting **Target Platforms**. + ### Lazarus specifics on Linux When running your program under Linux, you will most likely get the following error: ``` diff --git a/Host/Source/LibOpenBLT/bindings/python/README.rst b/Host/Source/LibOpenBLT/bindings/python/README.rst index 9436620a..d6514c2f 100644 --- a/Host/Source/LibOpenBLT/bindings/python/README.rst +++ b/Host/Source/LibOpenBLT/bindings/python/README.rst @@ -39,3 +39,7 @@ Copy the LibOpenBLT related run-time libraries into your python program's direct https://www.feaser.com/openblt/doku.php?id=manual:libopenblt#run-time_libraries. These run-time libraries can be found in the ./Host directory of the OpenBLT bootloader package. These run-time libraries should also be included, when distributing your program. + +Specific on Windows +------------------ +Under Microsoft Windows, the LibOpenBLT shared library (libopenblt.dll) is 32-bit. Therefore you need to run your Python application, that makes use of LibOpenBLT, using the 32-bit Python interpreter.