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

make error #48

Open
RAJensen opened this issue Feb 25, 2017 · 1 comment
Open

make error #48

RAJensen opened this issue Feb 25, 2017 · 1 comment

Comments

@RAJensen
Copy link

RAJensen commented Feb 25, 2017

Hello.
I'm tried to install gr-baz but i run in to trouble.
I've installed gnu-radio and gnuradio-dev with apt-get.
Then i've cloned gr-baz and used:
sudo cmake -DCMAKE_PREFIX_PATH=/usr/lib/cmake/gnuradio
Everything went fine, but when i use:
sudo make
i'll get this error:
[ 2%] Building CXX object lib/CMakeFiles/gnuradio-baz.dir/baz_print_char.cc.o
In file included from /usr/include/gnuradio/block.h:29:0,
from /usr/include/gnuradio/sync_block.h:27,
from /home/pi/gr-baz/lib/baz_print_char.h:31,
from /home/pi/gr-baz/lib/baz_print_char.cc:37:
/usr/include/gnuradio/logger.h:122:31: fatal error: log4cpp/Category.hh: No such file or directory
#include <log4cpp/Category.hh>

compilation terminated.
lib/CMakeFiles/gnuradio-baz.dir/build.make:62: recipe for target 'lib/CMakeFiles/gnuradio-baz.dir/baz_print_char.cc.o' failed
make[2]: *** [lib/CMakeFiles/gnuradio-baz.dir/baz_print_char.cc.o] Error 1
CMakeFiles/Makefile2:117: recipe for target 'lib/CMakeFiles/gnuradio-baz.dir/all' failed
make[1]: *** [lib/CMakeFiles/gnuradio-baz.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

So I would really apreciat a little help.
What is it that I missed?

@ecapson
Copy link

ecapson commented Nov 13, 2017

do cmake -DCMAKE_INSTALL_PREFIX=/usr ..
because it's searching for other subdirectories from there.
by default it starts from /usr/local/

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

2 participants