Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

How to build on Windows

codebox edited this page Nov 21, 2011 · 1 revision

This page describes how to building BitMeterOS from source code on Windows.

To prepare

There are a couple things you may need to install on your PC if you don't have them already:

  • The easiest way to get a copy of the source code is to install Git
  • To compile the source code you will need a C compiler and the 'make' utility - both of these are provided by MinGW.

To build

Download the BitMeterOS source code from GitHub using the command

git clone git://github.com/codebox/bitmeteros.git

Change your working directory to 'build\windows' relative to the root of the project

cd bitmeteros\build\windows

Compile all the executables using the command

make all

If everything went as planned you should now have these seven .EXE files in the 'build\windows' folder (along with lots of '.o' files):

  1. BitMeterCapture.exe
    
  2. BitMeterCaptureService.exe
    
  3. BitMeterWeb.exe
    
  4. BitMeterWebService.exe
    
  5. bmclient.exe
    
  6. bmdb.exe
    
  7. bmsync.exe
    

If you have problems getting this to work then please either post in the forum, or contact me directly - I will add solutions to common problems on this page as I find them

To install

Before you install the application you should check that the values for EXE_DIR and APP_DATA_DIR given in the makefile look correct for your system - on my Windows XP machine they are correct but may need to be changed on some setups. To copy all the files into place and start up the services, run the command:

make install

You should then be able to see the web interface in your browser at the following url:

http://localhost:2605

Clone this wiki locally