Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error: 'log4cpp/config.h' file not found #19

Open
yitian108 opened this issue Apr 7, 2020 · 2 comments
Open

fatal error: 'log4cpp/config.h' file not found #19

yitian108 opened this issue Apr 7, 2020 · 2 comments

Comments

@yitian108
Copy link

hi, When I use test example to compile the testmain.cpp, it reports the error as title shows, and I checked the include directory, which really does not contains the head file config.h.

Could you please check it? Or can I use other file instead?

Thanks

@pratikparvati
Copy link

pratikparvati commented Apr 26, 2021

Please try running ./configure and then compile your application. Basically, it will configure your machine and generate log4cpp/config.h.

Regards,
Pratik

@meyerj
Copy link
Member

meyerj commented Apr 26, 2021

In the context of Orocos we typically compile log4cpp with CMake, see orocos_toolchain, or with a build tool like Autoproj or catkin, which also invoke CMake under the hood. With CMake the missing header file is generated here, and the log4cpp unit tests can be built (if enabled) and pass:

cd /path/to/log4cpp
cmake -DBUILD_TESTING=ON .
make check

I am not sure if the autotools-based build method with ./configure works in this fork.
If you are not an Orocos user, it is probably best to start with the upstream version of log4cpp at http://log4cpp.sourceforge.net/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants