[ 
https://issues.apache.org/jira/browse/LOGCXX-520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17310995#comment-17310995
 ] 

Nicholas Clark edited comment on LOGCXX-520 at 3/29/21, 9:26 PM:
-----------------------------------------------------------------

{quote}There's also the advanced options APR_CONFIG_EXECUTABLE and 
APR_UTIL_CONFIG_EXECUTABLE which should let you specify the location of these 
executables manually, although I have not tried it.
{quote}
Thanks for your comment [~rmiddleton] . Using the advanced options for 
APR_CONFIG_EXECUTABLE and APR_UTIL_CONFIG_EXECUTABLE let me specify the 
executable paths, and I can confirm that doing so also grabs the correct 
libraries

Using command line flags with cmake,
{code:java}
-DAPR_CONFIG_EXECUTABLE=/opt/apr-1/bin/apr-1-config 
-DAPR_UTIL_CONFIG_EXECUTABLE=/opt/apr-util-1/bin/apu-1-config{code}
Libraries logged by FindAPR and FindAPR-Util;

 
{code:java}
-- Found APR: -L/opt/apr-1.7.0/lib;-lapr-1
-- Found APR-Util: -L/opt/apr-util-1.6.1/lib;-laprutil-1{code}
 

 

EDIT: apr-1 and apr-util-1 are symlinks to a versioned path of the install.


was (Author: nicholas.clark):
{quote}There's also the advanced options APR_CONFIG_EXECUTABLE and 
APR_UTIL_CONFIG_EXECUTABLE which should let you specify the location of these 
executables manually, although I have not tried it.
{quote}
Thanks for your comment [~rmiddleton] . Using the advanced options for 
APR_CONFIG_EXECUTABLE and APR_UTIL_CONFIG_EXECUTABLE let me specify the 
executable paths, and I can confirm that doing so also grabs the correct 
libraries

Using command line flags with cmake,
{code:java}
-DAPR_CONFIG_EXECUTABLE=/opt/apr-1/bin/apr-1-config 
-DAPR_UTIL_CONFIG_EXECUTABLE=/opt/apr-util-1/bin/apu-1-config{code}
Libraries logged by FindAPR and FindAPR-Util;
{code:java}
-- Found APR: -L/opt/apr-1.7.0/lib;-lapr-1
-- Found APR-Util: -L/opt/apr-util-1.6.1/lib;-laprutil-1{code}

> Support for defining APR and APR-Util install locations
> -------------------------------------------------------
>
>                 Key: LOGCXX-520
>                 URL: https://issues.apache.org/jira/browse/LOGCXX-520
>             Project: Log4cxx
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 0.12.0
>            Reporter: Nicholas Clark
>            Priority: Major
>
> Since commit bce24884809bd157cf2f85ef243d658e406a4259, autogen.sh and 
> subsequent configure support were removed in favor of relying only on CMake 
> for builds.
>  
> I am unable to specify the paths where APR and APR-Util are installed at. The 
> CMake definitions are unable to be redefined. Prior to the change I was able 
> to define with apr and with apr-util parameters in configure. There doesn't 
> appear to be a way to do this now or I have not found the documentation that 
> specifies how this is done.
>  
> Tested with commit 35431f12b477318ae9d4c554931fb116d9d7eb8a.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to