Hi Guys,
I'm having an issue with building your lib for an embedded application.
My issue is faily simple, I want to build ONLY the lib, none of the docs
etc, but I can't seem to find the make directive to do that. I'm using
the buildRoot system and here is my master make file as well as the
error produced. Any input would be appreciated. As you can see I tried
to keep docs off of my RFS image by configuring it to dump docs to the
/tmp of the build system, but it doesn't seem to be working.
Thanks,
Sean
PS
Alexander was kind enough to promptly reply with:
> Sean,
>
> Obviously, you are trying to install library and your account does
not have enough permissions. Look for install word in your script and
find out how to deal with it.There is mailing list for such questions
actually. Please use it next
> time, or even right now if my answer will not help you. Address is
somewhere at sourceforge page for log4cpp.
>
> Regards,
> Alexander.
FWIW other autotools projects more or less just work with BuildRoot. I
have tried the following directive with my BuildRoot log4cpp package script:
LOG4CPP_CONFIGURE_CMDS= cd $(@D) && ls && ./autogen.sh && ./configure
--program-prefix=$(STAGING_DIR)/usr/ --psdir=/tmp --pdfdir=/tmp
--dvidir=/tmp --htmldir=/tmp --docdir="/tmp" \
--mandir=/tmp --infodir=/tmp
LOG4CPP_BUILD_CMDS = cd $(@D) && make
As you can see I'm trying to use the correct program-prefix for my
target and I tell it to dump docs and things I don't need into /tmp so
that they don't bloat my embedded image.
Still yeilds:
/usr/bin/install -c -m 644
./man/man3/log4cpp_TimeStampComponent.3/tmp/man3/log4cpp::TimeStampComponent.3
/usr/bin/install -c -m 644
./man/man3/log4cpp_TriggeringEventEvaluator.3/tmp/man3/log4cpp::TriggeringEventEvaluator.3
/usr/bin/install -c -m 644
./man/man3/log4cpp_TriggeringEventEvaluatorFactory.3/tmp/man3/log4cpp::TriggeringEventEvaluatorFactory.3
/usr/bin/install -c -m 644
./man/man3/log4cpp_width.3/tmp/man3/log4cpp::width.3
/usr/bin/install -c -m 644
./man/man3/log4cpp_Win32DebugAppender.3/tmp/man3/log4cpp::Win32DebugAppender.3
/bin/bash ../config/mkinstalldirs /usr/local/doc/log4cpp-1.1
mkdir /usr/local/doc
mkdir: cannot create directory ‘/usr/local/doc’: Permission denied
mkdir /usr/local/doc/log4cpp-1.1
mkdir: cannot create directory ‘/usr/local/doc/log4cpp-1.1’: No such
file or directory
make[4]: *** [install-data-local] Error 1
Something like <make installLib> is all I need. In the mean time I will
try Alexander's advice.
Thanks again,
Sean
|