Compilation guide آموزش کامپایل سورس برنامه - m-audio91/BitHesab GitHub Wiki

آموزش کامپایل سورس بیت حساب

  1. همین مخزن و مخزن
    CommonUtils
    را روی سیستم خودتون کلون کنید. (توجه: اگه موقع کلون کردن، نام محل ذخیره کلون در سیستمتون رو بصورت حروف کوچک وارد کنید به اینصورت
    git clone https://github.com/m-audio91/CommonUtils commonutils
    clone-m-audio91-repo's-tutorial
    دیگه نیازی به انجام مرحله 3 نخواهید داشت و کلی کارتون راحت خواهد شد. درواقع همگی مخازن من رو بصورت حروف کوچک و در عمق پوشه یکسان یعنی در کنار یکدیگه کلون کنید.)
  2. Free Pascal و Lazarus
    خودتون رو در حداقل شرایط به آخرین نسخه ای که در صفحه تازه ترین ارائه آمده بروز کنید. اگر مشکلی برای گرفتن نسخه دقیق دارید از برنامه عالی زیر کمک بگیرید
    fpcupdeluxe.
  3. پروژ برنامه را باز کنید
    bithesabgui.lpi یا bithesab.lpi
    برای نسخه های کنسولی و گرافیکی. برای هر حالت بیلد یا همون
    Build mode
    به مسیر زیر رفته و آدرس مخزن
    CommonUtils
    را اضافه کنید:
    project > project options > compiler options > paths > Other unit files
    مجددا تاکید می کنم که راه حل انجام ندادن این مرحله در توضیحات مرحله 1 گفته شده.
  4. برنامه را کامپایل و اجرا کنید. (توجه: برای کامپایل به همه سیستم عامل هایی که در بیلد مُد ها قرار داده شده بغیر از سیستم عامل فعلی خودتان باید کراس-کامپایلرهای مربوطه را نیز نصب کرده باشید که با همان برنامه دِلوکس قابل انجام است).
  5. مشکلی بود؟ در اینجا گزارش کنید

BitHesab Compilation Guide

  1. clone this repository plus CommonUtils repository. (note: if you clone all of my repo's with lowercase name
    e.g. git clone https://github.com/m-audio91/CommonUtils commonutils
    and in the same folder level next to each other then you won't have to do step 3 because the path names in my projects are already in lowercase and are relative path's, in fact I recommend you to do it this way)
  2. update your Free Pascal and Lazarus to at least the version mentioned in latest BitHesab release description. use fpcupdeluxe if you have problem updating.
  3. open the project (bithesabgui.lpi or bithesab.lpi) in Lazarus and go to project > project options > compiler options > paths > Other unit files to add CommonUtils folder to your unit search paths for every build target (see note on step 1 to see how to skip this step).
  4. compile and run. (note: you need cross-compilers to compile build modes other than your current OS. again fpcupdeluxe can help you here).
  5. issues? please report here