rules_foreign_cc icon indicating copy to clipboard operation
rules_foreign_cc copied to clipboard

Issue with log4cxx build

Open fuhailin opened this issue 3 years ago • 2 comments

From now, the latest log4cxx version is 0.12.1, and only support building method is cmake, so I try to update the example of log4cxx in this repo.

When I tried to use the cmake rules to replace the configure_make rules, I got errors that APR_INCLUDE_DIR (missing: APR_LIBRARIES), so how could I pass the APR deps to the cmake rules when build log4cxx?

Could you please update the example of building log4cxx in this repo?

Thanks.

fuhailin avatar Jan 28 '22 12:01 fuhailin

It was an intentional decision to use an older version of log4cxx (which uses configure_make) as the build of log4cxx provides a regression test for fixes to #344 (i.e configure_make) with transitive dependencies.

To resolve your issue, I suggest looking at the curl example, which depends on the build of OpenSSL.

You can set the CMake cache variable APR_INCLUDE_DIR To $$EXT_BUILD_DEPS$$/apr

jheaff1 avatar Jan 28 '22 20:01 jheaff1

This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days. Collaborators can add an assignee to keep this open indefinitely. Thanks for your contributions to rules_foreign_cc!

github-actions[bot] avatar Jul 27 '22 22:07 github-actions[bot]

This issue was automatically closed because it went 30 days without a reply since it was labeled "Can Close?"

github-actions[bot] avatar Aug 26 '22 22:08 github-actions[bot]