Linux progress
Moderator: GZDoom Developers
- Chris
- Posts: 2971
- Joined: Thu Jul 17, 2003 12:07 am
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
From what I remember, Randy added the crash logs because WinXP doesn't give you any crash info by default (without searching through a few clickable option in the crash box), as opposed to Win9x where all you had to do was click a button and get the backtrace and stack state. Granted the crash logs give more info than Win9x did, but still. I'm sure *nix OSs have some way to get the kind of crash info the crash log generates (manually, at least).
Crashes leave core dump files, unless your system has this disabled. You can check the core file size limit by "ulimit" at the command prompt. If this is 0 or otherwise too low, enable unlimited size for later crash dumps by "ulimit -c unlimited". You can examine these core files in gdb (The GNU Debugger) by "gdb nameandpathofexecutable corefilename". You can then, for example, do a backtrace by typing "bt". You can type "help" for help and "quit" to quit.Chris wrote:From what I remember, Randy added the crash logs because WinXP doesn't give you any crash info by default (without searching through a few clickable option in the crash box), as opposed to Win9x where all you had to do was click a button and get the backtrace and stack state. Granted the crash logs give more info than Win9x did, but still. I'm sure *nix OSs have some way to get the kind of crash info the crash log generates (manually, at least).
I know I should have edited my first post, but then people don't get an alert I edited it again...
So, I tried to compile ZDoom this morning, but I have a feeling the makefile is NOT for Windows, or maybe it is, but anyways, here's the errors:
So my question is, how to I compile this puppy.
So, I tried to compile ZDoom this morning, but I have a feeling the makefile is NOT for Windows, or maybe it is, but anyways, here's the errors:
Code: Select all
C:\zdoom>mingw32-make
process_begin: CreateProcess((null), uname -s, ...) failed.
process_begin: CreateProcess((null), uname -s, ...) failed.
makefile:53: src//files.mak: No such file or directory
makefile:77: dspfiles: No such file or directory
process_begin: CreateProcess((null), uname -s, ...) failed.
process_begin: CreateProcess((null), uname -s, ...) failed.
process_begin: CreateProcess((null), uname -s, ...) failed.
process_begin: CreateProcess((null), uname -s, ...) failed.
process_begin: CreateProcess((null), uname -s, ...) failed.
process_begin: CreateProcess((null), uname -s, ...) failed.
process_begin: CreateProcess((null), uname -s, ...) failed.
makefile:142: no file name for `include'
makefile:143: no file name for `include'
mingw32-make: *** No rule to make target `util/cvdsp.c', needed by `util/cvdsp'.
Stop.
C:\zdoom>
Ok, I have Dev-CPP, I'll load it up and configure it and try to compile.
ERROR(S)!
What's this error now?
The errornous line is:
The middle line is the offender.
What scares me is that it did it right away, on the first file.... That's a bad sign.
ERROR(S)!
Code: Select all
C:\zdoom\src\am_map.cpp: [Warning] In function `void AM_drawGrid(int)':
1682 C:\zdoom\src\am_map.cpp: `sqrtf' undeclared (first use this function)
(Each undeclared identifier is reported only once for each
C:\zdoom\Makefile.win: [Build Error] exe: *** [devcobj/am_map.o] Error 1
The errornous line is:
Code: Select all
// [RH] Calculate a minimum for how long the grid lines should be so that
// they cover the screen at any rotation.
[b]minlen = (fixed_t)sqrtf ((float)m_w*(float)m_w + (float)m_h*(float)m_h);[/b]
extx = (minlen - m_w) / 2;
exty = (minlen - m_h) / 2;
What scares me is that it did it right away, on the first file.... That's a bad sign.
- Hirogen2
- Posts: 2033
- Joined: Sat Jul 19, 2003 6:15 am
- Operating System Version (Optional): Tumbleweed x64
- Graphics Processor: Intel with Vulkan/Metal Support
- Location: Central Germany
- Contact:
Graf Zahl wrote:sqrtf is a float version of sqrt. I always thought they were part of the ANSI specification. It seems your math.h is old.
Code: Select all
CONFORMING TO
SVID 3, POSIX, BSD 4.3, ISO 9899. The float and the long
double variants are C99 requirements.
- Hirogen2
- Posts: 2033
- Joined: Sat Jul 19, 2003 6:15 am
- Operating System Version (Optional): Tumbleweed x64
- Graphics Processor: Intel with Vulkan/Metal Support
- Location: Central Germany
- Contact:
At least the other way round. Compiling a perfectly fine *Unix* (including Linux) code makes trouble in MINGW, because simple constants like S_IRUSR are missing.If the GCC in Windows doesn't work, that probably means the GCC in Linux will have a hard time too, right?
That's because util/cvsdsp.c IS MISSING, so this one doesnot even compile on Linux.mingw32-make: *** No rule to make target `util/cvdsp.c', needed by `util/cvdsp'.
I like to use MSYS for it's a good GNU environment in Win32. Together with gnuwin32.sf.net and of course the mingw compiler besides MSYS.