Reputation: 11
I am trying to build log4cxx (on Windows) library for logging runtime info in my c++ project. As part of the build I have to build also two dependency libraries called apr
and apr-util
. I have successfully built the apr
library, but can't build apr-util
. I am using for the build, the tool called cmake
.
I am following the build instructions from the Apache page here.
I have browsed the internet to find out if somebody else has been struggling with the same problem as me but found nothing. I know the project is alive because there were some commits last week.
When I am building apr-util
the compiler throws plenty of errors like below:
C:\msys64\ucrt64\include\winnt.h(137,1): error C1189: #error: No supported target architecture. [C:\tools\buildtrees\a
pr-util\libaprutil-1.vcxproj]
C:\tools\apr-util-1.6.3\include\apr_buckets.h(29,10): error C1083: Cannot open include file: 'apr_network_io.h': No suc
h file or directory [C:\tools\buildtrees\apr-util\libaprutil-1.vcxproj]
C:\msys64\ucrt64\include\stdlib.h(389,32): error C2085: '_exit': not in formal parameter list [C:\tools\buildtrees\apr-
util\libaprutil-1.vcxproj]
C:\msys64\ucrt64\include\stdlib.h(389,49): error C2143: syntax error: missing ';' before 'type' [C:\tools\buildtrees\ap
r-util\libaprutil-1.vcxproj]
C:\msys64\ucrt64\include\stdlib.h(391,32): error C2085: 'quick_exit': not in formal parameter list [C:\tools\buildtrees
\apr-util\libaprutil-1.vcxproj]
apr_buckets_eos.c
C:\msys64\ucrt64\include\stdlib.h(391,54): error C2143: syntax error: missing ';' before 'type' [C:\tools\buildtrees\ap
r-util\libaprutil-1.vcxproj]
C:\msys64\ucrt64\include\stdlib.h(396,16): error C2085: '_Exit': not in formal parameter list [C:\tools\buildtrees\apr-
util\libaprutil-1.vcxproj]
I even started to analyse their building scripts but I don't understand most of it so it is impossible to come to some conclusion in such a short time that I have. I am using the following versions of the two dependencies:
I have browsed internet to find out if somebody else did face the same problem
I have been changing build scripts to experiment with the build logic but they are very difficult to understand.
I have send a message to log4cxx group [email protected]
but have not heard from them so far.
Upvotes: 1
Views: 64