MSVC2013 c++11 support
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
MSVC2013 c++11 support
Hi there!
I have been trying to make some code pass the appveyor CI for a while.
At the end I posted on stackoverflow:
https://stackoverflow.com/questions/554 ... h-msvc2013
Basically the answer to my question is that MSVC2013 does not have full c++11 support.
In one other reply, one user asked me why weren't we using gcc or clang in windows. I could not answer the question, and that is the reason of this post.
Why aren't we using gcc or clang in Windows? If we can't or is not appropriate, is there any other newer "free" version of MSVC to which we could move?
I have been trying to make some code pass the appveyor CI for a while.
At the end I posted on stackoverflow:
https://stackoverflow.com/questions/554 ... h-msvc2013
Basically the answer to my question is that MSVC2013 does not have full c++11 support.
In one other reply, one user asked me why weren't we using gcc or clang in windows. I could not answer the question, and that is the reason of this post.
Why aren't we using gcc or clang in Windows? If we can't or is not appropriate, is there any other newer "free" version of MSVC to which we could move?
Re: MSVC2013 c++11 support
The idea of CI is to run and test the builds on as many different systems as possible, since we are already building with gcc and clang on linux (Travis) it makes more sense to build with MSVC on Windows... Moving to a newer MSVC version should be possible https://www.appveyor.com/docs/windows-images-software/
PS: additionally to updating Appveyor to a never MSVC version there is also the need to update Travis linux builds to a never version of Ubuntu (Xenial). Another thing to research is the possibility to move Windows builds from Appveyor to Travis https://blog.travis-ci.com/2018-10-11-w ... ly-release
PS: additionally to updating Appveyor to a never MSVC version there is also the need to update Travis linux builds to a never version of Ubuntu (Xenial). Another thing to research is the possibility to move Windows builds from Appveyor to Travis https://blog.travis-ci.com/2018-10-11-w ... ly-release
Re: MSVC2013 c++11 support
yorik wrote:...ping...
wmayer wrote:...ping...
Ah! I thought there was an important reason for maintaining support for MSVC2013, like providing images for old windows versions (XP?), or that there was no other version available for free...
I am trying to learn proper c++11, so I would be interested in having full support. Is there any other reason not to?
Re: MSVC2013 c++11 support
The reason is we need a LibPack of all the dependencies that is compatible with new complilers. This is possible since yesterday. Thanks apeltauer!
https://forum.freecadweb.org/viewtopic. ... 62#p299048
The new LibPack will work with VS2015, VS2017, and VS2019.
It seems to take a little longer to compile FreeCAD, so it is definitely worth it to try to get Windows working on Travis.
"fight the good fight"
Re: MSVC2013 c++11 support
It's OK to move to the next MSVC version then.I am trying to learn proper c++11, so I would be interested in having full support. Is there any other reason not to?
The most important requirement for me is that the code must compile on all supported (mainly Linux distributions) platforms with the standard compiler.
Re: MSVC2013 c++11 support
Great!
I am not familiar with AppVeyor or Travis. So I do not know what to do. Who can help me out here?
Re: MSVC2013 c++11 support
If you need it for yourself, you can find the direct download for Visual Studio Community 2015 here
https://stackoverflow.com/questions/442 ... 5-not-2017
For Appveyor I am trying to get it to work here
https://github.com/sasobadovinac/FreeCA ... pveyor.yml
https://ci.appveyor.com/project/sasobad ... ad/history
current status cmake does not see the libs fixed
now missing boost libraries
Last edited by saso on Fri Apr 05, 2019 5:58 pm, edited 1 time in total.
Re: MSVC2013 c++11 support
I needed for CI (I do not have Windows). Thanks for trying to set it up!saso wrote: ↑Fri Apr 05, 2019 5:26 pmIf you need it for yourself, you can find the direct download for Visual Studio Community 2015 here
https://stackoverflow.com/questions/442 ... 5-not-2017
For Appveyor I am trying to get it to work here
https://github.com/sasobadovinac/FreeCA ... pveyor.yml
https://ci.appveyor.com/project/sasobad ... ad/history
current status cmake does not see the libs fixed
now missing boost libraries
Re: MSVC2013 c++11 support
I had the same problem locally, it went away when I updated CMake (to 3.14)
You may also need to set the USE_QT5 flag.
EDIT:You also need to use the new libpack from apeltauer
"fight the good fight"
Re: MSVC2013 c++11 support
Does not help
https://ci.appveyor.com/project/sasobad ... s/23635994
If I set BOOST_ROOT=C:\Libraries\boost_1_67_0 it runs a bit further but then breaks again at src/Mod/Path/libarea/CMakeLists.txt:26
https://ci.appveyor.com/project/sasobad ... s/23636105 (boost_python)
Maybe CMakeLists needs to be updated somehow for the new libpack?
Thanks, it was BUILD_QT5
Last edited by saso on Fri Apr 05, 2019 10:00 pm, edited 1 time in total.