Copperspice and VS 2022

Discuss issues related to installing or building
Post Reply
danlugli
Posts: 2
Joined: Wed Oct 23 2024 7:23 pm

Copperspice and VS 2022

Post by danlugli »

Hi all,

I am trying CopperSpice on Windows 11 Pro but I am probably making something wrong.

Here is what I did, step by step, mostly following your instructions (for VS 2019, I know) here: https://www.copperspice.com/docs/cs_overview/build-msvc.html

- Launch my Visual Studio 2022 community edition
- Choose "Clone a repository"
Repository location: https://github.com/copperspice/copperspice.git
Path: C:\copperspice
- Right click on CMakeLists.txt, CMake settings for copperspice
- Add x64-Release configuration
- Save to CMakeSettings.json
- Menu bar: Build|Build all

Build succeeds with 0 errors but:
- one Warning C4244 'argument': conversion from 'qint64' to 'double', possible loss of data
and
- 45694 (!) warnings C4291 similar to this one:
'void *QTJSC::UStringImpl::operator new(size_t,void *)': no matching operator delete found; memory will not be freed if initialization throws an exception

Should I go on, install, and try some example, or there is some incompatibility with VS 2022?

Best regards,

Daniele
barbara
Posts: 475
Joined: Sat Apr 04 2015 2:32 am
Contact:

Re: Copperspice and VS 2022

Post by barbara »

Thanks for reaching out to us. Can you confirm, you were able to build CopperSpice with no errors but you had a few warnings. Is this correct?

It is an on going process to remove warnings. Newer versions of platforms and C++ compilers will flag new warnings. Please continue with the installation and look at our KitchenSink demo program or other examples on the CopperSpice Journal. There are no current incompatibilities with VS 2022.

https://journal.copperspice.com/

Barbara
danlugli
Posts: 2
Joined: Wed Oct 23 2024 7:23 pm

Re: Copperspice and VS 2022

Post by danlugli »

Thank you for your reply. Yes, I confirm you that I was able to build CopperSpice with VS 2022 with no errors but more than a few warnings - some thousands.

I will go on and keep you informed.

Daniele
barbara
Posts: 475
Joined: Sat Apr 04 2015 2:32 am
Contact:

Re: Copperspice and VS 2022

Post by barbara »

I wanted to mention two things just in case this helps you out.

1) We understand there are still warnings on some platforms. MSVC has more than others, some have almost none. Our team spends time resolving these and over time the number has reduced. As newer compilers are released some things which were fine are then marked as a warning.

Any of the warnings in files located in the "3rdParty" directory must be addressed by that vendor.


2) If you do not need to use or test all of the CS libraries you can disable them from your build. For example, if you do not want to build CsXmlPatterns simply pass -DWITH_XMLPATTERNS=NO to CMake.

For more information about the build options please refer to the following page in our CopperSpice Overview documentation.

https://www.copperspice.com/docs/cs_overview/build-options.html
Post Reply