nofeletru / UsbAsp-flash

Program allow you to program flash memory on the protocols spi, I2C, MicroWire. Supports CH341a, CH347, UsbAsp, AVRISP(LUFA), Arduino, FT232H.
MIT License
931 stars 192 forks source link

Compiling #17

Closed Mattiwatti closed 4 years ago

Mattiwatti commented 4 years ago

Hi, thanks for your work on this.

Would it be possible to have in the README some short steps and required software needed to compile the software? I've never used Pascal before so it isn't obvious to me which variant of Pascal is being used, or even what the main project file is (AsProgrammer.lpi? AsProgrammer.lps?). Thanks.

Mattiwatti commented 4 years ago

Update: I managed to compile the sources using Lazarus 2.0.6 (note: must be the 32 bit version, or at least, I couldn't get the Win64 -> Win32 cross compiler to work). The project depends on the richmemopackage and mphexeditorlaz packages which are included in the repository as ZIPs.

I did have two errors compiling richmemopackage:

win32richmemoproc.pas(258,10) Error: Identifier not found "UnicodeEnabledOS"
richmemortf.pas(492,8) Error: Identifier not found "UTF8Length"

I worked around this by implementing these myself. But maybe I overlooked something.

It would still be nice if some 'official' compilation steps could be added to the README. But my executable works now so that's good.

nofeletru commented 4 years ago

richmemopackage is outdated https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/richmemo/

nofeletru commented 4 years ago

Also look at test branch https://github.com/nofeletru/UsbAsp-flash/tree/test

mrdc commented 1 year ago

Hi, thanks for your work on this.

Would it be possible to have in the README some short steps and required software needed to compile the software? I've never used Pascal before so it isn't obvious to me which variant of Pascal is being used, or even what the main project file is (AsProgrammer.lpi? AsProgrammer.lps?). Thanks.

You need AsProgrammer.lpr, I've builded it without any issues using the latest Lazarus 2.2.4 64bit. First time using Lazarus :)