log4cxx for Win32 with VS2008

I’m working on a new project, with new VS2008 on my new desk and new chair, what better time to update the log4cxx library that I’ve been using since then : )

I’ve quickly downloaded the source package from the official log4cxx site and I’m really happy that it comes with MSVS project files now!

But soon I realize that it only build DLL versions of the log4cxx, and since I need the static version of log4cxx I’ll have to go back to the ANT tool.

As usual you’ll still need to get the apr, apr-util and other contrib package and setup ANT for the task, and since I don’t have that environment anymore I just had to get all these package allover again.

Everything went a lot smoother then the last time I did this about a year ago, with the right package and build environment everything went just smooth (hooraay~)

The ANT tool still generates the static/shared/release/debug projects files separately. So just like what I did before, I generate the VC6 projects for each build type, and merge it into a single solutions that can compile and build all build type. Plus I also included the required external dependencies (apr / apr-util / etc) so you will just need to download single package and starts get log4cxx to compile on your machine.

I’ve made two package available, one for VC6, another for VC2008 (VC9) from my previous blog entry here.

:)

p/s: did I told you that I’ve got my new desktop machine and new laptop machine as well? ^_^

Comments

  1. Ed Murphy says:

    Hello, I would like to join so many others in expressing my thanks for your efforts. I downloaded your VC6 package and now I would like to convert it to VS2005. I was looking for the solution file you created that would build all build types, but I think I’m missing something.

    Would you mind reviewing the steps required from downloading VC6 to converting it to 2005? If you already described the procedure somewhere else, could you point me in the right direction?

    Thanks,

    E Murphy

  2. merc says:

    Hi Ed, did you download "log4cxx-0.10.0-vc6-June2008.rar" from my previous post? Just extract and open up "log4cxx.dsw" in you VC6, that project file is made to produce "Debug Share", "Debug Static", "Release Share", "Release Static".

    The post was here: http://www.dreamcubes.com/b...

  3. David says:

    Hi Merc

    I was wondering if this only happens to me. I am using your dll release shared unfortunately when I test my application on another machine, it crashes.

    Apparently it crashes on the initial call:

    LoggerPtr logger(Logger::getLogger("Demo.App"));

    Was wondering if you have any ideas?

    Thanks

  4. merc says:

    its hard to tell what’s went wrong, but just has the following double check:
    1. Is the configuration file in the right place? (e.g: try absolute path to the config file instead)
    2. Is the build and the DLL you link is the same? (e.g, debug build link with debug lib, release build should link with release lib)

Submit a Comment