Building Apache log4cxx with Apple XcodeBuilding log4cxx.dylibRun configure to generate log4cxx.h and log4cxx_private.h then launch Xcode. cd apache-log4cxx-0.10.0 ./configure open projects/log4cxx.xcodeproj Running unit testsRun configure then open projects/testsuite.xcodeproj or projects/testsuite-standalone.xcodeproj (test suite and implementation in one project) in Xcode. The unit tests require the working directory and several environment variables to be set. To set these, elect the executable in Groups & Files and press Info and:
IssuesThe project file generation does does not properly create an entry in the "Link Binary with Libraries" build phase for projects (such as the examples and unit tests) that depend on log4cxx. To work around the problem, open the project in Xcode and in the Groups & Files pane, drag log4cxx.dylib and drop on the "Link Binary with Libraries" folder under Targets. See issue LOGCXX-245 for further information. The projects provided in the release target Mac OS/X 10.5 which provides preinstalled APR and APR-Util libraries. To generate XCode projects to target Mac OS/X 10.4, set up the ant build and then "ant build-projects-xcode -Dfind=false". |