> The XQuery Processor
[ZORBA] in the following.[ZORBA].[ZORBA]/build and refer to this directory as [ZORBABUILD] in the following.[ZORBABUILD] directory and execute cmake as follows: cmake [ZORBA]. In case the [ZORBABUILD] is located directly within the [ZORBA] directory just type cmake .. . This command should configure Zorba and prepare for the build. CMake will tell you if your installation is missing some of the required libraries or development headers.make. Running make will take some time. If make finished successfully, you're ready to install and run Zorba (see Installation).[ZORBA] directory: cmake -G KDevelop3 [ZORBABUILD].cmake -D CMAKE_BUILD_TYPE=Debug [ZORBA].sudo port -d selfupdate to upgrade the package lists. If this was successfull, you can simply install packages by typing e.g. sudo port install cmake. Note that libxml2 is already installed as part of Mac OS X.For ICU and Xerces-C the instructions given by Apple almost just work. One should change the CFLAGS to CXXFLAGS. Zorba developers prefer a variation on those instructions like this ...
./configure CXXFLAGS="-arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk" \ -disable-dependency-tracking LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk \ -arch i386 -arch ppc"
As noted by Apple, dependency generation by gcc doesn't work when building universal, thus it is turned off with the above command.
PATH environment variable. path_to_libxml2\bin;path_to_icu\bin;path_to_iconv\bin;path_to_xerces\bin
[ZORBA] directory.[ZORBA]/build and refer to this directory as [ZORBABUILD] in the following.cmake -G "NMake Makefiles" [ZORBA]. Unfortunately, CMake does not find all the development headers and libraries itself. Hence, you need to tell CMake where they are located. This can be done by the following command: "cmake" -G "NMake Makefiles" -D ICU_LIBRARY="path_to_icu\lib\icuuc.lib" -D ICU_DATA_LIBRARY="path_to_icu\lib\icudt.lib" -D ICU_I18N_LIBRARY="path_to_icu\lib\icuin.lib" -D ICU_INCLUDE="path_to_icu\include" -D ICONV_INCLUDE_DIR="path_to_iconv\include" -D ICONV_LIBRARY="path_to_iconv\lib\iconv.lib" -D LIBXML2_INCLUDE_DIR="path_to_libxml2\include" -D LIBXML2_LIBRARIES="path_to_libxml2\lib\libxml2.lib" -D XERCESC_INCLUDE="path_to_xerces\include" -D XERCESC_LIBRARY="path_to_xerces\lib\xerces-c_2.lib" ..\
nmake from the [ZORBABUILD] directory.[ZORBA] directory. -G "Visual Studio X 200Y" option instead of -G "NMake Makefiles".zorba.sln project file, and start compilation.