[
https://issues.apache.org/jira/browse/LOGCXX-519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17285551#comment-17285551
]
Robert Middleton commented on LOGCXX-519:
-----------------------------------------
Some of the information in the INSTALL file is out of date as you have
discovered.
The current way to build log4cxx is to use CMake. Modern versions of Visual
Studio support CMake projects directly. The information for the 0.11.0 release
can be found under
[src/site/apt/building/cmake.apt|https://github.com/apache/logging-log4cxx/blob/v0.11.0/src/site/apt/building/cmake.apt],
or you can see the latest docs at
[src/site/markdown/building/cmake.md|https://github.com/apache/logging-log4cxx/blob/master/src/site/markdown/development/build-cmake.md]
which may have more information.
The easiest way to build log4cxx on Windows is to use vcpkg; directions are at
[src/site/apt/building/vcpkg.apt|https://github.com/apache/logging-log4cxx/blob/v0.11.0/src/site/apt/building/vcpkg.apt]
for version 0.11.0.
Issue LOGCXX-510 has some more information on how to build with Visual Studio.
> Version11 - "INSTALL.TXT" and "vstudio.apt" miss explenation for generating
> the log4cxx.dll
> -------------------------------------------------------------------------------------------
>
> Key: LOGCXX-519
> URL: https://issues.apache.org/jira/browse/LOGCXX-519
> Project: Log4cxx
> Issue Type: Bug
> Components: Build, Documentation
> Affects Versions: 0.11.0
> Environment: IDE: Microsoft Visual Studio Professional 2019 Version
> 16.8.4
> C++ Language Standard: Default (ISO C++14 Standard)
> Reporter: Brayan Khosravian
> Priority: Blocker
> Attachments: image-2021-02-16-14-40-30-658.png
>
>
> Hello!
> *Introduktion:*
> After downloading the
> [apache-log4cxx-0.11.0.zip|https://downloads.apache.org/logging/log4cxx/0.11.0/apache-log4cxx-0.11.0.zip]
> I realized that the files "INSTALL.txt" and "vsstudio.apt" do not guide
> users to build the "log4cxx.dll" using Visual Studio.
> *Tooling:*
> IDE: Microsoft Visual Studio Professional 2019 Version 16.8.4
> C++ Language Standard: Default (ISO C++14 Standard)
> *Explaining the Issue:*
> The "INSTALL.txt" which is located in the root directory redirects me to the
> file "src/site/apt/building/vstudio.apt".
> *1.)* In the chapter +"*Preparation"+ the components
> "apr-1.2.11-win32-src.zip" and "apr-util-1.2.10-win32-src.zip" are mentioned.
> There are already newer versions available. What are the newer versions used
> for or is the "vstudio.apt" just outdated?
> *2.)* We should execute the "configure-aprutil.bat" after the "configure.bat"
> but there is no "configure-aprutil.bat" in the folder.
> *3.)* In the chapter "*Building log4cxx.dll" we should open
> "projects/log4cxx.dsw" with Visual Studio. The issue is, that there is not
> "projects" folder in this
> [apache-log4cxx-0.11.0.zip|https://downloads.apache.org/logging/log4cxx/0.11.0/apache-log4cxx-0.11.0.zip]
> .
> *4.)* However, I picked the "projects" folder from Version 10 and tried to
> open the "projects/log4cxx.dsw" but as a result the "xml" project can not be
> loaded.
> !image-2021-02-16-14-40-30-658.png!
>
> Creating a dll of this library should be more user friendly and straight
> forward.
> I hope my feedback helps to improve the library, its usability and
> documentation.
> Sincerely
> Brayan
--
This message was sent by Atlassian Jira
(v8.3.4#803005)