Hi merc, > I've been searching for a VS2005 project file or binary for log4cxx, > but without any luck. No choice but to went through a bumpy journey > to get the ant build from 0.10.0 source. > > Anyway, I posted it up here, hope that its some use to anyone who is > working with VS2005: > http://www.dreamcubes.com/blog/?itemid=43
thanks for your detailed description on building log4cxx on a windows system. I was very close to giving up, even though I'm very happy with the current svn-snapshot of it on my Linux platform. Let me summerize your journey for those not having time to read your detailed description: (please correct me, if I'm wrong at some point) - building log4cxx with 'ant' failed - creating project files for M$ Visual C++ 2005 with 'ant build-project-vc8' succeeded - building log4cxx with M$ Visual C++ 2005 VS and the created project files failed - creating project files for M$ Visual C++ 6 with 'ant build-project-vc6' succeeded - building log4cxx with M$ Visual C++ 6 VS and the created project files finally succeeded - converting the VS-6 project files to VS-2005 files and builing log4cxx (using the Visual Studio 2005) succeeded Finally, you edited the VS2005 files, so that "all fit nicely in a single solution, that will build both the Static and Dynamic version of log4cxx, Debug / Release build". Great, thanks for your investigation and for making the binaries as well as a buildable source distribution available. In order to be able to use your project files on the latest svn-snapshot, I played around a bit. Simply copying your project files into the snapshot is of course not working. First apr, aprutil and cppunit had to be fetched. I tried to get these by 'ant build-aprutil build-cppunit'. Then I copied your files into the snapshot, but compilation failed, since "log4cxx/log4cxx.h" doesn't exist. I don't know how ant works, so I wasn't able to figure out, how this file can be created. Next, I called 'ant build-project-vc8', copied your files into the log4cxx directory, and "ta-daaa": compilation of log4cxx is working and thanks to your project file, it's easy to build the static version as well as the dll in both flavours, release and debug. :-) This will probably only work, until log4cxx is significantly changed, e.g. by adding/removing/renaming some source files, but for the moment, it works very well. :-) Anyway, the better solution is to fix the ant build. Unfortunately, I have no idea on how ant works, and also, I'm very new to programming on a windows plattform. So I definetly can't fix it on my own, but of course I am willing to post detailed information about my system and the error messages that occur. Regards, Torsten
