How to compile C4B ?

Command-line mode

The compilation procedure is as follows:

  • get the ICU library for unicode support
    • get the ICU4C binary download
      • extract the zip file in a separate directory
      • set the ICU_DIR environment variable with the binary directory path
      • set the LIBRARY_PATH environment variable with ICU_DIRlib
    • get the ICU4C source code download
      • extract the zip file in a separate directory
      • execute the ./configure in the source code directory (you need cygwin or mingw-msys installed)
      • copy common/unicode/platform.h to ICU_DIR/include/unicode
      • copy common/unicode/ptypes.h to ICU_DIR/include/unicode


Example of configuration

  • get the C4B source code from sourceforge svn server
    • go to the C4B directory
    • type cmake -G « MinGW Makefiles »


Initiating the compilation phase

    • type make (or mingw32-make)

b2c executable file is finally produced

 

QtCreator mode

The compilation procedure is similar to the command-line mode:

  • get the ICU4C binary download
  • get the ICU4C source code download
  • get the C4B source code from sourceforge svn server
  • Open QtCreator then select « Open project »
  • Select the CMakeLists.txt file then click « Continue »
  • In the CMake wizard window, add « -DCMAKE_BUILD_TYPE=DEBUG » as arguments then click « Execute CMake ».
  • Press Ctrl+B to compile C4B.