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.

210 lines
4.0 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <article>
  2. <articleinfo>
  3. <title>How to compile cSOAP</title>
  4. <author><firstname>Ferhat</firstname><surname>Ayaz</surname></author>
  5. <copyright><year>2005</year><holder>csoap</holder></copyright>
  6. </articleinfo>
  7. <section>
  8. <title>Introduction</title>
  9. <para>
  10. This document shows in short examples how to compile cSOAP
  11. under *nix systems.
  12. </para>
  13. <para>
  14. cSOAP is implemented in ANSI C. So it should be possible to compile it with
  15. every ANSI C conform compiler. If you can not compile it with your compiler,
  16. please post it to the mailinglist, so we can alter neccessary code or Makefiles.
  17. </para>
  18. </section>
  19. <section>
  20. <title>Dependecies</title>
  21. <para>
  22. cSOAP depends on libxml2 and pkg-config tool.
  23. </para>
  24. <synopsis>
  25. + libxml2 : http://xmlsoft.org
  26. + pkg-config : http://pkgconfig.freedesktop.org/wiki/
  27. </synopsis>
  28. </section>
  29. <section>
  30. <title>Build libxml2</title>
  31. <para>
  32. First you must build the libxml2 library. You can test if you have this library
  33. on your system by typing xml2-config in a command prompt.
  34. </para>
  35. <synopsis><![CDATA[
  36. $ xml2-config
  37. Usage: xml2-config [OPTION]
  38. Known values for OPTION are:
  39. --prefix=DIR change libxml prefix [default /usr]
  40. --libs print library linking information
  41. --cflags print pre-processor and compiler flags
  42. --help display this help and exit
  43. --version output version information
  44. ]]></synopsis>
  45. <para>
  46. Otherwise download the latest sourcecode form http://xmlsoft.org. lets say you downloaded
  47. <filename>libxml2-[version].tar.gz</filename> into you build directory.
  48. </para>
  49. <synopsis><![CDATA[
  50. $tar zxvf libxml2-[version].tar.gz
  51. $cd libxml2-[version]
  52. $./configure --prefix=$LIBXMLDIST
  53. $make
  54. $make install
  55. ]]></synopsis>
  56. <para>
  57. where $LIBXMLDIST is your directory where you want to install libxml2 (usually /usr or /usr/local).
  58. Replace it with your pathname.
  59. </para>
  60. </section>
  61. <section>
  62. <title>Build cSOAP</title>
  63. <para>
  64. At this time we assume that you have pkg-config and libxml2 installed properly on you system.
  65. To check if you have pkg-config, just type "pkg-config" in a command prompt.
  66. </para>
  67. <synopsis><![CDATA[
  68. $pkg-config
  69. Must specify package names on the command line
  70. ]]></synopsis>
  71. <para>Otherwise got to http://pkgconfig.freedesktop.org/wiki/ and folow the instructions</para>
  72. <para>
  73. Now we must download the latest cSOAP package into the build directory.
  74. Goto "http://sourceforge.net/project/showfiles.php?group_id=74977" (or click just the download menu item)
  75. and download the latest cSOAP package. Lets say libsoap-[version].tar.gz.
  76. </para>
  77. <synopsis><![CDATA[
  78. $tar zxvf libsoap-[version].tar.gz
  79. $cd libsoap-[version]
  80. $./configure --prefix=$LIBSOAPDIST --with-libxml-prefix=$LIBXMLDIST
  81. $make
  82. $make install
  83. ]]></synopsis>
  84. <para>
  85. where $LIBSOAPDIST is your directory where you want to install libsoap (usually /usr or /usr/local) and
  86. $LIBXMLDIST is the directory where you installed libxml2 (see section "Build libxml2"). Replace this
  87. variables with your pathnames.
  88. </para>
  89. </section>
  90. <section>
  91. <title>I'm in hurry. Show me all at once</title>
  92. <para>
  93. Ok. Here is a script which will download, compile and install csoap and libxml2.
  94. </para>
  95. <synopsis><![CDATA[
  96. #-----------------------------------------------------------
  97. #!/bin/sh
  98. # Alter this variables for your installation directory
  99. LIBSOAPDIST=/usr/local
  100. LIBXMLDIST=/usr/local
  101. # Download and install libxml2
  102. wget ftp://ftp.xmlsoft.org/libxml2-2.6.20.tar.gz
  103. tar zxvf libxml2-2.6.20.tar.gz
  104. cd libxml2-2.6.20
  105. ./configure --prefix=$LIBXMLDIST
  106. make
  107. make install
  108. cd ..
  109. # Download and install cSOAP
  110. wget http://kent.dl.sourceforge.net/sourceforge/csoap/libsoap-1.0.3.tar.gz
  111. tar zxvf libsoap-1.0.3.tar.gz
  112. cd libsoap-1.0.3
  113. ./configure --prefix=$LIBSOAPDIST --with-libxml-prefix=$LIBXMLDIST
  114. make
  115. make install
  116. #-----------------------------------------------------------
  117. ]]></synopsis>
  118. </section>
  119. </article>