Replies: 4 comments 9 replies
-
Interesting observation. I compile Jamulus on Windows too (msvc2019 build tools) but use the deploy_windows.ps1 script to build the installer too. I must say, that I don’t write much code on Windows and didn’t come across this issue yet. Can you have a look at the issues tab (there’s an issue about compilation on Windows)? |
Beta Was this translation helpful? Give feedback.
-
Folks: I just tried to compile Jamulus Release 3.6.3 with QT 6.0.1 (which is the latest) with msvc2019_64 and am getting some errors. Without knowing what I should save to here, I grabbed the entire compile output from QT.
|
Beta Was this translation helpful? Give feedback.
-
Mark, I've just merged atsampson's PR to remove the global import of namespace std. Please could you fetch the latest upstream master and try compiling again? Please make sure you are using Qt5, not Qt6. |
Beta Was this translation helpful? Give feedback.
-
I just did attempt on tip as of about 12 Noon Pacific U.S. Time Thursday Feb 25. It complains of these four issues: ========================================================================
|
Beta Was this translation helpful? Give feedback.
-
Are any of you aware that if I use the latest AT Creator and the latest Virtual Studio from Microsoft, which uses C++19, that I am unable to do builds of the current tip of Jamulus?
The following is a posing I put on the Discord Tech Team group, but I was suggested to post it here as well as some of the developers may not be on Discord nor Facebook.
================
I think that we may be having an issue with compiling for Windows using the latest QT Creator
and Microsoft Visual Studio.
It turns out that Microsoft has added a data type starting in C++17, which is std::byte, which
is breaking our compiles where we are using the type byte and it claims that it's ambiguous.
This is discussed in these pages:
https://studiofreya.com/2018/01/06/visual-studio-2017-with-cpp17-and-boost/#stdbyte-ambiguous-symbol-and-rpcndr.h
https://stackoverflow.com/questions/60793009/error-using-qt-during-build-c2872-byte-ambiguous-symbol
https://developercommunity.visualstudio.com/content/problem/93889/error-c2872-byte-ambiguous-symbol.html
Looking at other sites on line it appears to me that the QT Community and the Microsoft Visual
Community are in dis-agreement on what to do about this.
The work arounds that I am seeing, based on the comments in the three links I mention here are
to prepend byte with std::byte or to use a define
#define _HAS_STD_BYTE 0 in whichever c programs that we have that use the byte data type.
I know that we are currently using the git method of doing our compiles upon a release. However,
I fear that GIT is out of our control and they may depreciate any C++15 and earlier, which would
force us into C++17.
I am willing to try to slog my way through the code to try to fix this so that it will compile
with the latest tools, which should render us safe with using the git's compile engines if they
do cut off use of the older MSVS C compilers.
And by the way, I never got any responses on Facebook about others doing Windows compiling,
which suggests to me that the only community is here.
Beta Was this translation helpful? Give feedback.
All reactions