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

Robert Middleton edited comment on LOGCXX-510 at 1/5/21, 1:53 AM:
------------------------------------------------------------------

I'm not sure if it matters at all either, but I went and installed the required 
dependencies through vcpkg, since that was much simpler than building 
everything on its own:
{code:java}
git clone https://github.com/microsoft/vcpkg
cd vcpkg
.\bootstrap-vcpkg.bat
.\vcpkg integrate install
vcpkg install apr apr-util --triplet=x64-windows{code}
At this point, visual studio will pickup vcpkg automatically and use those 
dependencies. 

 

To use those with QtCreator, you need to configure cmake to use the vcpkg 
toolchain file:
{code:java}
Tools->Kits->(select your kit)>CMake Configuration(at bottom)>Change->Add line 
saying something like: 
CMAKE_TOOLCHAIN_FILE=C:/Users/User/vcpkg/scripts/buildsystems/vcpkg.cmake{code}


was (Author: rmiddleton):
I'm not sure if it matters at all either, but I went and installed the required 
dependencies through vcpkg, since that was much simpler than building 
everything on its own:
{code:java}
git clone https://github.com/microsoft/vcpkg
cd vcpkg
.\bootstrap-vcpkg.bat
.\vcpkg integrate install
vcpkg install apr apr-util --triplet=x64-windows{code}
At this point, visual studio will pickup vcpkg automatically and use those 
dependencies. 

 

To use those with QtCreator, you need to configure cmake to use the vcpkg 
toolchain file(tools->Kits->(select your kit)->CMake Configuration(at 
bottom)->Change->Add line saying something like: 
CMAKE_TOOLCHAIN_FILE=C:/Users/User/vcpkg/scripts/buildsystems/vcpkg.cmake

> Build problems using CMAKE and Visual Studio 2019 Community
> -----------------------------------------------------------
>
>                 Key: LOGCXX-510
>                 URL: https://issues.apache.org/jira/browse/LOGCXX-510
>             Project: Log4cxx
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 0.11.0
>            Reporter: Thorsten Schöning
>            Assignee: Thorsten Schöning
>            Priority: Major
>             Fix For: 0.12.0
>
>         Attachments: CMP00079.png, CMakeSettings.json, LOGCXX-510.patch, 
> cmake_settings_using_vs_gui 02.png, cmake_settings_using_vs_gui.zip, 
> missing_log4cxx_rc.png, set_target_properties.png
>
>
> I just tested building log4cxx using CMAKE and Visual Studio 2019 Community. 
> Things failed and I want to use this bug to document everything that I've 
> found, because for some things I'm not sure how to handle them properly. Will 
> create a new branch to maintain the fixes I came along, so that those can at 
> best be later reviewed by others. The branch of interest is currently named 
> "logcxx_510_cmake_vs2019_compat".



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

Reply via email to