Skip to content

AmiKo/CoMed for Linux and macOS done with wxwidgets and C++, 64 bit. Starts from macOS 10.9

License

Notifications You must be signed in to change notification settings

zdavatz/amiko_wx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

amiko_linux

AmiKo/CoMed for Linux done with wxWidgets and C++, 64 bit.

Prerequisites:

  • CMake

  • GTK 3

      $ sudo apt install libgtk-3-dev
    
  • WebKit2

      $ sudo apt install libwebkit2gtk-4.0-dev
    
  • SQlite is built-in into the application, so there is no dependency on system libraries.

  • JSON nlohmann

      $ git submodule init
      $ git submodule update
    

    then enable this in steps.conf

      STEP_CONFIGURE_JSON=y
      STEP_BUILD_JSON=y
      STEP_COPY_LANG_FILES=y
    
  • Libcurl

    Install:

      sudo apt install libcurl4-openssl-dev
    

    Or build:

      STEP_DOWNLOAD_SOURCES_CURL=y
      STEP_CONFIGURE_CURL=y
      STEP_BUILD_CURL=y
    
  • OpenSSL development libraries, required for the calculation of the patient hash (SHA256)

      $ sudo apt install libssl-dev
    
  • Smart card support

    • Developers

        $ sudo apt install libpcsclite-dev
      
    • Developers and users

        $ sudo apt install pcscd
      
  • uuidgen for the generation of prescription UUIDs

      $ uuidgen
    
  • To install dependencies on Gentoo:

      $ emerge net-libs/webkit-gtk x11-libs/wxGTK sys-apps/pcsc-lite
    

Build Script

  1. Download and install latest wxWidgets from source using build script.
  2. Build script also has to download all data files, see OSX version.
  3. Build script has to build executables named AmiKo and CoMed.

Config Hack

In the file ~/AmiKo you can set language=57 on the first line. That will put the interface to English. In case you want to test in English.

Setup

  1. Run build.sh
  2. Edit steps.conf
  3. Edit seed.conf
  4. Run build.sh again.

Notes when building wxWidgets and SQLite

  1. For Mac in steps.conf
STEP_CONFIGURE_WXWIDGETS=y
STEP_COMPILE_WXWIDGETS=y

STEP_CONFIGURE_JSON=y
STEP_BUILD_JSON=y
  1. For Mac in seed.conf
CONFIG_GENERATOR_MK=y

Notes when building AmiKo/CoMed

  1. For Mac in steps.conf
STEP_CONFIGURE_APP=y
STEP_COMPILE_APP=y
  1. For Mac in seed.conf
CONFIG_GENERATOR_XC=y

macOS Installer

  1. Create a .pkg Installer for macOS that installs all the DB files in to ~/.AmiKo or ~/.CoMed