cross compile ROS fuerte: Log4cxx cmake
I am trying to compile ROS Fuerte for the Nao (atom) platform but ran into some errors. I downloaded ros-underlay, created the build folder and called cmake, but it fails with:
CMake Warning at ros_comm/tools/rosconsole/CMakeLists.txt:28 (find_package):
Could not find module FindLog4cxx.cmake or a configuration file for package
Log4cxx.
Adjust CMAKE_MODULE_PATH to find FindLog4cxx.cmake or set Log4cxx_DIR to
the directory containing a CMake configuration file for Log4cxx. The file
will have one of the following names:
Log4cxxConfig.cmake
log4cxx-config.cmake
CMake Error at ros_comm/tools/rosconsole/CMakeLists.txt:34 (message):
Couldn't find log4cxx library
Apparently, it is missing a log4cxx cmake config or a FindLog4cxx.cmake file. As log4cxx is a automake project, there are no cmake config files shipped with it, so where am I supposed to get that file from? In my case, I cross-compiled log4cxx, so I cannot use the system-wide installed version. Is there an easy workaround? I tried cmake-gui and set the path to the library, but it failed to find the log4cxx-includes when building rosconsole.