French
Nouvelles
Pages à mettre à jour
Documentation à mettre à jour
English
Drafts, concepts
News
Pages to update
Documentation to update
The FreeMedForms project is written in C++/Qt. In order to build one of the applications, you will need to install and configure the Qt libraries (please refer to the Qt documentation).
FreeMedForms project applications consist of a very small executable, libs and plugins. When the application starts, the executable is loaded, some libs too The plugin manager then loads all needed plugins and executes them.
We use Git as versioning control system, and Google Code for code hosting. You can go here and follow the instructions there to fetch a copy of the FreeMedForms source code.
#in debian/ubuntu sudo apt-get install build-essential libxext-dev libxext6 libqt4-dev zlib1g-dev zlib1g
CONFIG+=dontbuildquazip
to the qmake command line.
qmake ... "CONFIG+=with-account" ...
qmake ... "CONFIG+=with-old-account" ...
qmake ... "CONFIG+=with-agenda" ...
qmake ... "CONFIG+=with-alerts" ...
qmake ... "CONFIG+=with-feedback" ...
qmake ... "CONFIG+=with-pmh" ...
qmake ... "CONFIG+=with-webcam" ...
export PATH=$PATH:/usr/lib64/qt4/bin/
# get help ./build.sh -h # compile the debug without install FreeMedForms EMR && translations ./build.sh -t -b freemedforms # idem + webcam plugin ./build.sh -tw -b freemedforms # On Linux, you can use the GUI (you need to have zenity installed on your system) ./build.sh
cd global_resources/translations lrelease *.ts
or use our lrelease_all.sh script.
make -j4
cd freemedforms qmake-qt4 freemedforms.pro -r "CONFIG+=debug debug_without_install" make cd bin/freemedforms # for Linux ./freemedforms_debug --config=../../global_resources/config.ini # for Mac FreeMedForms_debug.app/Contents/MacOs/FreeMedForms_debug --config=../../../../../global_resources/config.ini # for Windows freemedforms_d.exe --config=../../global_resources/config.ini
# FreeMedForms Sample # 1. Building a Linux package into a fake root system cd freemedforms qmake freemedforms.pro -r -config release "CONFIG+=LINUX_INTEGRATED" "INSTALL_ROOT_PATH=%build__path/usr/" make make install # 2. Fresh compilation and install without aiming to create a package cd freemedforms qmake freemedforms.pro -r -config release "CONFIG+=LINUX_INTEGRATED" "INSTALL_ROOT_PATH=/usr/" make make install # FreeDiams Sample # 1. Building a Linux package into a fake root system cd freediams qmake freediams.pro -r -config release "CONFIG+=LINUX_INTEGRATED" "INSTALL_ROOT_PATH=%build__path/usr/" make make install # 2. Fresh compilation and install without aiming to create a package cd freediams qmake freediams.pro -r -config release "CONFIG+=LINUX_INTEGRATED" "INSTALL_ROOT_PATH=/usr/" make make install
cd scripts # Building FreeDiams in release mode and create the DMG package in one step: ./mac_release.sh -b FreeDiams # Building FreeMedForms in release mode and create the DMG package in one step: ./mac_release.sh -b FreeMedForms # Building FreeAccount in release mode and create the DMG package in one step: ./mac_release.sh -b FreeAccount # Building FreePad in release mode and create the DMG package in one step: ./mac_release.sh -b FreePad # Building FreeToolBox in release mode and create the DMG package in one step: ./mac_release.sh -b FreeToolBox
cd scripts ./source.sh # find output cd .. ls freemedformsfullsources.*.tgz
We use Git as our VCS. If you want to make yourself familiar with it, look at the many, many tutorials and help pages available in the internet.
Git is available for Mac OSX, Linux, BSD and Windows (and probably for other OS). As starting point look here.
First tell git who you are - you are advised to use your real name and a valid email addresse, no nicknames please.
git config --global user.name "James T. Kirk" git config --global user.email "kirk@enterprise.com"
Now checkout the code as described at the Google Code page (link above).
We recommend to install our pre-defined git-hooks to simplify your work when pushing to our server. They run some code quality tests at each commit and automatically correct small issues (remove whitespace at the end of lines etc.):
cd /home/kirk/freemedforms./git/hooks ln -s ../../githooks/*
Per default anyone has read-only access to the FMF source code. If you want to write some code and contribute it to the project, please first read Participate and present yourself at the mailing list. We will then give you writing rights on the server, so you can push your changes upwards.