I get error from the title when i try to build my project. I know that compiler is complaining that it can not find log4cxx but i am not sure why it can't.
log4cxx lib is in
This is a linker error.
Try to compile while providing the name of the lib to the linker:
g++ ... -llog4cxx
To explain that, the compiler knows where the header files are when they are in a location like /usr/include. It knows where the libs are in these locations as well (here, we just wrote "-llog4cxx" without path and it can find /path/to/liblog4cxx.so). But you must specify the name of the library you want to link with, and there is the compiler -l option to do that.
Read this for details!