Page 23 of 25
Re: Raze officially revealed!
Posted: Mon Mar 02, 2020 4:13 am
by drfrag
Of course not, that's ancient and you need support for modern C++ features. I think ZDoom 2.1.4 compiled and ran with 3.3. On windows GZDoom compiles with VS 2017 and MinGW-w64 but probably Raze won't and you'd need to fix compilation yourself. There's a ZDoom wiki article for MinGW but probably it would be easier to install MSYS2.
Re: Raze officially revealed!
Posted: Mon Mar 02, 2020 4:13 am
by Graf Zahl
Raze requires C++14.
Of course a 13 year old compiler won't be able to handle it.
Re: Raze officially revealed!
Posted: Sun Mar 29, 2020 3:47 am
by Mynameislol
Are there development builds anywhere?
I've been trying to compile it from source but i'm constantly getting stuck at errors i can't fix.
Re: Raze officially revealed!
Posted: Sun Mar 29, 2020 3:52 am
by Graf Zahl
What kinds of errors? What compiler? What OS?
Re: Raze officially revealed!
Posted: Sun Mar 29, 2020 3:59 am
by Mynameislol
Graf Zahl wrote:What kinds of errors? What compiler? What OS?
I'm not quite sure, that's why i'm stuck. I'm using windows 10, and i'm trying to compile with Visual Studio 2017 15.1
Here's my CMakeError log, if it helps anything.
Code: Select all
Determining size of off64_t failed with the following output:
Change Dir: D:/Raze-Source/Raze-Prepare/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_18a14.vcxproj /p:Configuration=Debug /p:Platform=Win32 /p:VisualStudioVersion=15.0 /v:m && Microsoft (R) Build Engine version 15.1.1012.6693
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25019 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D UNICODE /D _UNICODE /D _WIN32_WINNT=0x0600 /D USE_OPENGL=1 /D NOASM=1 /D _LARGEFILE64_SOURCE=1 /D HAVE_SYS_TYPES_H /D HAVE_STDINT_H /D HAVE_STDDEF_H /D "CMAKE_INTDIR=\"Debug\"" /D _UNICODE /D UNICODE /GF /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_18a14.dir\Debug\\" /Fd"cmTC_18a14.dir\Debug\vc141.pdb" /Gd /TC /wd4996 /wd4244 /wd4018 /wd4267 /analyze- /errorReport:queue "D:\Raze-Source\Raze-Prepare\CMakeFiles\CheckTypeSize\OFF64_T.c"
OFF64_T.c
D:\Raze-Source\Raze-Prepare\CMakeFiles\CheckTypeSize\OFF64_T.c(25): error C2065: 'off64_t': undeclared identifier [D:\Raze-Source\Raze-Prepare\CMakeFiles\CMakeTmp\cmTC_18a14.vcxproj]
D:\Raze-Source\Raze-Prepare\CMakeFiles\CheckTypeSize\OFF64_T.c(26): error C2065: 'off64_t': undeclared identifier [D:\Raze-Source\Raze-Prepare\CMakeFiles\CMakeTmp\cmTC_18a14.vcxproj]
D:\Raze-Source\Raze-Prepare\CMakeFiles\CheckTypeSize\OFF64_T.c(27): error C2065: 'off64_t': undeclared identifier [D:\Raze-Source\Raze-Prepare\CMakeFiles\CMakeTmp\cmTC_18a14.vcxproj]
D:\Raze-Source\Raze-Prepare\CMakeFiles\CheckTypeSize\OFF64_T.c(28): error C2065: 'off64_t': undeclared identifier [D:\Raze-Source\Raze-Prepare\CMakeFiles\CMakeTmp\cmTC_18a14.vcxproj]
D:\Raze-Source\Raze-Prepare\CMakeFiles\CheckTypeSize\OFF64_T.c(29): error C2065: 'off64_t': undeclared identifier [D:\Raze-Source\Raze-Prepare\CMakeFiles\CMakeTmp\cmTC_18a14.vcxproj]
D:/Raze-Source/Raze-Prepare/CMakeFiles/CheckTypeSize/OFF64_T.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>
#undef KEY
#if defined(__i386)
# define KEY '_','_','i','3','8','6'
#elif defined(__x86_64)
# define KEY '_','_','x','8','6','_','6','4'
#elif defined(__ppc__)
# define KEY '_','_','p','p','c','_','_'
#elif defined(__ppc64__)
# define KEY '_','_','p','p','c','6','4','_','_'
#elif defined(__aarch64__)
# define KEY '_','_','a','a','r','c','h','6','4','_','_'
#elif defined(__ARM_ARCH_7A__)
# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','A','_','_'
#elif defined(__ARM_ARCH_7S__)
# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','S','_','_'
#endif
#define SIZE (sizeof(off64_t))
static char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
('0' + ((SIZE / 10000)%10)),
('0' + ((SIZE / 1000)%10)),
('0' + ((SIZE / 100)%10)),
('0' + ((SIZE / 10)%10)),
('0' + (SIZE % 10)),
']',
#ifdef KEY
' ','k','e','y','[', KEY, ']',
#endif
'\0'};
#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_size[argc];
(void)argv;
return require;
}
Determining if the function fseeko exists failed with the following output:
Change Dir: D:/Raze-Source/Raze-Prepare/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_c2131.vcxproj /p:Configuration=Debug /p:Platform=Win32 /p:VisualStudioVersion=15.0 /v:m && Microsoft (R) Build Engine version 15.1.1012.6693
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25019 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D UNICODE /D _UNICODE /D _WIN32_WINNT=0x0600 /D USE_OPENGL=1 /D NOASM=1 /D CHECK_FUNCTION_EXISTS=fseeko /D "CMAKE_INTDIR=\"Debug\"" /D _UNICODE /D UNICODE /GF /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_c2131.dir\Debug\\" /Fd"cmTC_c2131.dir\Debug\vc141.pdb" /Gd /TC /wd4996 /wd4244 /wd4018 /wd4267 /analyze- /errorReport:queue "C:\Program Files\CMake\share\cmake-3.16\Modules\CheckFunctionExists.c"
CheckFunctionExists.c
CheckFunctionExists.obj : error LNK2019: unresolved external symbol _fseeko referenced in function _main [D:\Raze-Source\Raze-Prepare\CMakeFiles\CMakeTmp\cmTC_c2131.vcxproj]
D:\Raze-Source\Raze-Prepare\CMakeFiles\CMakeTmp\Debug\cmTC_c2131.exe : fatal error LNK1120: 1 unresolved externals [D:\Raze-Source\Raze-Prepare\CMakeFiles\CMakeTmp\cmTC_c2131.vcxproj]
Determining if the include file unistd.h exists failed with the following output:
Change Dir: D:/Raze-Source/Raze-Prepare/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_60d3e.vcxproj /p:Configuration=Debug /p:Platform=Win32 /p:VisualStudioVersion=15.0 /v:m && Microsoft (R) Build Engine version 15.1.1012.6693
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25019 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D UNICODE /D _UNICODE /D _WIN32_WINNT=0x0600 /D USE_OPENGL=1 /D NOASM=1 /D "CMAKE_INTDIR=\"Debug\"" /D _UNICODE /D UNICODE /GF /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_60d3e.dir\Debug\\" /Fd"cmTC_60d3e.dir\Debug\vc141.pdb" /Gd /TC /wd4996 /wd4244 /wd4018 /wd4267 /analyze- /errorReport:queue "D:\Raze-Source\Raze-Prepare\CMakeFiles\CMakeTmp\CheckIncludeFile.c"
CheckIncludeFile.c
D:\Raze-Source\Raze-Prepare\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory [D:\Raze-Source\Raze-Prepare\CMakeFiles\CMakeTmp\cmTC_60d3e.vcxproj]
Determining if the function strndup exists failed with the following output:
Change Dir: D:/Raze-Source/Raze-Prepare/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_8ff68.vcxproj /p:Configuration=Debug /p:Platform=Win32 /p:VisualStudioVersion=15.0 /v:m && Microsoft (R) Build Engine version 15.1.1012.6693
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25019 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D UNICODE /D _UNICODE /D _WIN32_WINNT=0x0600 /D USE_OPENGL=1 /D NOASM=1 /D CHECK_FUNCTION_EXISTS=strndup /D "CMAKE_INTDIR=\"Debug\"" /D _UNICODE /D UNICODE /GF /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_8ff68.dir\Debug\\" /Fd"cmTC_8ff68.dir\Debug\vc141.pdb" /Gd /TC /wd4996 /wd4244 /wd4018 /wd4267 /analyze- /errorReport:queue "C:\Program Files\CMake\share\cmake-3.16\Modules\CheckFunctionExists.c"
CheckFunctionExists.c
CheckFunctionExists.obj : error LNK2019: unresolved external symbol _strndup referenced in function _main [D:\Raze-Source\Raze-Prepare\CMakeFiles\CMakeTmp\cmTC_8ff68.vcxproj]
D:\Raze-Source\Raze-Prepare\CMakeFiles\CMakeTmp\Debug\cmTC_8ff68.exe : fatal error LNK1120: 1 unresolved externals [D:\Raze-Source\Raze-Prepare\CMakeFiles\CMakeTmp\cmTC_8ff68.vcxproj]
Performing C++ SOURCE FILE Test CAN_DO_MFPMATH failed with the following output:
Change Dir: D:/Raze-Source/Raze-Prepare/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_d1ffb.vcxproj /p:Configuration=Debug /p:Platform=Win32 /p:VisualStudioVersion=15.0 /v:m && Microsoft (R) Build Engine version 15.1.1012.6693
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25019 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D UNICODE /D _UNICODE /D _WIN32_WINNT=0x0600 /D USE_OPENGL=1 /D NOASM=1 /D CAN_DO_MFPMATH /D "CMAKE_INTDIR=\"Debug\"" /D _UNICODE /D UNICODE /GF /Gm- /EHsc /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_d1ffb.dir\Debug\\" /Fd"cmTC_d1ffb.dir\Debug\vc141.pdb" /Gd /TP /wd4996 /wd4244 /wd4018 /wd4267 /analyze- /errorReport:queue /J -msse2 -mfpmath=sse "D:\Raze-Source\Raze-Prepare\CMakeFiles\CMakeTmp\src.cxx"
cl : Command line warning D9002: ignoring unknown option '-msse2' [D:\Raze-Source\Raze-Prepare\CMakeFiles\CMakeTmp\cmTC_d1ffb.vcxproj]
src.cxx
cl : Command line warning D9002: ignoring unknown option '-mfpmath=sse' [D:\Raze-Source\Raze-Prepare\CMakeFiles\CMakeTmp\cmTC_d1ffb.vcxproj]
cmTC_d1ffb.vcxproj -> D:\Raze-Source\Raze-Prepare\CMakeFiles\CMakeTmp\Debug\cmTC_d1ffb.exe
cmTC_d1ffb.vcxproj -> D:/Raze-Source/Raze-Prepare/CMakeFiles/CMakeTmp/Debug/cmTC_d1ffb.pdb (Full PDB)
Source file was:
int main() { return 0; }
Re: Raze officially revealed!
Posted: Sun Mar 29, 2020 4:19 am
by Graf Zahl
Those errors are merely in CMake internal feature checkers - they should have no impact on the final output.
Re: Raze officially revealed!
Posted: Sun Mar 29, 2020 5:17 am
by Mynameislol
Trying to compile it in visual studio i get 110 errors and 4 warnings
How do i save this as a log file for you to take a look at ?
Re: Raze officially revealed!
Posted: Sun Mar 29, 2020 6:04 am
by Graf Zahl
Just select the content on the 'output' tab, copy/paste it to a text file and put it on a site like pastebin.com
Re: Raze officially revealed!
Posted: Sun Mar 29, 2020 6:06 am
by Mynameislol
Graf Zahl wrote:Just select the content on the 'output' tab, copy/paste it to a text file and put it on a site like pastebin.com
Here you go
https://pastebin.com/y0xyM9Lt
I probably did some rookie mistake, it's not often i use visual studio
Re: Raze officially revealed!
Posted: Sun Mar 29, 2020 6:17 am
by Graf Zahl
Hard to say. It looks like it misses some includes in the Windows backend code. As it works for me in VS 2019, maybe some compiler incompatibility got into the project, but that's hard to check because I do not use VS 2017 anymore.
Re: Raze officially revealed!
Posted: Sun Mar 29, 2020 6:20 am
by drfrag
Or he's using an old windows SDK.
Re: Raze officially revealed!
Posted: Sun Mar 29, 2020 6:44 am
by Graf Zahl
No, that's not possible. The errors do not come from the Windows SDK but from missing C++ includes.
Re: Raze officially revealed!
Posted: Sun Mar 29, 2020 6:51 am
by Mynameislol
I downloaded the latest Visual Studio and it worked now!
I also installed some additional options from the visual studio installer, not quite sure which one would be responsible though.
Re: Raze officially revealed!
Posted: Sun Mar 29, 2020 7:18 am
by Graf Zahl
I think in this case there's a good indication that the code base requires more modern C++ support.
Re: Raze officially revealed!
Posted: Sat Apr 04, 2020 4:55 pm
by Bigbad75
WOW this look's great, when is it coming out