Re: [QGIS-Developer] How to setup Visual Studio 2019 environment for QGIS C++ development?

2020-08-05 Thread Jonas
i managed to create a working dev environment including debugging in
QtCreator with the OSGEO4W libraries. It was quite a hassle to set up though
- but thats maybe because i am totally new to C++/CMake building. Probably
not the OneClick(TM) solution the OP craves for. 

That being said i tried the "open CMake in VS 2017 combined with OSGEO4W
libraries"-solution which still does not really work for me (strange
permission denied and file not found errors).



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] How to setup Visual Studio 2019 environment for QGIS C++ development?

2020-08-05 Thread Ismail Sunni
Yes, it's possible to run QGIS using WSL2. I have it running in my Windows.

My colleague, Rizky, writes a note about it here
https://github.com/lucernae/wsl2-qgis

Perhaps, it also possible to develop QGIS by using WSL2 on Windows

Best regards.

On Wed, Aug 5, 2020 at 9:42 AM BELGACEM NEDJIMA  wrote:

> I actually looked into WSL and WSL2 but its intended use is command line
> executables which is not the case for QGIS. I read somewhere that you can
> run GUI apps from WSL by using a third party X server (you can think of it
> as a remote display application) but it's kinda inefficient and I think it
> will require more work than what you'll need if you just switch to linux.
>
> If after trying you didn't get anything working on Windows and ended up
> having to switch to linux. I recommend KDE environment (I'm using Kubuntu).
> I was using windows for everything until 3 months ago and KDE UI made the
> transition much easier for me.
>
> Best wishes,
>
>
> On Wed, Aug 5, 2020, 8:20 AM Charles Dixon-Paver 
> wrote:
>
>> If you are wanting to use Linux functionality directly within Windows 10,
>> Microsoft has introduced Windows Subsystem for Linux. If you're having
>> trouble with Visual Studio but want to stick with Windows it's perhaps a
>> feasible solution.
>>
>> https://docs.microsoft.com/en-us/windows/wsl/about
>>
>> Regards
>>
>> On Wed, 5 Aug 2020 at 01:50, BELGACEM NEDJIMA  wrote:
>>
>>> Hi,
>>> Here is some explanation about making .sln files for QGIS project.
>>> QGIS uses CMake to generate the .sln file. Ideally in a simple CMake
>>> project you run CMake where the CMakeFiles.txt is located (usually at the
>>> root of the source tree) and provide paths to the external libraries you
>>> use the you generate .sln files and build the project normally but since
>>> QGIS uses a lots of libraries some of them don't support Visual Studio well
>>> and you end up having some really complicated error messages.
>>> About 3 months ago I tried to use visual studio 2019 and changed
>>> somethings in the build script. I managed to generate solution files but
>>> QGIS couldn't compile. I ended up having to switch to linux.
>>> I hope you find a solution soon.
>>>
>>>
>>> On Tue, Aug 4, 2020, 10:48 PM  wrote:
>>>
>>>> Hi Ismail and thank you for your link to the pull request.
>>>> Currently that PR has not been accepted, because of some checks not
>>>> being successful.
>>>>
>>>> I do not really know exactly what that pull request is trying to do
>>>> (but as many as 42 files seem to be involved in the PR) but as far as I can
>>>> see it does not include a ".sln" file (Visual Studio solution file) nor any
>>>> ".vcxproj" files (Visual C++ project files) nor a file "packages.config"
>>>> (for NuGet managed libraries).
>>>>
>>>> I think I read somewhere here in the QGIS developer list archive that
>>>> someone estimated that 90% percent of the QGIS developers are using Linux.
>>>> If that is true then I believe the reason might be that Windows
>>>> developers (which are used to NuGet and Visual Studio solutions files and
>>>> project files) may choose to give up when they feel it seems difficult to
>>>> even get started with the development environment for QGIS with Windows.
>>>>
>>>> Can anyone answer this question:
>>>> Would it, for some reason, be impossible to provide a Visual Studio
>>>> solution file (and .vcxproj files) that can simply be opened, and then the
>>>> required dependencies would be retrieved automatically with NuGet
>>>> (according to NuGet references in the ".vcxproj" files or
>>>> "packages.config") ?
>>>> One obvious reason could be that there may be some required libraries
>>>> which are not available through NuGet but those kind of files therefore
>>>> really will need a manual installation.
>>>> But I mean is it possible to provide easy instructions with only very
>>>> FEW manual installations for Windows, and then the majority of the
>>>> dependencies would be retrieved through NuGet when you open a Visual Studio
>>>> solution file which hopefully would be available from the github 
>>>> repository?
>>>>
>>>> The only kind of libraries I myself have used with NuGet is .NET
>>>> libraries but as far as I understand, NuGet can also be used for native C++
>>>> lib

Re: [QGIS-Developer] How to setup Visual Studio 2019 environment for QGIS C++ development?

2020-08-05 Thread BELGACEM NEDJIMA
I actually looked into WSL and WSL2 but its intended use is command line
executables which is not the case for QGIS. I read somewhere that you can
run GUI apps from WSL by using a third party X server (you can think of it
as a remote display application) but it's kinda inefficient and I think it
will require more work than what you'll need if you just switch to linux.

If after trying you didn't get anything working on Windows and ended up
having to switch to linux. I recommend KDE environment (I'm using Kubuntu).
I was using windows for everything until 3 months ago and KDE UI made the
transition much easier for me.

Best wishes,


On Wed, Aug 5, 2020, 8:20 AM Charles Dixon-Paver 
wrote:

> If you are wanting to use Linux functionality directly within Windows 10,
> Microsoft has introduced Windows Subsystem for Linux. If you're having
> trouble with Visual Studio but want to stick with Windows it's perhaps a
> feasible solution.
>
> https://docs.microsoft.com/en-us/windows/wsl/about
>
> Regards
>
> On Wed, 5 Aug 2020 at 01:50, BELGACEM NEDJIMA  wrote:
>
>> Hi,
>> Here is some explanation about making .sln files for QGIS project.
>> QGIS uses CMake to generate the .sln file. Ideally in a simple CMake
>> project you run CMake where the CMakeFiles.txt is located (usually at the
>> root of the source tree) and provide paths to the external libraries you
>> use the you generate .sln files and build the project normally but since
>> QGIS uses a lots of libraries some of them don't support Visual Studio well
>> and you end up having some really complicated error messages.
>> About 3 months ago I tried to use visual studio 2019 and changed
>> somethings in the build script. I managed to generate solution files but
>> QGIS couldn't compile. I ended up having to switch to linux.
>> I hope you find a solution soon.
>>
>>
>> On Tue, Aug 4, 2020, 10:48 PM  wrote:
>>
>>> Hi Ismail and thank you for your link to the pull request.
>>> Currently that PR has not been accepted, because of some checks not
>>> being successful.
>>>
>>> I do not really know exactly what that pull request is trying to do (but
>>> as many as 42 files seem to be involved in the PR) but as far as I can see
>>> it does not include a ".sln" file (Visual Studio solution file) nor any
>>> ".vcxproj" files (Visual C++ project files) nor a file "packages.config"
>>> (for NuGet managed libraries).
>>>
>>> I think I read somewhere here in the QGIS developer list archive that
>>> someone estimated that 90% percent of the QGIS developers are using Linux.
>>> If that is true then I believe the reason might be that Windows
>>> developers (which are used to NuGet and Visual Studio solutions files and
>>> project files) may choose to give up when they feel it seems difficult to
>>> even get started with the development environment for QGIS with Windows.
>>>
>>> Can anyone answer this question:
>>> Would it, for some reason, be impossible to provide a Visual Studio
>>> solution file (and .vcxproj files) that can simply be opened, and then the
>>> required dependencies would be retrieved automatically with NuGet
>>> (according to NuGet references in the ".vcxproj" files or
>>> "packages.config") ?
>>> One obvious reason could be that there may be some required libraries
>>> which are not available through NuGet but those kind of files therefore
>>> really will need a manual installation.
>>> But I mean is it possible to provide easy instructions with only very
>>> FEW manual installations for Windows, and then the majority of the
>>> dependencies would be retrieved through NuGet when you open a Visual Studio
>>> solution file which hopefully would be available from the github repository?
>>>
>>> The only kind of libraries I myself have used with NuGet is .NET
>>> libraries but as far as I understand, NuGet can also be used for native C++
>>> libraries:
>>> https://devblogs.microsoft.com/nuget/native-support/
>>>
>>> I believe that the QGIS project would get more contributors if you can
>>> provide a development environment that are EASY to GET STARTED WITH for
>>> potential newcomers using Windows Visual Studio.
>>>
>>>   -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
>>>
>>>
>>> Sent: Tuesday, August 04, 2020 at 12:22 AM
>>> From: "Ismail Sunni" 
>>> To: tom...@gmx.com
>>> Cc: "QGIS Developer List" 
>>> Subject: Re: [QGIS-Developer] H

Re: [QGIS-Developer] How to setup Visual Studio 2019 environment for QGIS C++ development?

2020-08-05 Thread Charles Dixon-Paver
If you are wanting to use Linux functionality directly within Windows 10,
Microsoft has introduced Windows Subsystem for Linux. If you're having
trouble with Visual Studio but want to stick with Windows it's perhaps a
feasible solution.

https://docs.microsoft.com/en-us/windows/wsl/about

Regards

On Wed, 5 Aug 2020 at 01:50, BELGACEM NEDJIMA  wrote:

> Hi,
> Here is some explanation about making .sln files for QGIS project.
> QGIS uses CMake to generate the .sln file. Ideally in a simple CMake
> project you run CMake where the CMakeFiles.txt is located (usually at the
> root of the source tree) and provide paths to the external libraries you
> use the you generate .sln files and build the project normally but since
> QGIS uses a lots of libraries some of them don't support Visual Studio well
> and you end up having some really complicated error messages.
> About 3 months ago I tried to use visual studio 2019 and changed
> somethings in the build script. I managed to generate solution files but
> QGIS couldn't compile. I ended up having to switch to linux.
> I hope you find a solution soon.
>
>
> On Tue, Aug 4, 2020, 10:48 PM  wrote:
>
>> Hi Ismail and thank you for your link to the pull request.
>> Currently that PR has not been accepted, because of some checks not being
>> successful.
>>
>> I do not really know exactly what that pull request is trying to do (but
>> as many as 42 files seem to be involved in the PR) but as far as I can see
>> it does not include a ".sln" file (Visual Studio solution file) nor any
>> ".vcxproj" files (Visual C++ project files) nor a file "packages.config"
>> (for NuGet managed libraries).
>>
>> I think I read somewhere here in the QGIS developer list archive that
>> someone estimated that 90% percent of the QGIS developers are using Linux.
>> If that is true then I believe the reason might be that Windows
>> developers (which are used to NuGet and Visual Studio solutions files and
>> project files) may choose to give up when they feel it seems difficult to
>> even get started with the development environment for QGIS with Windows.
>>
>> Can anyone answer this question:
>> Would it, for some reason, be impossible to provide a Visual Studio
>> solution file (and .vcxproj files) that can simply be opened, and then the
>> required dependencies would be retrieved automatically with NuGet
>> (according to NuGet references in the ".vcxproj" files or
>> "packages.config") ?
>> One obvious reason could be that there may be some required libraries
>> which are not available through NuGet but those kind of files therefore
>> really will need a manual installation.
>> But I mean is it possible to provide easy instructions with only very FEW
>> manual installations for Windows, and then the majority of the dependencies
>> would be retrieved through NuGet when you open a Visual Studio solution
>> file which hopefully would be available from the github repository?
>>
>> The only kind of libraries I myself have used with NuGet is .NET
>> libraries but as far as I understand, NuGet can also be used for native C++
>> libraries:
>> https://devblogs.microsoft.com/nuget/native-support/
>>
>> I believe that the QGIS project would get more contributors if you can
>> provide a development environment that are EASY to GET STARTED WITH for
>> potential newcomers using Windows Visual Studio.
>>
>>   -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
>>
>>
>> Sent: Tuesday, August 04, 2020 at 12:22 AM
>> From: "Ismail Sunni" 
>> To: tom...@gmx.com
>> Cc: "QGIS Developer List" 
>> Subject: Re: [QGIS-Developer] How to setup Visual Studio 2019 environment
>> for QGIS C++ development?
>>
>> Hi Tomjan,
>>
>> Perhaps you want to see this PR https://github.com/qgis/QGIS/pull/38102
>> for your question.
>>  Best regards
>>
>>
>> On Mon, Aug 3, 2020, 23:44 mailto:tom...@gmx.com]> wrote:
>>
>> I would be interested in learning to contribute to QGIS.
>> My previous C++ experience is that about 20 years ago I did some (for a
>> couple of years) Visual C++ programming with Microsoft's MFC as the GUI.
>> Now I think I could refresh my C++ skills and also learn QT which I have
>> never programmed with so far.
>>
>> However, I am not a Linux user, but always have been using Windows
>> (currently Windows 10).
>> It seems to be a complicated obstacle to get started running QGIS through
>> Visual Studio 2019.
>>
>> I think it would be great with a tutorial (webpage or you

Re: [QGIS-Developer] How to setup Visual Studio 2019 environment for QGIS C++ development?

2020-08-04 Thread BELGACEM NEDJIMA
Hi,
Here is some explanation about making .sln files for QGIS project.
QGIS uses CMake to generate the .sln file. Ideally in a simple CMake
project you run CMake where the CMakeFiles.txt is located (usually at the
root of the source tree) and provide paths to the external libraries you
use the you generate .sln files and build the project normally but since
QGIS uses a lots of libraries some of them don't support Visual Studio well
and you end up having some really complicated error messages.
About 3 months ago I tried to use visual studio 2019 and changed somethings
in the build script. I managed to generate solution files but QGIS couldn't
compile. I ended up having to switch to linux.
I hope you find a solution soon.


On Tue, Aug 4, 2020, 10:48 PM  wrote:

> Hi Ismail and thank you for your link to the pull request.
> Currently that PR has not been accepted, because of some checks not being
> successful.
>
> I do not really know exactly what that pull request is trying to do (but
> as many as 42 files seem to be involved in the PR) but as far as I can see
> it does not include a ".sln" file (Visual Studio solution file) nor any
> ".vcxproj" files (Visual C++ project files) nor a file "packages.config"
> (for NuGet managed libraries).
>
> I think I read somewhere here in the QGIS developer list archive that
> someone estimated that 90% percent of the QGIS developers are using Linux.
> If that is true then I believe the reason might be that Windows developers
> (which are used to NuGet and Visual Studio solutions files and project
> files) may choose to give up when they feel it seems difficult to even get
> started with the development environment for QGIS with Windows.
>
> Can anyone answer this question:
> Would it, for some reason, be impossible to provide a Visual Studio
> solution file (and .vcxproj files) that can simply be opened, and then the
> required dependencies would be retrieved automatically with NuGet
> (according to NuGet references in the ".vcxproj" files or
> "packages.config") ?
> One obvious reason could be that there may be some required libraries
> which are not available through NuGet but those kind of files therefore
> really will need a manual installation.
> But I mean is it possible to provide easy instructions with only very FEW
> manual installations for Windows, and then the majority of the dependencies
> would be retrieved through NuGet when you open a Visual Studio solution
> file which hopefully would be available from the github repository?
>
> The only kind of libraries I myself have used with NuGet is .NET libraries
> but as far as I understand, NuGet can also be used for native C++ libraries:
> https://devblogs.microsoft.com/nuget/native-support/
>
> I believe that the QGIS project would get more contributors if you can
> provide a development environment that are EASY to GET STARTED WITH for
> potential newcomers using Windows Visual Studio.
>
>   -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
>
>
> Sent: Tuesday, August 04, 2020 at 12:22 AM
> From: "Ismail Sunni" 
> To: tom...@gmx.com
> Cc: "QGIS Developer List" 
> Subject: Re: [QGIS-Developer] How to setup Visual Studio 2019 environment
> for QGIS C++ development?
>
> Hi Tomjan,
>
> Perhaps you want to see this PR https://github.com/qgis/QGIS/pull/38102
> for your question.
>  Best regards
>
>
> On Mon, Aug 3, 2020, 23:44 mailto:tom...@gmx.com]> wrote:
>
> I would be interested in learning to contribute to QGIS.
> My previous C++ experience is that about 20 years ago I did some (for a
> couple of years) Visual C++ programming with Microsoft's MFC as the GUI.
> Now I think I could refresh my C++ skills and also learn QT which I have
> never programmed with so far.
>
> However, I am not a Linux user, but always have been using Windows
> (currently Windows 10).
> It seems to be a complicated obstacle to get started running QGIS through
> Visual Studio 2019.
>
> I think it would be great with a tutorial (webpage or youtube video
> tutorial) about how to get started with an example showing how to do all
> necessary installations/configurations/setup until you can compile and run
> QGIS with a breakpoint in Visual Studio 2019.
>
> I have seen that the "INSTALL" file in the repository refers to Visual
> Studio 2015, but it seems awkward if it really would be necessary to use
> such an ancient version?
> Is nobody of the QGIS developers using Visual Studio 2019?
>  ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org[mailto:QGIS-Developer@lists.osgeo.org]
> List info:
> https://lists.osgeo.org/mailman/listinfo/qgis-developer[http

Re: [QGIS-Developer] How to setup Visual Studio 2019 environment for QGIS C++ development?

2020-08-04 Thread Nyall Dawson
On Wed, 5 Aug 2020 at 08:46,  wrote:
>
> Thank you James, but since your tutorial (last updated 12/03/2019) does not 
> mention anything about VS 2017 or VS 2019, then I guess it is useful only for 
> those who are having VS 2015 installed.
> (which I uninstalled about three years ago when installing VS 2017... but 
> when I later installed VS 2019 I actually kept VS 2017)
> Maybe later when the pull request has been finished, you will maybe update 
> your tutorial for VS 2019.

If you're set on only building with VS 2019, I'm sure Jurgen would
love it if you checked out his draft PR and gave it a test run and
gave feedback on how it worked!

Nyall

>
>  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
>
> > Sent: Wednesday, August 05, 2020 at 12:02 AM
> > From: ja...@shaeffer.co
> > To: tom...@gmx.com, qgis-developer@lists.osgeo.org
> > Subject: RE: [QGIS-Developer] How to setup Visual Studio 2019 environment 
> > for QGIS C++ development?
> >
> > Tomjan,
> >
> > Here is a tutorial I put together on my blog to compile QGIS from source on 
> > Windows, https://www.shaeffer.co/compiling-qgis-on-windows/. It is current 
> > and will generate a .sln file to open in Visual Studio 2015.
> >
> > The work that Jürgen is putting in 
> > (https://github.com/qgis/QGIS/pull/38102/) will move us "Windows folks" to 
> > VS 2019. There is a lot more to the project than just a simple .sln file 
> > (this coming from my personal endeavors into compiling QGIS on Windows).
> >
> > --
> > James
> >
> > -Original Message-
> > From: QGIS-Developer  On Behalf Of 
> > tom...@gmx.com
> > Sent: Tuesday, August 4, 2020 2:43 PM
> > To: qgis-developer@lists.osgeo.org
> > Subject: Re: [QGIS-Developer] How to setup Visual Studio 2019 environment 
> > for QGIS C++ development?
> >
> > Hi Ismail and thank you for your link to the pull request.
> > Currently that PR has not been accepted, because of some checks not being 
> > successful.
> >
> > I do not really know exactly what that pull request is trying to do (but as 
> > many as 42 files seem to be involved in the PR) but as far as I can see it 
> > does not include a ".sln" file (Visual Studio solution file) nor any 
> > ".vcxproj" files (Visual C++ project files) nor a file "packages.config" 
> > (for NuGet managed libraries).
> >
> > I think I read somewhere here in the QGIS developer list archive that 
> > someone estimated that 90% percent of the QGIS developers are using Linux.
> > If that is true then I believe the reason might be that Windows developers 
> > (which are used to NuGet and Visual Studio solutions files and project 
> > files) may choose to give up when they feel it seems difficult to even get 
> > started with the development environment for QGIS with Windows.
> >
> > Can anyone answer this question:
> > Would it, for some reason, be impossible to provide a Visual Studio 
> > solution file (and .vcxproj files) that can simply be opened, and then the 
> > required dependencies would be retrieved automatically with NuGet 
> > (according to NuGet references in the ".vcxproj" files or 
> > "packages.config") ?
> > One obvious reason could be that there may be some required libraries which 
> > are not available through NuGet but those kind of files therefore really 
> > will need a manual installation.
> > But I mean is it possible to provide easy instructions with only very FEW 
> > manual installations for Windows, and then the majority of the dependencies 
> > would be retrieved through NuGet when you open a Visual Studio solution 
> > file which hopefully would be available from the github repository?
> >
> > The only kind of libraries I myself have used with NuGet is .NET libraries 
> > but as far as I understand, NuGet can also be used for native C++ libraries:
> > https://devblogs.microsoft.com/nuget/native-support/
> >
> > I believe that the QGIS project would get more contributors if you can 
> > provide a development environment that are EASY to GET STARTED WITH for 
> > potential newcomers using Windows Visual Studio.
> >
> >   -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
> >
> >
> > Sent: Tuesday, August 04, 2020 at 12:22 AM
> > From: "Ismail Sunni" 
> > To: tom...@gmx.com
> > Cc: "QGIS Developer List" 
> > Subject: Re: [QGIS-Developer] How to setup Visual Studio 2019 environment 
> > for QGIS C++ development?
> >
> > Hi Tomjan,
> >
> > Perhaps you 

Re: [QGIS-Developer] How to setup Visual Studio 2019 environment for QGIS C++ development?

2020-08-04 Thread tomjan
Thank you James, but since your tutorial (last updated 12/03/2019) does not 
mention anything about VS 2017 or VS 2019, then I guess it is useful only for 
those who are having VS 2015 installed.
(which I uninstalled about three years ago when installing VS 2017... but when 
I later installed VS 2019 I actually kept VS 2017)
Maybe later when the pull request has been finished, you will maybe update your 
tutorial for VS 2019.

 -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  

> Sent: Wednesday, August 05, 2020 at 12:02 AM
> From: ja...@shaeffer.co
> To: tom...@gmx.com, qgis-developer@lists.osgeo.org
> Subject: RE: [QGIS-Developer] How to setup Visual Studio 2019 environment for 
> QGIS C++ development?
>
> Tomjan,
> 
> Here is a tutorial I put together on my blog to compile QGIS from source on 
> Windows, https://www.shaeffer.co/compiling-qgis-on-windows/. It is current 
> and will generate a .sln file to open in Visual Studio 2015.
> 
> The work that Jürgen is putting in (https://github.com/qgis/QGIS/pull/38102/) 
> will move us "Windows folks" to VS 2019. There is a lot more to the project 
> than just a simple .sln file (this coming from my personal endeavors into 
> compiling QGIS on Windows).
> 
> --
> James
> 
> -Original Message-
> From: QGIS-Developer  On Behalf Of 
> tom...@gmx.com
> Sent: Tuesday, August 4, 2020 2:43 PM
> To: qgis-developer@lists.osgeo.org
> Subject: Re: [QGIS-Developer] How to setup Visual Studio 2019 environment for 
> QGIS C++ development?
> 
> Hi Ismail and thank you for your link to the pull request.
> Currently that PR has not been accepted, because of some checks not being 
> successful.
> 
> I do not really know exactly what that pull request is trying to do (but as 
> many as 42 files seem to be involved in the PR) but as far as I can see it 
> does not include a ".sln" file (Visual Studio solution file) nor any 
> ".vcxproj" files (Visual C++ project files) nor a file "packages.config" (for 
> NuGet managed libraries).
> 
> I think I read somewhere here in the QGIS developer list archive that someone 
> estimated that 90% percent of the QGIS developers are using Linux.
> If that is true then I believe the reason might be that Windows developers 
> (which are used to NuGet and Visual Studio solutions files and project files) 
> may choose to give up when they feel it seems difficult to even get started 
> with the development environment for QGIS with Windows.
> 
> Can anyone answer this question:
> Would it, for some reason, be impossible to provide a Visual Studio solution 
> file (and .vcxproj files) that can simply be opened, and then the required 
> dependencies would be retrieved automatically with NuGet (according to NuGet 
> references in the ".vcxproj" files or "packages.config") ?
> One obvious reason could be that there may be some required libraries which 
> are not available through NuGet but those kind of files therefore really will 
> need a manual installation.
> But I mean is it possible to provide easy instructions with only very FEW 
> manual installations for Windows, and then the majority of the dependencies 
> would be retrieved through NuGet when you open a Visual Studio solution file 
> which hopefully would be available from the github repository?
> 
> The only kind of libraries I myself have used with NuGet is .NET libraries 
> but as far as I understand, NuGet can also be used for native C++ libraries:
> https://devblogs.microsoft.com/nuget/native-support/
> 
> I believe that the QGIS project would get more contributors if you can 
> provide a development environment that are EASY to GET STARTED WITH for 
> potential newcomers using Windows Visual Studio.
>  
>   -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  
>  
> 
> Sent: Tuesday, August 04, 2020 at 12:22 AM
> From: "Ismail Sunni" 
> To: tom...@gmx.com
> Cc: "QGIS Developer List" 
> Subject: Re: [QGIS-Developer] How to setup Visual Studio 2019 environment for 
> QGIS C++ development?
> 
> Hi Tomjan,
>  
> Perhaps you want to see this PR https://github.com/qgis/QGIS/pull/38102 for 
> your question.
>  Best regards
>  
> 
> On Mon, Aug 3, 2020, 23:44 mailto:tom...@gmx.com]> wrote:
> 
> I would be interested in learning to contribute to QGIS.
> My previous C++ experience is that about 20 years ago I did some (for a 
> couple of years) Visual C++ programming with Microsoft's MFC as the GUI.
> Now I think I could refresh my C++ skills and also learn QT which I have 
> never programmed with so far.
>  
> However, I am not a Linux user, but always have been using Windows (currently 
> Windows 10).
> It seems to be a

Re: [QGIS-Developer] How to setup Visual Studio 2019 environment for QGIS C++ development?

2020-08-04 Thread james
Tomjan,

Here is a tutorial I put together on my blog to compile QGIS from source on 
Windows, https://www.shaeffer.co/compiling-qgis-on-windows/. It is current and 
will generate a .sln file to open in Visual Studio 2015.

The work that Jürgen is putting in (https://github.com/qgis/QGIS/pull/38102/) 
will move us "Windows folks" to VS 2019. There is a lot more to the project 
than just a simple .sln file (this coming from my personal endeavors into 
compiling QGIS on Windows).

--
James

-Original Message-
From: QGIS-Developer  On Behalf Of 
tom...@gmx.com
Sent: Tuesday, August 4, 2020 2:43 PM
To: qgis-developer@lists.osgeo.org
Subject: Re: [QGIS-Developer] How to setup Visual Studio 2019 environment for 
QGIS C++ development?

Hi Ismail and thank you for your link to the pull request.
Currently that PR has not been accepted, because of some checks not being 
successful.

I do not really know exactly what that pull request is trying to do (but as 
many as 42 files seem to be involved in the PR) but as far as I can see it does 
not include a ".sln" file (Visual Studio solution file) nor any ".vcxproj" 
files (Visual C++ project files) nor a file "packages.config" (for NuGet 
managed libraries).

I think I read somewhere here in the QGIS developer list archive that someone 
estimated that 90% percent of the QGIS developers are using Linux.
If that is true then I believe the reason might be that Windows developers 
(which are used to NuGet and Visual Studio solutions files and project files) 
may choose to give up when they feel it seems difficult to even get started 
with the development environment for QGIS with Windows.

Can anyone answer this question:
Would it, for some reason, be impossible to provide a Visual Studio solution 
file (and .vcxproj files) that can simply be opened, and then the required 
dependencies would be retrieved automatically with NuGet (according to NuGet 
references in the ".vcxproj" files or "packages.config") ?
One obvious reason could be that there may be some required libraries which are 
not available through NuGet but those kind of files therefore really will need 
a manual installation.
But I mean is it possible to provide easy instructions with only very FEW 
manual installations for Windows, and then the majority of the dependencies 
would be retrieved through NuGet when you open a Visual Studio solution file 
which hopefully would be available from the github repository?

The only kind of libraries I myself have used with NuGet is .NET libraries but 
as far as I understand, NuGet can also be used for native C++ libraries:
https://devblogs.microsoft.com/nuget/native-support/

I believe that the QGIS project would get more contributors if you can provide 
a development environment that are EASY to GET STARTED WITH for potential 
newcomers using Windows Visual Studio.
 
  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  
 

Sent: Tuesday, August 04, 2020 at 12:22 AM
From: "Ismail Sunni" 
To: tom...@gmx.com
Cc: "QGIS Developer List" 
Subject: Re: [QGIS-Developer] How to setup Visual Studio 2019 environment for 
QGIS C++ development?

Hi Tomjan,
 
Perhaps you want to see this PR https://github.com/qgis/QGIS/pull/38102 for 
your question.
 Best regards
 

On Mon, Aug 3, 2020, 23:44 mailto:tom...@gmx.com]> wrote:

I would be interested in learning to contribute to QGIS.
My previous C++ experience is that about 20 years ago I did some (for a couple 
of years) Visual C++ programming with Microsoft's MFC as the GUI.
Now I think I could refresh my C++ skills and also learn QT which I have never 
programmed with so far.
 
However, I am not a Linux user, but always have been using Windows (currently 
Windows 10).
It seems to be a complicated obstacle to get started running QGIS through 
Visual Studio 2019.
 
I think it would be great with a tutorial (webpage or youtube video tutorial) 
about how to get started with an example showing how to do all necessary 
installations/configurations/setup until you can compile and run QGIS with a 
breakpoint in Visual Studio 2019.
 
I have seen that the "INSTALL" file in the repository refers to Visual Studio 
2015, but it seems awkward if it really would be necessary to use such an 
ancient version?
Is nobody of the QGIS developers using Visual Studio 2019?
 ___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org[mailto:QGIS-Developer@lists.osgeo.org]
List info: 
https://lists.osgeo.org/mailman/listinfo/qgis-developer[https://lists.osgeo.org/mailman/listinfo/qgis-developer]
Unsubscribe: 
https://lists.osgeo.org/mailman/listinfo/qgis-developer[https://lists.osgeo.org/mailman/listinfo/qgis-developer]
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman

Re: [QGIS-Developer] How to setup Visual Studio 2019 environment for QGIS C++ development?

2020-08-04 Thread tomjan
Hi Ismail and thank you for your link to the pull request.
Currently that PR has not been accepted, because of some checks not being 
successful.

I do not really know exactly what that pull request is trying to do (but as 
many as 42 files seem to be involved in the PR) but as far as I can see it does 
not include a ".sln" file (Visual Studio solution file) nor any ".vcxproj" 
files (Visual C++ project files) nor a file "packages.config" (for NuGet 
managed libraries).

I think I read somewhere here in the QGIS developer list archive that someone 
estimated that 90% percent of the QGIS developers are using Linux.
If that is true then I believe the reason might be that Windows developers 
(which are used to NuGet and Visual Studio solutions files and project files) 
may choose to give up when they feel it seems difficult to even get started 
with the development environment for QGIS with Windows.

Can anyone answer this question:
Would it, for some reason, be impossible to provide a Visual Studio solution 
file (and .vcxproj files) that can simply be opened, and then the required 
dependencies would be retrieved automatically with NuGet (according to NuGet 
references in the ".vcxproj" files or "packages.config") ?
One obvious reason could be that there may be some required libraries which are 
not available through NuGet but those kind of files therefore really will need 
a manual installation.
But I mean is it possible to provide easy instructions with only very FEW 
manual installations for Windows, and then the majority of the dependencies 
would be retrieved through NuGet when you open a Visual Studio solution file 
which hopefully would be available from the github repository?

The only kind of libraries I myself have used with NuGet is .NET libraries but 
as far as I understand, NuGet can also be used for native C++ libraries:
https://devblogs.microsoft.com/nuget/native-support/

I believe that the QGIS project would get more contributors if you can provide 
a development environment that are EASY to GET STARTED WITH for potential 
newcomers using Windows Visual Studio.
 
  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  
 

Sent: Tuesday, August 04, 2020 at 12:22 AM
From: "Ismail Sunni" 
To: tom...@gmx.com
Cc: "QGIS Developer List" 
Subject: Re: [QGIS-Developer] How to setup Visual Studio 2019 environment for 
QGIS C++ development?

Hi Tomjan,
 
Perhaps you want to see this PR https://github.com/qgis/QGIS/pull/38102 for 
your question.
 Best regards
 

On Mon, Aug 3, 2020, 23:44 mailto:tom...@gmx.com]> wrote:

I would be interested in learning to contribute to QGIS.
My previous C++ experience is that about 20 years ago I did some (for a couple 
of years) Visual C++ programming with Microsoft's MFC as the GUI.
Now I think I could refresh my C++ skills and also learn QT which I have never 
programmed with so far.
 
However, I am not a Linux user, but always have been using Windows (currently 
Windows 10).
It seems to be a complicated obstacle to get started running QGIS through 
Visual Studio 2019.
 
I think it would be great with a tutorial (webpage or youtube video tutorial) 
about how to get started with an example showing how to do all necessary 
installations/configurations/setup until you can compile and run QGIS with a 
breakpoint in Visual Studio 2019.
 
I have seen that the "INSTALL" file in the repository refers to Visual Studio 
2015, but it seems awkward if it really would be necessary to use such an 
ancient version?
Is nobody of the QGIS developers using Visual Studio 2019?
 ___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org[mailto:QGIS-Developer@lists.osgeo.org]
List info: 
https://lists.osgeo.org/mailman/listinfo/qgis-developer[https://lists.osgeo.org/mailman/listinfo/qgis-developer]
Unsubscribe: 
https://lists.osgeo.org/mailman/listinfo/qgis-developer[https://lists.osgeo.org/mailman/listinfo/qgis-developer]
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] How to setup Visual Studio 2019 environment for QGIS C++ development?

2020-08-03 Thread Ismail Sunni
Hi Tomjan,

Perhaps you want to see this PR https://github.com/qgis/QGIS/pull/38102 for
your question.

Best regards

On Mon, Aug 3, 2020, 23:44  wrote:

> I would be interested in learning to contribute to QGIS.
> My previous C++ experience is that about 20 years ago I did some (for a
> couple of years) Visual C++ programming with Microsoft's MFC as the GUI.
> Now I think I could refresh my C++ skills and also learn QT which I have
> never programmed with so far.
>
> However, I am not a Linux user, but always have been using Windows
> (currently Windows 10).
> It seems to be a complicated obstacle to get started running QGIS through
> Visual Studio 2019.
>
> I think it would be great with a tutorial (webpage or youtube video
> tutorial) about how to get started with an example showing how to do all
> necessary installations/configurations/setup until you can compile and run
> QGIS with a breakpoint in Visual Studio 2019.
>
> I have seen that the "INSTALL" file in the repository refers to Visual
> Studio 2015, but it seems awkward if it really would be necessary to use
> such an ancient version?
> Is nobody of the QGIS developers using Visual Studio 2019?
>
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer