My favorites | Sign in
Logo
                
Search
for
Updated Oct 27, 2009 by madfishtheone
Labels: Featured
CompilingFromSource  

To compile WebToolkit from source, you have to install cmake.

1. Check out code from svn:

svn checkout http://madfish-webtoolkit.googlecode.com/svn/trunk/ WebApps

2. Create build folder:

mkdir WebAppsBuild
cd WebAppsBuild

3. Invoke cmake.

For Windows (Visual Studio 2008)

cmake -G "Visual Studio 9 2008" ..\WebApps

For Unix-like systems (by default it will use Unix makefiles, and that is ok)

cmake ../WebApps                                         #Debug version
cmake -DCMAKE_BUILD_TYPE=Release ../WebApps              #Release version
cmake -DCMAKE_BUILD_TYPE=Release -DDOCS=YES ../WebApps   #Release version with documentation

4. Build.

  • For Windows: open generated Visual Studio solution, and run build.
  • For Linux: just run make.

5. For FileServer and RatioProxy you should put their data files in the executable's folder (you should find them in the Data folders). For example, for RatioProxy you should put RatioProxy.exe and RatioProxy.conf into one folder for it to work.


Comment by juri.hudolejev, Jun 17, 2009

0. On Ubuntu (Jaunty) there is no c++ compiler installed by default. This helps:

sudo apt-get install g++

4. (Linux) Makefile is generated in WebApps/ folder, so assuming we are still in WebAppsBuild, make could be invoked as:

cd ../WebApps && make

Z. Test built apps. Run

./HelloWorld/HelloWorld

Now go to http://localhost:8080/ and you should see the 'Hello, world!' message.


Sign in to add a comment
Hosted by Google Code