C++DB is the database layer that was designed to work with C++CMS. This customized version is used within Ye Ol' Pi Shack.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

65 lines
2.5 KiB

  1. /*! \page build Building CppDB
  2. \section req Requirements
  3. In order to build CppDB you need following:
  4. - <a href="http://www.cmake.org/">CMake</a> 2.6 and above
  5. - Decent C++ compiler like GCC, Intel or MSVC.
  6. - SQL library API you want to use:
  7. - Sqlite3 - the library and headers themselfs
  8. - MySQL - libmysqlclient
  9. - PostgreSQL - libpq
  10. - ODBC - unixodbc for POSIX operating systems and Window's build in odbc API for windows.
  11. \section opt Build Options
  12. Following CMake "ON", "OFF" options options provided for better customizability, all turned off by default:
  13. - DISABLE_SQLITE - don't build sqlite3 backend even if the library was found
  14. - SQLITE_BACKEND_INTERNAL - don't build a separate sqlite3 loadable module but rather build it into the cppdb library itself.
  15. - DISABLE_MYSQL - don't build mysql backend even if the mysqlclient library was found
  16. - MYSQL_BACKEND_INTERNAL - don't build a separate mysql loadable module but rather build it into the cppdb library itself.
  17. - DISABLE_PQ - don't build postgresql backend even if the libpq library was found
  18. - PQ_BACKEND_INTERNAL - don't build a separate postgresql loadable module but rather build it into the cppdb library itself.
  19. - DISABLE_ODBC - don't build odbc backend even if the odbc library was found
  20. - ODBC_BACKEND_INTERNAL - don't build a separate odbc loadable module but rather build it into the cppdb library itself.
  21. Additionally there is a \c LIBDIR option that allows to provide an install prefix for libraries on RH systems like:
  22. \code
  23. cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIBDIR=lib64
  24. \endcode
  25. By default CMake would try to find the libraries and header files and would disable backends that do not
  26. have appropriate onces.
  27. If CMake fails to find the library or header you may provide the path explicitly using XXX_LIB and XXX_PATH variables
  28. were XXX is one of ODBC, SQLITE, PQ or MYSQL.
  29. By default Release with debug info version is build (unless you are using MSVC which by default builds debug version)
  30. \note MSVC Projects are not supported use "NMake Makefiles" generator to build CppDB with MSVC.
  31. \section bld Build Process
  32. -# Download latest version of CppDB or fetch one from SVN using subverision:
  33. \verbatim
  34. $ svn co http://cppcms.svn.sourceforge.net/svnroot/cppcms/cppdb/trunk cppdb-trunk
  35. \endverbatim
  36. -# Go to the created directory and make build directory and go to it.
  37. \verbatim
  38. $ cd cppdb-trunk
  39. $ mkdir build
  40. $ cd build
  41. \endverbatim
  42. -# Run cmake with all options you need and then make, make install
  43. \verbatim
  44. $ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  45. $ make
  46. # make install
  47. \endverbatim
  48. */